Class SizeXyForm
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.SizeXyForm
- All Implemented Interfaces:
ModePlotter.Form, ShapeForm
ShapeForm implementation that draws shaped markers with their horizontal
and vertical dimensions independently determined by two additional
data coordinates. Autoscaling of points based on data values to
ensure sensible marker sizes is optionally available.
Singleton class.
- Since:
- 14 Jan 2015
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOutliner implementation for use with SizeXyForm. -
Method Summary
Modifier and TypeMethodDescriptionadjustGeom(DataGeom geom, DataSpec dataSpec, ShapeStyle style) Provides a DataGeom to be used by the layer this form makes, given a DataGeom that characterises the plotting environment.createOutliner(ConfigMap config) Returns an object which will do the work of drawing shapes when supplied with the appropriate style information and data.intReturns the number of basic data positions per tuple used by this form.ConfigKey<?>[]Returns style configuration keys specific to this form.Coord[]Returns data coordinates additional to the basic position which are required to plot a point.intReturns the number of extra coordinates that can be interpreted as positions.Returns a description of this mode as an XML string.Returns an icon to identify this form in the GUI.Returns the user-directed name for this form.static SizeXyFormReturns the sole instance of this class.
-
Method Details
-
getBasicPositionCount
public int getBasicPositionCount()Description copied from interface:ShapeFormReturns the number of basic data positions per tuple used by this form.- Specified by:
getBasicPositionCountin interfaceShapeForm- Returns:
- number of basic sets of positional coordinates
-
getFormName
Description copied from interface:ModePlotter.FormReturns the user-directed name for this form.- Specified by:
getFormNamein interfaceModePlotter.Form- Returns:
- form name
-
getFormIcon
Description copied from interface:ModePlotter.FormReturns an icon to identify this form in the GUI.- Specified by:
getFormIconin interfaceModePlotter.Form- Returns:
- form icon
-
getFormDescription
Description copied from interface:ShapeFormReturns a description of this mode as an XML string. The return value should be one or more <p> elements.- Specified by:
getFormDescriptionin interfaceShapeForm- Returns:
- XML description of form
-
getExtraCoords
Description copied from interface:ShapeFormReturns data coordinates additional to the basic position which are required to plot a point.- Specified by:
getExtraCoordsin interfaceShapeForm- Returns:
- additional plot coordinates
-
getExtraPositionCount
public int getExtraPositionCount()Description copied from interface:ShapeFormReturns the number of extra coordinates that can be interpreted as positions.- Specified by:
getExtraPositionCountin interfaceShapeForm- Returns:
- number of positional extra coordinates
-
adjustGeom
Description copied from interface:ShapeFormProvides a DataGeom to be used by the layer this form makes, given a DataGeom that characterises the plotting environment. The output should be similar to the input, for instance implementing the same plotType-specific DataGeom subtype.In most cases the supplied DataGeom instance can be returned unchanged, but instances with special requirements may want to adjust how the data is interpreted.
- Specified by:
adjustGeomin interfaceShapeForm- Parameters:
geom- context geomdataSpec- data specification with which the geom will be usedstyle- style with which the geom will be used- Returns:
- geom to use for data interpretation, the same or similar to the input
-
getConfigKeys
Description copied from interface:ShapeFormReturns style configuration keys specific to this form. These keys will be used in the config map supplied toShapeForm.createOutliner(ConfigMap).- Specified by:
getConfigKeysin interfaceShapeForm- Returns:
- config keys
-
createOutliner
Description copied from interface:ShapeFormReturns an object which will do the work of drawing shapes when supplied with the appropriate style information and data. The significant keys in the supplied config map are those given byShapeForm.getConfigKeys().- Specified by:
createOutlinerin interfaceShapeForm- Parameters:
config- configuration map from which values for this form's config keys will be extracted- Returns:
- new outliner object
-
getInstance
Returns the sole instance of this class.- Returns:
- singleton instance
-