public class RampKeySet extends Object implements KeySet<RampKeySet.Ramp>
Modifier and Type | Class and Description |
---|---|
static interface |
RampKeySet.Ramp
Defines ramp characteristics by aggregating a Shader and a Scaling.
|
Constructor and Description |
---|
RampKeySet(String axname,
String axName,
ClippedShader[] shaders,
Scaling dfltScaling,
boolean hasDataclip)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ShadeAxisFactory |
createShadeAxisFactory(RampKeySet.Ramp ramp,
Captioner captioner,
String label,
double crowding,
int rampWidth)
Creates a ShadeAxisFactory for a given ramp.
|
RampKeySet.Ramp |
createValue(ConfigMap config)
Creates a typed value based on the values in a map corresponding
to this object's keys.
|
ConfigKey<?>[] |
getKeys()
The config keys used to specify an object.
|
ClippedShader[] |
getShaders()
Returns an orderedlist of the shaders provided by this set.
|
public RampKeySet(String axname, String axName, ClippedShader[] shaders, Scaling dfltScaling, boolean hasDataclip)
axname
- short form of axis name, used in text parameter namesaxName
- long form of axis name, used in descriptionsshaders
- array of preset shader optionsdfltScaling
- default scaling functionhasDataclip
- true iff a data subrange key is to be includedpublic ConfigKey<?>[] getKeys()
KeySet
getKeys
in interface KeySet<RampKeySet.Ramp>
public RampKeySet.Ramp createValue(ConfigMap config)
KeySet
createValue
in interface KeySet<RampKeySet.Ramp>
config
- map for which the values corresponding to
getKeys
will be examinedpublic ClippedShader[] getShaders()
public static ShadeAxisFactory createShadeAxisFactory(RampKeySet.Ramp ramp, Captioner captioner, String label, double crowding, int rampWidth)
ramp
- rampcaptioner
- shader ramp captionerlabel
- shader ramp labelcrowding
- tick crowding factor (1 is normal)rampWidth
- width of colour map ramp in pixelsCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.