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.commands.ICommand 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.
|
Equals, equals, getCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex, toString
public LineTo(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand 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 © 2023 Aspose. All Rights Reserved.