public class SetDash extends Operator
Class representing d operator (set line dash pattern).
Constructor and Description |
---|
SetDash(int[] pattern,
int phase)
Creates set dash pattern operator.
|
SetDash(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
|
void |
fromCommand(com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
For internal usage only!
|
int[] |
getPattern()
Dash pattern.
|
int |
getPhase()
Dash phase.
|
void |
setPattern(int[] value)
Dash pattern.
|
void |
setPhase(int value)
Dash phase.
|
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand |
toCommand()
For internal usage only!
|
String |
toString()
Gets operator string representation.
|
clear, getCommand, getCommandName, getIndex, getParameters, getTrailerable, isTextShowOperator, reset, setIndex, toString
public SetDash(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
index
- Index of operator.command
- Operator command.public SetDash(int[] pattern, int phase)
Creates set dash pattern operator.
pattern
- Array which defines dash pattern.phase
- Dash phase.public int[] getPattern()
Dash pattern. Array's elements shall be numbers that specify the lengths of alternating dashes and gaps. In case of one element array dash and gap lengths are equal.
public void setPattern(int[] value)
Dash pattern. Array's elements shall be numbers that specify the lengths of alternating dashes and gaps. In case of one element array dash and gap lengths are equal.
value
- int arraypublic int getPhase()
Dash phase. Before beginning to stroke a path, the dash array shall be cycled through, adding up the lengths of dashes and gaps. When the accumulated length equals the value specified by the dash phase, stroking of the path shall begin, and the dash array shall be used cyclically from that point onward.
public void setPhase(int value)
Dash phase. Before beginning to stroke a path, the dash array shall be cycled through, adding up the lengths of dashes and gaps. When the accumulated length equals the value specified by the dash phase, stroking of the path shall begin, and the dash array shall be used cyclically from that point onward.
value
- int valuepublic void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
public String toString()
Gets operator string representation.
public void fromCommand(com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Operator
Loads operator from command
command
- ICommand valuepublic com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand toCommand()
Operator
saves operator to command