public class LinetypeConfig
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
LinetypeConfig()
Create a new LinetypeConfig.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic void configure(Cog configuration)
public boolean requiresStroke()
public java.awt.Stroke getStroke()
public java.awt.Stroke getStroke(double scale)
public float getDashPhase()
public void setDashPhase(float newDashPhase)
public java.lang.String getDashing()
public void setDashing(java.lang.String newDashing)
public java.lang.String getEndCap()
public void setEndCap(java.lang.String newEndCap)
public java.lang.String getJoin()
public void setJoin(java.lang.String newJoin)
public float getMiterLimit()
public void setMiterLimit(float newMiterLimit)
public java.lang.String getName()
public void setName(java.lang.String newName)
public float getWidth()
public void setWidth(float newWidth)