public abstract class MarkForm extends Object implements ShapeForm
Modifier and Type | Field and Description |
---|---|
static int |
MIN_LEGEND_SIZE
Minimum size of marker in legend, even if plot size is smaller.
|
static MarkForm |
PAIR
MarkForm instance for two points per tuple.
|
static MarkForm |
QUAD
MarkForm instance for four points per tuple.
|
static MarkForm |
SINGLE
MarkForm instance for a single point per tuple.
|
Modifier | Constructor and Description |
---|---|
protected |
MarkForm(int npos,
String name,
Icon icon)
Constructor.
|
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.
|
static Icon |
createLegendIcon(MarkerShape shape,
int size)
Returns a legend icon suitable for a single marker.
|
static MarkForm |
createMarkForm(int npos)
Factory method to create an instance of this class.
|
static Glyph |
createMarkGlyph(MarkerShape shape,
int size,
boolean isMultipix)
Creates a Glyph representing a marker.
|
static Outliner |
createMarkOutliner(MarkerShape shape,
int size)
Returns an outliner for use with single points.
|
static MarkerStyle |
createMarkStyle(MarkerShape shape,
int size)
Creates a MarkStyle with a given size.
|
static Outliner |
createMultiMarkOutliner(MarkerShape shape,
int size,
int npos)
Returns an outliner for use with multiple points.
|
boolean |
equals(Object o) |
int |
getBasicPositionCount()
Returns the number of basic data positions per tuple used by 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.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
createOutliner, getConfigKeys
public static final int MIN_LEGEND_SIZE
public static final MarkForm SINGLE
public static final MarkForm PAIR
public static final MarkForm QUAD
public int getBasicPositionCount()
ShapeForm
getBasicPositionCount
in interface ShapeForm
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 Coord[] getExtraCoords()
ShapeForm
getExtraCoords
in interface ShapeForm
public int getExtraPositionCount()
ShapeForm
getExtraPositionCount
in interface ShapeForm
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 usedpublic static MarkForm createMarkForm(int npos)
npos
- number of positions per tuplepublic static Outliner createMarkOutliner(MarkerShape shape, int size)
shape
- marker shapesize
- marker sizepublic static Outliner createMultiMarkOutliner(MarkerShape shape, int size, int npos)
shape
- marker shapesize
- marker sizenpos
- number of positions per tuplepublic static MarkerStyle createMarkStyle(MarkerShape shape, int size)
shape
- marker shapesize
- marker size in pixelspublic static Glyph createMarkGlyph(MarkerShape shape, int size, boolean isMultipix)
shape
- marker shapesize
- marker sizeisMultipix
- if true, optimise for an instance that may have
createPixer called multiple timespublic static Icon createLegendIcon(MarkerShape shape, int size)
shape
- marker shapesize
- marker sizeCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.