com.aspose.pdf.operators

Class LineTo



  • public class LineTo
    extends Operator

    Class representing l operator (add line to the path).

    • Constructor Detail

      • LineTo

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

        Constructor for operator class.

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

        public LineTo(double x,
                      double y)

        Initializes line operator.

        Parameters:
        x - X coordinate.
        y - Y coordinate.
    • Method Detail

      • getX

        public double getX()

        X coordinate of line point.

        Returns:
        double value
      • setX

        public void setX(double value)

        X coordinate of line point.

        Parameters:
        value - double value
      • getY

        public double getY()

        Y coordinate of line point.

        Returns:
        double value
      • setY

        public void setY(double value)

        Y coordinate of line point.

        Parameters:
        value - double value
      • 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 the operator.

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