com.aspose.pdf.operators

Class CurveTo



  • public class CurveTo
    extends Operator

    Class representing c operator (append curve to path).

    • Constructor Detail

      • CurveTo

        public CurveTo(int index,
                       com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)

        Constructor for operator class.

        Parameters:
        index - Index of operator.
        command - Operator command.
      • CurveTo

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

        Initializes curve operator.

        Parameters:
        x1 - Abscissa of first point.
        y1 - Ordinate of first point.
        x2 - Abscissa of second point.
        y2 - Ordinate of second point.
        x3 - Abscissa of third point.
        y3 - Ordinate of third point.
    • Method Detail

      • getPoints

        public Point[] getPoints()

        Points of the curve.

        Returns:
        Points[] object
      • accept

        public void accept(IOperatorSelector visitor)

        Accepts visitor object to process operator.

        Specified by:
        accept in class Operator
        Parameters:
        visitor - Visitor object.
      • toString

        public String toString()

        Returns text representation of operator.

        Overrides:
        toString in class Operator
        Returns:
        Text representation of operator.
      • fromCommand

        public void fromCommand(com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
        Description copied from class: Operator
        For internal usage only!

        Loads operator from command

        Parameters:
        command - ICommand value
      • toCommand

        public com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand toCommand()
        Description copied from class: Operator
        For internal usage only!

        saves operator to command

        Returns:
        ICommand value ICommand object