|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.MarkForm
public abstract class MarkForm
ShapeForm implementation that just draws a fixed-size marker for each position. One or more positions per tuple may be marked.
Field Summary | |
---|---|
static MarkForm |
PAIR
MarkForm instance for two points per tuple. |
static MarkForm |
SINGLE
MarkForm instance for a single point per tuple. |
Constructor Summary | |
---|---|
protected |
MarkForm(int npos,
String name,
Icon icon)
Constructor. |
Method Summary | |
---|---|
static 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(Object o)
|
Coord[] |
getExtraCoords()
Returns data coordinates additional to the basic position which are required to plot a point. |
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 |
getPositionCount()
Returns the number of data positions per tuple used by this form. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.ttools.plot2.layer.ShapeForm |
---|
createOutliner, getConfigKeys |
Field Detail |
---|
public static final MarkForm SINGLE
public static final MarkForm PAIR
Constructor Detail |
---|
protected MarkForm(int npos, String name, Icon icon)
npos
- number of points to mark per tuplename
- form nameicon
- form iconMethod Detail |
---|
public int getPositionCount()
ShapeForm
getPositionCount
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 hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public static MarkForm createMarkForm(int npos)
npos
- number of positions per tuple
public static Outliner createMarkOutliner(MarkShape shape, int size)
shape
- marker shapesize
- marker size
public static Outliner createMultiMarkOutliner(MarkShape shape, int size, int npos)
shape
- marker shapesize
- marker sizenpos
- number of positions per tuple
public 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 times
public static Icon createLegendIcon(MarkShape shape, int size)
shape
- marker shapesize
- marker size
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |