org.das2.graph
Class Psym

java.lang.Object
  extended by org.das2.graph.Psym
All Implemented Interfaces:
Displayable, Enumeration

public class Psym
extends java.lang.Object
implements Enumeration, Displayable


Field Summary
static Psym CIRCLES
           
static Psym CROSS
           
static Psym DOTS
           
static Psym NONE
           
static Psym TRIANGLES
           
 
Method Summary
 void draw(java.awt.Graphics g, double x, double y, float size)
          Draw the psym at the given coordinates.
 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)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final Psym NONE

DOTS

public static final Psym DOTS

CIRCLES

public static final Psym CIRCLES

TRIANGLES

public static final Psym TRIANGLES

CROSS

public static final Psym CROSS
Method Detail

toString

public java.lang.String toString()
Description copied from interface: Enumeration
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.

Specified by:
toString in interface Enumeration
Overrides:
toString in class java.lang.Object

getListLabel

public java.lang.String getListLabel()
Description copied from interface: Displayable
return a String that will help the user identify this item when choosing from a list.

Specified by:
getListLabel in interface Displayable

getListIcon

public javax.swing.Icon getListIcon()
Description copied from interface: Enumeration
An icon can be provided that will be shown in a list along with the textual description of the element. This method should return null if there is no icon available.

Specified by:
getListIcon in interface Displayable
Specified by:
getListIcon in interface Enumeration

draw

public void draw(java.awt.Graphics g,
                 double x,
                 double y,
                 float size)
Draw the psym at the given coordinates. if drawsLines() returns false, then the ix and iy parameters are ignored.


drawTriangle

public void drawTriangle(java.awt.Graphics g,
                         double x,
                         double y,
                         float size)

parsePsym

public static Psym parsePsym(java.lang.String str)