CurveTo2

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

public class CurveTo2 extends Operator

Class representing y operator (append curve to path, final point replicated).

Constructors

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

Methods

MethodDescription
getPoints()Points of the curve.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.

CurveTo2(int index, ICommand command)

public CurveTo2(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

CurveTo2(double x1, double y1, double x3, double y3)

public CurveTo2(double x1, double y1, double x3, double y3)

Initializes curve operator.

Parameters:

ParameterTypeDescription
x1doubleAbscissa of second point.
y1doubleOrdinate of second point.
x3doubleAbscissa of third point.
y3doubleOrdinate of third point.

getPoints()

public Point[] getPoints()

Points of the curve.

Returns: com.aspose.pdf.Point[] - array of Point instances

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.