org.das2.graph
Class DefaultPlotSymbol

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

public class DefaultPlotSymbol
extends java.lang.Object
implements Enumeration, Displayable, PlotSymbol, PathIterable


Field Summary
static DefaultPlotSymbol BOX
           
static DefaultPlotSymbol CIRCLES
           
static DefaultPlotSymbol CROSS
           
static DefaultPlotSymbol DIAMOND
           
static DefaultPlotSymbol EX
           
static DefaultPlotSymbol NONE
           
static DefaultPlotSymbol STAR
           
static DefaultPlotSymbol TRIANGLES
           
 
Constructor Summary
DefaultPlotSymbol(java.awt.Shape p, java.lang.String label)
           
 
Method Summary
 void draw(java.awt.Graphics2D g, double x, double y, float size, FillStyle style)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CIRCLES

public static final DefaultPlotSymbol CIRCLES

TRIANGLES

public static final DefaultPlotSymbol TRIANGLES

CROSS

public static final DefaultPlotSymbol CROSS

EX

public static final DefaultPlotSymbol EX

STAR

public static final DefaultPlotSymbol STAR

DIAMOND

public static final DefaultPlotSymbol DIAMOND

BOX

public static final DefaultPlotSymbol BOX

NONE

public static final DefaultPlotSymbol NONE
Constructor Detail

DefaultPlotSymbol

public DefaultPlotSymbol(java.awt.Shape p,
                         java.lang.String label)
Method Detail

draw

public void draw(java.awt.Graphics2D g,
                 double x,
                 double y,
                 float size,
                 FillStyle style)
Specified by:
draw in interface PlotSymbol

pathIterator

public java.awt.geom.PathIterator pathIterator(java.awt.geom.AffineTransform at)
Specified by:
pathIterator in interface PathIterable

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

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

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