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

ConstructorDescription
LineToInitializes line operator.
LineToConstructor for operator class.

Methods

MethodDescription
acceptAccepts visitor object to process operator.
getXX coordinate of line point.
getYY coordinate of line point.
setXX coordinate of line point.
setYY coordinate of line point.
toStringReturns text representation of the operator.

LineTo

public LineTo(double x, double y)

Initializes line operator.

Parameters:

ParameterTypeDescription
xX coordinate.
yY 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:

ParameterTypeDescription
valuedouble value

setY

public void setY(double value)

Y coordinate of line point.

Parameters:

ParameterTypeDescription
valuedouble value

toString

public String toString()

Returns text representation of the operator.

Returns: Text representation of the operator.