LineStyle Class
A dash pattern used to draw lines and outlines.
Declaration
public class LineStyle extends JavaObject implements ICloneable
Implements
Inherited Members
Inheritance
LineStyle()
Initializes a new instance of the LineStyle class.
Declaration
public LineStyle()
Methods
clone(DocumentCloneContext context) Method
Creates a copy of the current object.
Declaration
public LineStyle clone(DocumentCloneContext context)
Parameters
| Name | Type | Description |
|---|---|---|
| context | DocumentCloneContext | The document clone context. |
Returns
| Type | Description |
|---|---|
LineStyle |
A new |
deepClone() Method
Creates a deep copy of the current object.
Declaration
public LineStyle deepClone()
Returns
| Type | Description |
|---|---|
LineStyle |
A deep copy of the current object. |
getDashPattern() Method
Returns the dash pattern.
Declaration
public double[] getDashPattern()
Returns
| Type | Description |
|---|---|
| double[] | The sequence of dash and gap lengths used to draw the line. |
getDashPhase() Method
Returns the dash phase.
Declaration
public double getDashPhase()
Returns
| Type | Description |
|---|---|
| double | The offset into the dash pattern at which drawing starts. |
getIsDashed() Method
Returns whether the line uses a dash pattern.
Declaration
public boolean getIsDashed()
Returns
| Type | Description |
|---|---|
| boolean |
|
objectClone() Method
Creates a copy of the current object.
Declaration
public Object objectClone()
Returns
| Type | Description |
|---|---|
| Object | A copy of the current object. |
setDashPattern(double[] value) Method
Sets the dash pattern.
Declaration
public void setDashPattern(double[] value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double[] | The sequence of dash and gap lengths used to draw the line. |
setDashPhase(double value) Method
Sets the dash phase.
Declaration
public void setDashPhase(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | The offset into the dash pattern at which drawing starts. |