public class Psym extends java.lang.Object implements Enumeration, Displayable
DasSymbolPlot, with values for none, dots, circles, etc.| Modifier and Type | Field and Description |
|---|---|
static Psym |
CIRCLES |
static Psym |
CROSS |
static Psym |
DOTS |
static Psym |
NONE |
static Psym |
TRIANGLES |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics g,
double x,
double y,
float size)
Draw the psym at the given coordinates.
|
void |
drawListIcon(java.awt.Graphics2D g,
int x,
int y)
implement this to provide nice drawing of icon on printing graphics context.
|
void |
drawTriangle(java.awt.Graphics g,
double x,
double y,
float size) |
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. |
static Psym |
parsePsym(java.lang.String str)
return a Psym for the name, like none, dots, circles, etc.
|
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 Psym NONE
public static final Psym DOTS
public static final Psym CIRCLES
public static final Psym TRIANGLES
public static final Psym CROSS
public 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.Objectpublic java.lang.String getListLabel()
DisplayableString that will help the user
identify this item when choosing from a list.getListLabel in interface Displayablepublic javax.swing.Icon getListIcon()
Enumerationnull if there
is no icon available.getListIcon in interface DisplayablegetListIcon in interface Enumerationpublic 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 void draw(java.awt.Graphics g,
double x,
double y,
float size)
drawsLines() returns false, then the
ix and iy parameters are ignored.g - the graphics context.x - the x position of the middle of the symboly - the y position of the middle of the symbolsize - size of the symbolpublic void drawTriangle(java.awt.Graphics g,
double x,
double y,
float size)
public static Psym parsePsym(java.lang.String str)
str - the name, e.g. none, dots, etc.