public abstract class AreaForm<DG extends DataGeom> extends Object implements ShapeForm
Modifier and Type | Field and Description |
---|---|
static AreaForm<PlaneDataGeom> |
PLANE_INSTANCE
Instance for use with Plane plot.
|
static ConfigKey<PolygonShape> |
POLYSHAPE_KEY
Config key for polygon painting mode option.
|
static ConfigKey<Integer> |
POLYTHICK_KEY
Config key for polygon painting line thickness.
|
static FloatingCoord |
RADIAL_COORD
Coordinate for specifying radial coordinate.
|
static AreaForm<SkyDataGeom> |
SKY_INSTANCE
Instance for use with Sky plot.
|
static AreaForm<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.
|
protected abstract PolygonOutliner |
createOutliner(PolygonShape polyShape,
int minSize,
MarkerShape minShape)
Constructs a PolygonOutliner from a glypher for this form.
|
AreaCoord<DG> |
getAreaCoord()
Returns the coordinate associated with this form.
|
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 FloatingCoord RADIAL_COORD
public static final AreaForm<PlaneDataGeom> PLANE_INSTANCE
public static final AreaForm<SkyDataGeom> SKY_INSTANCE
public static final AreaForm<SphereDataGeom> SPHERE_INSTANCE
public static final ConfigKey<PolygonShape> POLYSHAPE_KEY
public String getFormName()
ModePlotter.Form
getFormName
in interface ModePlotter.Form
public Icon getFormIcon()
ModePlotter.Form
getFormIcon
in interface ModePlotter.Form
public String getFormDescription()
ShapeForm
getFormDescription
in interface ShapeForm
public int getBasicPositionCount()
ShapeForm
getBasicPositionCount
in interface ShapeForm
public Coord[] getExtraCoords()
ShapeForm
getExtraCoords
in interface ShapeForm
public int getExtraPositionCount()
ShapeForm
getExtraPositionCount
in interface ShapeForm
public 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 extractedprotected abstract PolygonOutliner createOutliner(PolygonShape polyShape, int minSize, MarkerShape minShape)
polyShape
- glyph painterminSize
- threshold size for replacment markersminShape
- shape for replacement markerspublic AreaCoord<DG> getAreaCoord()
public DataGeom adjustGeom(DataGeom geom, DataSpec dataSpec, ShapeStyle style)
ShapeForm
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.
adjustGeom
in interface ShapeForm
geom
- context geomdataSpec
- data specification with which the geom will be usedstyle
- style with which the geom will be usedCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.