public class CentralForm<DG extends DataGeom> extends Object implements ShapeForm
| Modifier and Type | Field and Description |
|---|---|
static CentralForm<PlaneDataGeom> |
PLANE_INSTANCE
Instance for use with Plane plot.
|
static CentralForm<SkyDataGeom> |
SKY_INSTANCE
Instance for use with Sky plot.
|
static CentralForm<SphereDataGeom> |
SPHERE_INSTANCE
Instance for use with Sphere plot.
|
| Modifier and Type | Method and Description |
|---|---|
DataGeom |
adjustGeom(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.
|
Outliner |
createOutliner(ConfigMap config)
Returns an object which will do the work of drawing shapes
when supplied with the appropriate style information and data.
|
int |
getBasicPositionCount()
Returns the number of basic data positions per tuple used by this form.
|
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.
|
int |
getExtraPositionCount()
Returns the number of extra coordinates that can be interpreted as
positions.
|
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.
|
public static final CentralForm<PlaneDataGeom> PLANE_INSTANCE
public static final CentralForm<SkyDataGeom> SKY_INSTANCE
public static final CentralForm<SphereDataGeom> SPHERE_INSTANCE
public String getFormName()
ModePlotter.FormgetFormName in interface ModePlotter.Formpublic Icon getFormIcon()
ModePlotter.FormgetFormIcon in interface ModePlotter.Formpublic String getFormDescription()
ShapeFormgetFormDescription in interface ShapeFormpublic int getBasicPositionCount()
ShapeFormgetBasicPositionCount in interface ShapeFormpublic Coord[] getExtraCoords()
ShapeFormgetExtraCoords in interface ShapeFormpublic int getExtraPositionCount()
ShapeFormgetExtraPositionCount in interface ShapeFormpublic ConfigKey<?>[] getConfigKeys()
ShapeFormShapeForm.createOutliner(uk.ac.starlink.ttools.plot2.config.ConfigMap).getConfigKeys in interface ShapeFormpublic DataGeom adjustGeom(DataGeom geom, DataSpec dataSpec, ShapeStyle style)
ShapeFormIn most cases the supplied DataGeom instance can be returned unchanged, but instances with special requirements may want to adjust how the data is interpreted.
adjustGeom in interface ShapeFormgeom - context geomdataSpec - data specification with which the geom will be usedstyle - style with which the geom will be usedpublic Outliner createOutliner(ConfigMap config)
ShapeFormShapeForm.getConfigKeys().createOutliner in interface ShapeFormconfig - configuration map from which values for this
form's config keys will be extractedCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.