|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.config.RampKeySet
public class RampKeySet
KeySet for defining the characteristics of a colour ramp.
Nested Class Summary | |
---|---|
static interface |
RampKeySet.Ramp
Defines ramp characteristics by aggregating a Shader and a Scaling. |
Constructor Summary | |
---|---|
RampKeySet(String axname,
String axName,
Shader[] shaders,
Scaling dfltScaling,
boolean hasDataclip)
Constructor. |
Method Summary | |
---|---|
static ShadeAxisFactory |
createShadeAxisFactory(RampKeySet.Ramp ramp,
Captioner captioner,
String label,
double crowding)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RampKeySet(String axname, String axName, Shader[] 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 includedMethod Detail |
---|
public 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 examined
public static ShadeAxisFactory createShadeAxisFactory(RampKeySet.Ramp ramp, Captioner captioner, String label, double crowding)
ramp
- rampcaptioner
- shader ramp captionerlabel
- shader ramp labelcrowding
- tick crowding factor (1 is normal)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |