MoveTo

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

public class MoveTo extends Operator

Class representing operators.m (move to and begin new subpath).

Constructors

ConstructorDescription
MoveTo(int index, ICommand command)
MoveTo(double x, double y)Inintalizes new Operator.m (move to) operator.

Methods

MethodDescription
getX()X coordinate
setX(double value)X coordinate
getY()Y coordinate
setY(double value)Y coordinate
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toString()Returns text representation of the operator.

MoveTo(int index, ICommand command)

public MoveTo(int index, ICommand command)

Parameters:

ParameterTypeDescription
indexint
commandICommand

MoveTo(double x, double y)

public MoveTo(double x, double y)

Inintalizes new Operator.m (move to) operator.

Parameters:

ParameterTypeDescription
xdoubleThe x-coordinate.
ydoubleThe y-coordinate.

getX()

public double getX()

X coordinate

Returns: double - double value

setX(double value)

public void setX(double value)

X coordinate

Parameters:

ParameterTypeDescription
valuedoubledouble value

getY()

public double getY()

Y coordinate

Returns: double - double value

setY(double value)

public void setY(double value)

Y coordinate

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.