CurveTo

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

public class CurveTo extends Operator

Class representing c operator (append curve to path).

Constructors

ConstructorDescription
CurveTo(int index, ICommand command)Constructor for operator class.
CurveTo(double x1, double y1, double x2, double y2, double x3, double y3)Initializes curve operator.

Methods

MethodDescription
getPoints()Points of the curve.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toString()Returns text representation of operator.
fromCommand(ICommand command)
toCommand()

CurveTo(int index, ICommand command)

public CurveTo(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

CurveTo(double x1, double y1, double x2, double y2, double x3, double y3)

public CurveTo(double x1, double y1, double x2, double y2, double x3, double y3)

Initializes curve operator.

Parameters:

ParameterTypeDescription
x1doubleAbscissa of first point.
y1doubleOrdinate of first point.
x2doubleAbscissa of second point.
y2doubleOrdinate of second point.
x3doubleAbscissa of third point.
y3doubleOrdinate of third point.

getPoints()

public Point[] getPoints()

Points of the curve.

Returns: com.aspose.pdf.Point[] - Points[] object

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 operator.

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

fromCommand(ICommand command)

public void fromCommand(ICommand command)

Parameters:

ParameterTypeDescription
commandICommand

toCommand()

public ICommand toCommand()

Returns: ICommand