com.horstmann.violet
Class LineStyle

java.lang.Object
  extended by com.horstmann.violet.framework.SerializableEnumeration
      extended by com.horstmann.violet.LineStyle
All Implemented Interfaces:
java.io.Serializable

public class LineStyle
extends SerializableEnumeration

This class defines line styles of various shapes.

See Also:
Serialized Form

Field Summary
static LineStyle DOTTED
           
static LineStyle SOLID
           
 
Method Summary
 java.awt.Stroke getStroke()
          Gets a stroke with which to draw this line style.
 
Methods inherited from class com.horstmann.violet.framework.SerializableEnumeration
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SOLID

public static final LineStyle SOLID

DOTTED

public static final LineStyle DOTTED
Method Detail

getStroke

public java.awt.Stroke getStroke()
Gets a stroke with which to draw this line style.

Returns:
the stroke object that strokes this line style