public class MarkArrayForm extends Object implements ShapeForm
Singleton class.
Modifier and Type | Field and Description |
---|---|
static ConfigKey<Integer> |
SIZE_KEY
Config key for marker size.
|
Modifier and Type | Method and Description |
---|---|
DataGeom |
adjustGeom(DataGeom geom)
Provides a DataGeom to be used by the layer this form makes,
given a DataGeom that characterises the plotting environment.
|
Outliner |
createOutliner(ConfigMap config)
Returns an object which will do the work of drawing shapes
when supplied with the appropriate style information and data.
|
ConfigKey<?>[] |
getConfigKeys()
Returns style configuration keys specific to this form.
|
Coord[] |
getExtraCoords()
Returns data coordinates additional to the basic position which
are required to plot a point.
|
String |
getFormDescription()
Returns a description of this mode as an XML string.
|
Icon |
getFormIcon()
Returns an icon to identify this form in the GUI.
|
String |
getFormName()
Returns the user-directed name for this form.
|
static MarkArrayForm |
getInstance()
Returns the sole instance of this singleton class.
|
int |
getPositionCount()
Returns the number of data positions per tuple used by this form.
|
public int getPositionCount()
ShapeForm
getPositionCount
in interface ShapeForm
public String getFormName()
ModePlotter.Form
getFormName
in interface ModePlotter.Form
public String getFormDescription()
ShapeForm
getFormDescription
in interface ShapeForm
public Icon getFormIcon()
ModePlotter.Form
getFormIcon
in interface ModePlotter.Form
public Coord[] getExtraCoords()
ShapeForm
getExtraCoords
in interface ShapeForm
public DataGeom adjustGeom(DataGeom geom)
ShapeForm
In most cases the supplied instance can be returned unchanged, but instances with special requirements may want to adjust how the data is interpreted.
adjustGeom
in interface ShapeForm
geom
- context geompublic ConfigKey<?>[] getConfigKeys()
ShapeForm
ShapeForm.createOutliner(uk.ac.starlink.ttools.plot2.config.ConfigMap)
.getConfigKeys
in interface ShapeForm
public Outliner createOutliner(ConfigMap config)
ShapeForm
ShapeForm.getConfigKeys()
.createOutliner
in interface ShapeForm
config
- configuration map from which values for this
form's config keys will be extractedpublic static MarkArrayForm getInstance()
Copyright © 2022 Central Laboratory of the Research Councils. All Rights Reserved.