ModePlotter.Form, ShapeFormpublic abstract class MarkForm extends java.lang.Object implements ShapeForm
| Modifier and Type | Field | Description |
|---|---|---|
static MarkForm |
PAIR |
MarkForm instance for two points per tuple.
|
static MarkForm |
SINGLE |
MarkForm instance for a single point per tuple.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
MarkForm(int npos,
java.lang.String name,
javax.swing.Icon icon) |
Constructor.
|
| Modifier and Type | Method | 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, waitcreateOutliner, getConfigKeyspublic 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()
ShapeFormgetPositionCount in interface ShapeFormpublic java.lang.String getFormName()
ModePlotter.FormgetFormName in interface ModePlotter.Formpublic javax.swing.Icon getFormIcon()
ModePlotter.FormgetFormIcon in interface ModePlotter.Formpublic java.lang.String getFormDescription()
ShapeFormgetFormDescription in interface ShapeFormpublic Coord[] getExtraCoords()
ShapeFormgetExtraCoords in interface ShapeFormpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic 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 © 2018 Central Laboratory of the Research Councils. All Rights Reserved.