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