Class MultiPointConfigKey
java.lang.Object
uk.ac.starlink.ttools.plot2.config.ConfigKey<T>
uk.ac.starlink.ttools.plot2.config.OptionConfigKey<MultiPointShape>
uk.ac.starlink.ttools.plot2.config.MultiPointConfigKey
Config key that specifies a multi-point shape.
- Since:
- 25 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionMultiPointConfigKey
(ConfigMeta meta, MultiPointShape[] shapes, ErrorMode[] modes) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionConstructs a graphical control with which the user can specify a suitable value for association with this key.Returns the error mode array used which combines with a shape to work out how to paint an icon.getXmlDescription
(MultiPointShape shape) Returns a description in XML of the given option value.Methods inherited from class uk.ac.starlink.ttools.plot2.config.OptionConfigKey
addOptionsXml, getOptions, getOptionsXml, setOptionUsage, stringToValue, valueToString
Methods inherited from class uk.ac.starlink.ttools.plot2.config.ConfigKey
cast, getDefaultValue, getMeta, getValueClass, toString
-
Constructor Details
-
MultiPointConfigKey
Constructor.- Parameters:
meta
- metadatashapes
- shape optionsmodes
- error mode objects, used with shapes to draw icon
-
-
Method Details
-
getXmlDescription
Description copied from class:OptionConfigKey
Returns a description in XML of the given option value. This, along withOptionConfigKey.valueToString(T)
, is used by theOptionConfigKey.getOptionsXml()
method to assemble a described list of the options.- Specified by:
getXmlDescription
in classOptionConfigKey<MultiPointShape>
- Parameters:
shape
- possible value of this key- Returns:
- short snippet of XML (not wrapped in any outer element) describing the value; may be null if no description required or available
-
getErrorModes
Returns the error mode array used which combines with a shape to work out how to paint an icon.- Returns:
- error mode array
-
createSpecifier
Description copied from class:ConfigKey
Constructs a graphical control with which the user can specify a suitable value for association with this key.- Overrides:
createSpecifier
in classOptionConfigKey<MultiPointShape>
- Returns:
- new specifier
-