com.mindfusion.diagramming
Class DashStyle

java.lang.Object
  extended by com.mindfusion.diagramming.DashStyle
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class DashStyle
extends java.lang.Object
implements java.io.Externalizable

Represents the dash style of a Pen.

See Also:
Serialized Form

Field Summary
static DashStyle Dash
          Deprecated. 
 
Constructor Summary
DashStyle()
          Initializes a new DashStyle instance.
DashStyle(float[] dashArray, float dashPhase)
          Initializes a new DashStyle instance.
 
Method Summary
 java.lang.Object clone()
          Creates a copy of the DashStyle.
static DashStyle createCustomStyle()
           
static DashStyle createDashDotDotStyle()
           
static DashStyle createDashDotStyle()
           
static DashStyle createDashStyle()
          Creates a DashStyle object with period appropriate for the GraphicsUnit
static DashStyle createDotDotStyle()
           
static DashStyle createSolidStyle()
           
 float[] getDashArray()
          Returns the array that defines the dash pattern.
 float getDashPhase()
          Gets a value indicating the start offset into the dash pattern.
 void readExternal(java.io.ObjectInput in)
          Implements Externalizable.
 void writeExternal(java.io.ObjectOutput out)
          Implements Externalizable.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Dash

@Deprecated
public static final DashStyle Dash
Deprecated. 
A predefined dash pattern. This is deprecated because it does not observe the MeasureUnit, use createDashStyle instead

Constructor Detail

DashStyle

public DashStyle(float[] dashArray,
                 float dashPhase)
Initializes a new DashStyle instance.

Parameters:
dashArray - A float array containing dash lengths.
dashPhase - A float value specifying the start offset.

DashStyle

public DashStyle()
Initializes a new DashStyle instance.

Method Detail

clone

public java.lang.Object clone()
Creates a copy of the DashStyle.

Overrides:
clone in class java.lang.Object
Returns:
A DashStyle instance.

getDashArray

public float[] getDashArray()
Returns the array that defines the dash pattern.

Returns:
A float array containing dash lengths.

getDashPhase

public float getDashPhase()
Gets a value indicating the start offset into the dash pattern.

Returns:
A float value specifying the start offset.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Implements Externalizable.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Implements Externalizable.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

createDashStyle

public static DashStyle createDashStyle()
Creates a DashStyle object with period appropriate for the GraphicsUnit

Returns:
The new DashStyle instance.

createSolidStyle

public static DashStyle createSolidStyle()

createDashDotStyle

public static DashStyle createDashDotStyle()

createDashDotDotStyle

public static DashStyle createDashDotDotStyle()

createDotDotStyle

public static DashStyle createDotDotStyle()

createCustomStyle

public static DashStyle createCustomStyle()