public abstract class MarkForm extends java.lang.Object implements ShapeForm
Modifier and Type | Field and Description |
---|---|
static MarkForm |
PAIR
MarkForm instance for two points per tuple.
|
static MarkForm |
SINGLE
MarkForm instance for a single point per tuple.
|
Modifier | Constructor and Description |
---|---|
protected |
MarkForm(int npos,
java.lang.String name,
javax.swing.Icon icon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static javax.swing.Icon |
createLegendIcon(MarkShape 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(MarkShape shape,
int size,
boolean isMultipix)
Creates a Glyph representing a marker.
|
static Outliner |
createMarkOutliner(MarkShape shape,
int size)
Returns an outliner for use with single points.
|
static Outliner |
createMultiMarkOutliner(MarkShape shape,
int size,
int npos)
Returns an outliner for use with multiple points.
|
boolean |
equals(java.lang.Object o) |
Coord[] |
getExtraCoords()
Returns data coordinates additional to the basic position which
are required to plot a point.
|
java.lang.String |
getFormDescription()
Returns a description of this mode as an XML string.
|
javax.swing.Icon |
getFormIcon()
Returns an icon to identify this form in the GUI.
|
java.lang.String |
getFormName()
Returns the user-directed name for this form.
|
int |
getPositionCount()
Returns the number of data positions per tuple used by this form.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
createOutliner, getConfigKeys
public static final MarkForm SINGLE
public static final MarkForm PAIR
protected MarkForm(int npos, java.lang.String name, javax.swing.Icon icon)
npos
- number of points to mark per tuplename
- form nameicon
- form iconpublic int getPositionCount()
ShapeForm
getPositionCount
in interface ShapeForm
public java.lang.String getFormName()
ModePlotter.Form
getFormName
in interface ModePlotter.Form
public javax.swing.Icon getFormIcon()
ModePlotter.Form
getFormIcon
in interface ModePlotter.Form
public java.lang.String getFormDescription()
ShapeForm
getFormDescription
in interface ShapeForm
public Coord[] getExtraCoords()
ShapeForm
getExtraCoords
in interface ShapeForm
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static MarkForm createMarkForm(int npos)
npos
- number of positions per tuplepublic static Outliner createMarkOutliner(MarkShape shape, int size)
shape
- marker shapesize
- marker sizepublic static Outliner createMultiMarkOutliner(MarkShape shape, int size, int npos)
shape
- marker shapesize
- marker sizenpos
- number of positions per tuplepublic static Glyph createMarkGlyph(MarkShape shape, int size, boolean isMultipix)
shape
- marker shapesize
- marker sizeisMultipix
- if true, optimise for an instance that may have
createPixer called multiple timespublic static javax.swing.Icon createLegendIcon(MarkShape shape, int size)
shape
- marker shapesize
- marker sizeCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.