com.partnersoft.v3x.graphics.linetypes
Class Linetype

java.lang.Object
  extended by com.partnersoft.v3x.graphics.linetypes.Linetype

public class Linetype
extends java.lang.Object

A configurable line type, including color and symbols used.


Constructor Summary
Linetype()
          Create a new Linetype.
Linetype(java.lang.String name, java.lang.String color, LinetypeFormat format)
          Create a new Linetype with the given name, color, and format.
 
Method Summary
 java.lang.String getColor()
          Color of line drawn.
 LinetypeFormat getFormat()
          Format (symbols) used to draw line.
 java.lang.String getName()
          Name of this linetype.
 void setColor(java.lang.String newColor)
          Color of line drawn.
 void setFormat(LinetypeFormat newFormat)
          Format (symbols) used to draw line.
 void setName(java.lang.String newName)
          Name of this linetype.
 java.lang.String toString()
           
 java.util.List<Style> toStyles()
          Converts this LinetypeFormat to one or more 4.x-compatible styles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Linetype

public Linetype()
Create a new Linetype.


Linetype

public Linetype(java.lang.String name,
                java.lang.String color,
                LinetypeFormat format)
Create a new Linetype with the given name, color, and format.

Method Detail

getColor

public java.lang.String getColor()
Color of line drawn.


setColor

public void setColor(java.lang.String newColor)
Color of line drawn.


getFormat

public LinetypeFormat getFormat()
Format (symbols) used to draw line.


setFormat

public void setFormat(LinetypeFormat newFormat)
Format (symbols) used to draw line.


getName

public java.lang.String getName()
Name of this linetype.


setName

public void setName(java.lang.String newName)
Name of this linetype.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toStyles

public java.util.List<Style> toStyles()
Converts this LinetypeFormat to one or more 4.x-compatible styles. The main style will be first, and any decorators will follow. It may be a mixture of line and point styles, so beware.

Returns: