LineTo
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.Operator
public class LineTo extends Operator
Class representing l operator (add line to the path).
Constructors
Constructor | Description |
---|---|
LineTo(int index, ICommand command) | Constructor for operator class. |
LineTo(double x, double y) | Initializes line operator. |
Methods
Method | Description |
---|---|
getX() | X coordinate of line point. |
setX(double value) | X coordinate of line point. |
getY() | Y coordinate of line point. |
setY(double value) | Y coordinate of line point. |
accept(IOperatorSelector visitor) | Accepts visitor object to process operator. |
toString() | Returns text representation of the operator. |
LineTo(int index, ICommand command)
public LineTo(int index, ICommand command)
Constructor for operator class.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index of operator. |
command | ICommand | Operator command. |
LineTo(double x, double y)
public LineTo(double x, double y)
Initializes line operator.
Parameters:
Parameter | Type | Description |
---|---|---|
x | double | X coordinate. |
y | double | Y coordinate. |
getX()
public double getX()
X coordinate of line point.
Returns: double - double value
setX(double value)
public void setX(double value)
X coordinate of line point.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value |
getY()
public double getY()
Y coordinate of line point.
Returns: double - double value
setY(double value)
public void setY(double value)
Y coordinate of line point.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | double value |
accept(IOperatorSelector visitor)
public void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Parameters:
Parameter | Type | Description |
---|---|---|
visitor | IOperatorSelector | Visitor object. |
toString()
public String toString()
Returns text representation of the operator.
Returns: java.lang.String - Text representation of the operator.