org.das2.graph
Class PsymConnector

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

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


Field Summary
static PsymConnector DASHFINE
           
static PsymConnector DOTFINE
           
static PsymConnector NONE
           
static PsymConnector SOLID
           
 
Method Summary
 void draw(java.awt.Graphics2D g, java.awt.geom.GeneralPath path, float width)
           
 void drawLine(java.awt.Graphics2D g, double x1, double y1, double x2, double y2, float width)
          See draw( Graphics2D, GeneralPath, float ) for drawing traces.
 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.
protected  java.awt.Stroke getStroke(float width)
           
 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 PsymConnector NONE

SOLID

public static final PsymConnector SOLID

DOTFINE

public static final PsymConnector DOTFINE

DASHFINE

public static final PsymConnector DASHFINE
Method Detail

getStroke

protected java.awt.Stroke getStroke(float width)

draw

public void draw(java.awt.Graphics2D g,
                 java.awt.geom.GeneralPath path,
                 float width)

drawLine

public void drawLine(java.awt.Graphics2D g,
                     double x1,
                     double y1,
                     double x2,
                     double y2,
                     float width)
See draw( Graphics2D, GeneralPath, float ) for drawing traces. This method is still supported for drawing icons, etc.

Parameters:
g -
x1 -
y1 -
x2 -
y2 -
width -

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