public class DefaultPlotSymbol extends java.lang.Object implements Enumeration, Displayable, PlotSymbol, PathIterable
| Modifier and Type | Field and Description |
|---|---|
static DefaultPlotSymbol |
BOX |
static DefaultPlotSymbol |
CIRCLES |
static DefaultPlotSymbol |
CROSS |
static DefaultPlotSymbol |
DIAMOND |
static DefaultPlotSymbol |
EX |
static DefaultPlotSymbol |
NONE |
static DefaultPlotSymbol |
STAR |
static DefaultPlotSymbol |
TRIANGLES |
static DefaultPlotSymbol |
TRIANGLES_EAST |
static DefaultPlotSymbol |
TRIANGLES_NORTH |
static DefaultPlotSymbol |
TRIANGLES_SOUTH |
static DefaultPlotSymbol |
TRIANGLES_WEST |
| Constructor and Description |
|---|
DefaultPlotSymbol(java.awt.Shape p,
java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D g,
double x,
double y,
float size,
FillStyle style) |
void |
drawListIcon(java.awt.Graphics2D g,
int x,
int y)
implement this to provide nice drawing of icon on printing graphics context.
|
javax.swing.Icon |
getListIcon()
An icon can be provided that will be shown in a list
along with the textual description of the element.
|
java.lang.String |
getListLabel()
return a
String that will help the user
identify this item when choosing from a list. |
java.awt.geom.PathIterator |
pathIterator(java.awt.geom.AffineTransform at) |
java.lang.String |
toString()
Type-safe Enumerations implementing this interface
should override the toString() method to return a
String that will be helpful to the user
when choosing this as an option from a list. |
public static final DefaultPlotSymbol CIRCLES
public static final DefaultPlotSymbol TRIANGLES
public static final DefaultPlotSymbol TRIANGLES_NORTH
public static final DefaultPlotSymbol TRIANGLES_SOUTH
public static final DefaultPlotSymbol TRIANGLES_WEST
public static final DefaultPlotSymbol TRIANGLES_EAST
public static final DefaultPlotSymbol CROSS
public static final DefaultPlotSymbol EX
public static final DefaultPlotSymbol STAR
public static final DefaultPlotSymbol DIAMOND
public static final DefaultPlotSymbol BOX
public static final DefaultPlotSymbol NONE
public DefaultPlotSymbol(java.awt.Shape p,
java.lang.String label)
public void draw(java.awt.Graphics2D g,
double x,
double y,
float size,
FillStyle style)
draw in interface PlotSymbolpublic java.awt.geom.PathIterator pathIterator(java.awt.geom.AffineTransform at)
pathIterator in interface PathIterablepublic void drawListIcon(java.awt.Graphics2D g,
int x,
int y)
DisplayabledrawListIcon in interface Displayableg - the graphics context.x - the x position, typically 0.y - the y position, typically 0.public javax.swing.Icon getListIcon()
Enumerationnull if there
is no icon available.getListIcon in interface DisplayablegetListIcon in interface Enumerationpublic java.lang.String getListLabel()
DisplayableString that will help the user
identify this item when choosing from a list.getListLabel in interface Displayablepublic java.lang.String toString()
EnumerationString that will be helpful to the user
when choosing this as an option from a list.toString in interface EnumerationtoString in class java.lang.Object