public class LineTo extends Operator
Class representing l operator (add line to the path).
| Constructor and Description |
|---|
LineTo(double x,
double y)
Initializes line operator.
|
LineTo(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.pathconstructionoperators.AppendStraightLineSegment command)
Constructor for operator class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
|
double |
getX()
X coordinate of line point.
|
double |
getY()
Y coordinate of line point.
|
void |
setX(double value)
X coordinate of line point.
|
void |
setY(double value)
Y coordinate of line point.
|
String |
toString()
Returns text representation of the operator.
|
createFromCommandName, equals, getCommand, getCommandName, getIndex, isTextShowOperator, setIndex, valueEqualspublic LineTo(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.pathconstructionoperators.AppendStraightLineSegment command)
Constructor for operator class.
index - Index of operator.command - Operator command.public LineTo(double x,
double y)
Initializes line operator.
x - X coordinate.y - Y coordinate.public double getX()
X coordinate of line point.
public void setX(double value)
X coordinate of line point.
value - double valuepublic double getY()
Y coordinate of line point.
public void setY(double value)
Y coordinate of line point.
value - double valuepublic void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Copyright © 2025 Aspose. All Rights Reserved.