public final class Dash extends Object
Class representing line dash pattern.
| Constructor and Description |
|---|
Dash(int[] pattern)
Constructor for Dash.
|
Dash(int on,
int off)
Constructor for Dash.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOff()
Gets or sets length of first gap between dashes.
|
int |
getOn()
Gets or sets length of first dash.
|
int[] |
getPattern()
Gets dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border.
|
void |
setOff(int value)
Gets or sets length of first gap between dashes.
|
void |
setOn(int value)
Gets or sets length of first dash.
|
public Dash(int on,
int off)
Constructor for Dash. Defines dashed border with specified dash and gap, which are unchanged for the entire dashed border.
on - Length of the dash.off - Length of the gap.public Dash(int[] pattern)
Constructor for Dash. Defines a pattern of dashes and gaps that shall be used in drawing a dashed border.
pattern - A dash array (of two values minimum) defining a pattern of dashes and gaps that shall be used in drawing a dashed border.public final int getOn()
Gets or sets length of first dash.
public final void setOn(int value)
Gets or sets length of first dash.
value - int valuepublic final int getOff()
Gets or sets length of first gap between dashes.
public final void setOff(int value)
Gets or sets length of first gap between dashes.
value - int valuepublic final int[] getPattern()
Gets dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border.
Copyright © 2025 Aspose. All Rights Reserved.