CurveTo
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.Operator
public class CurveTo extends Operator
Class representing c operator (append curve to path).
Constructors
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
index | int | Index of operator. |
command | ICommand | Operator 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:
Parameter | Type | Description |
---|---|---|
x1 | double | Abscissa of first point. |
y1 | double | Ordinate of first point. |
x2 | double | Abscissa of second point. |
y2 | double | Ordinate of second point. |
x3 | double | Abscissa of third point. |
y3 | double | Ordinate 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:
Parameter | Type | Description |
---|---|---|
visitor | IOperatorSelector | Visitor 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:
Parameter | Type | Description |
---|---|---|
command | ICommand |
toCommand()
public ICommand toCommand()
Returns: ICommand