com.partnersoft.gui
Class LinetypeConfig

java.lang.Object
  extended by com.partnersoft.gui.LinetypeConfig
All Implemented Interfaces:
java.io.Serializable

public class LinetypeConfig
extends java.lang.Object
implements java.io.Serializable

Configuration for linetypes.

Author:
Copyright 2002 Partner Software, Inc. All rights reserved.
See Also:
Serialized Form

Constructor Summary
LinetypeConfig()
          Create a new LinetypeConfig.
 
Method Summary
 java.lang.Object clone()
           
 void configure(Cog configuration)
           
 java.lang.String getDashing()
          Dashing pattern, specified as space-separated lengths of alternating opaque and transparent sections.
 float getDashPhase()
          Offset into dashing patterns to begin the stroke.
 java.lang.String getEndCap()
          Type of end cap used (butt, round, or square).
 java.lang.String getJoin()
          Type of join used (bevel, miter, or round).
 float getMiterLimit()
          Limit of miter joins.
 java.lang.String getName()
          Name of linetype.
 java.awt.Stroke getStroke()
           
 java.awt.Stroke getStroke(double scale)
           
 float getWidth()
          Width of line in pixels.
 boolean requiresStroke()
          Returns true if this linetype actually requires a stroke.
 void setDashing(java.lang.String newDashing)
          Dashing pattern, specified as space-separated lengths of alternating opaque and transparent sections.
 void setDashPhase(float newDashPhase)
          Offset into dashing patterns to begin the stroke.
 void setEndCap(java.lang.String newEndCap)
          Type of end cap used (butt, round, or square).
 void setJoin(java.lang.String newJoin)
          Type of join used (bevel, miter, or round).
 void setMiterLimit(float newMiterLimit)
          Limit of miter joins.
 void setName(java.lang.String newName)
          Name of linetype.
 void setWidth(float newWidth)
          Width of line in pixels.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinetypeConfig

public LinetypeConfig()
Create a new LinetypeConfig.

Method Detail

toString

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

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

configure

public void configure(Cog configuration)

requiresStroke

public boolean requiresStroke()
Returns true if this linetype actually requires a stroke. If false, it represents a simple single-pixel, non-dashed line.


getStroke

public java.awt.Stroke getStroke()

getStroke

public java.awt.Stroke getStroke(double scale)

getDashPhase

public float getDashPhase()
Offset into dashing patterns to begin the stroke.


setDashPhase

public void setDashPhase(float newDashPhase)
Offset into dashing patterns to begin the stroke.


getDashing

public java.lang.String getDashing()
Dashing pattern, specified as space-separated lengths of alternating opaque and transparent sections.


setDashing

public void setDashing(java.lang.String newDashing)
Dashing pattern, specified as space-separated lengths of alternating opaque and transparent sections.


getEndCap

public java.lang.String getEndCap()
Type of end cap used (butt, round, or square).


setEndCap

public void setEndCap(java.lang.String newEndCap)
Type of end cap used (butt, round, or square).


getJoin

public java.lang.String getJoin()
Type of join used (bevel, miter, or round).


setJoin

public void setJoin(java.lang.String newJoin)
Type of join used (bevel, miter, or round).


getMiterLimit

public float getMiterLimit()
Limit of miter joins.


setMiterLimit

public void setMiterLimit(float newMiterLimit)
Limit of miter joins.


getName

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


setName

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


getWidth

public float getWidth()
Width of line in pixels.


setWidth

public void setWidth(float newWidth)
Width of line in pixels.