LineTo

Inheritance: java.lang.Object, com.aspose.pdf.Operator

public class LineTo extends Operator

Class representing l operator (add line to the path).

Constructors

ConstructorDescription
LineTo(int index, ICommand command)Constructor for operator class.
LineTo(double x, double y)Initializes line operator.

Methods

MethodDescription
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:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

LineTo(double x, double y)

public LineTo(double x, double y)

Initializes line operator.

Parameters:

ParameterTypeDescription
xdoubleX coordinate.
ydoubleY 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:

ParameterTypeDescription
valuedoubledouble 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:

ParameterTypeDescription
valuedoubledouble value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

toString()

public String toString()

Returns text representation of the operator.

Returns: java.lang.String - Text representation of the operator.