com.aspose.pdf.operators

Class MoveTextPosition



  • public class MoveTextPosition
    extends TextPlaceOperator

    Class representing Td operator (move text position).

    • Constructor Detail

      • MoveTextPosition

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

        Initializes operator.

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

        public MoveTextPosition(double x,
                                double y)

        Initializes operator.

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

      • getX

        public double getX()

        X coordinate of text position.

        Returns:
        double value
      • setX

        public void setX(double value)

        X coordinate of text position.

        Parameters:
        value - double value
      • getY

        public double getY()

        Y coordinate of text position.

        Returns:
        double value
      • setY

        public void setY(double value)

        Y coordinate of text position.

        Parameters:
        value - double value
      • accept

        public void accept(IOperatorSelector visitor)

        Accepts visitor object to process operator.

        Overrides:
        accept in class TextOperator
        Parameters:
        visitor - Visitor object.
      • toString

        public String toString()

        Returns text representation of operator.

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