com.aspose.pdf.operators

Class CurveTo2



  • public class CurveTo2
    extends Operator

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

    • Constructor Detail

      • CurveTo2

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

        Constructor for operator class.

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

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

        Initializes curve operator.

        Parameters:
        x1 - Abscissa of second point.
        y1 - 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:
        array of Point instances
      • accept

        public void accept(IOperatorSelector visitor)

        Accepts visitor object to process operator.

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