com.aspose.pdf.operators

Class Re



  • public class Re
    extends Operator

    Class representing re operator (add rectangle to the path).

    • Constructor Detail

      • Re

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

        Constructor for operator class.

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

        public Re()

        Constructor for extracting goals.

      • Re

        public Re(double x,
                  double y,
                  double width,
                  double height)

        Constructor for writing program.

        Parameters:
        x - The x-coordinate of the bottom-left corner of the rectangle.
        y - The y-coordinate of the bottom-left corner of the rectangle.
        width - The width of the rectangle.
        height - The height of the rectangle.
    • Method Detail

      • getX

        public double getX()

        X coordinate of most left side of rectangle.

        Returns:
        double value
      • setX

        public void setX(double value)

        X coordinate of most left side of rectangle.

        Parameters:
        value - double value
      • getY

        public double getY()

        Y coordinate of bottom side of rectangle.

        Returns:
        double value
      • setY

        public void setY(double value)

        Y coordinate of bottom side of rectangle.

        Parameters:
        value - double value
      • getWidth

        public double getWidth()

        Gets width of the rectangle.

        Returns:
        width of the rectangle.
      • setWidth

        public void setWidth(double value)

        Sets width of the rectangle.

        Parameters:
        value - width of the rectangle.
      • getHeight

        public double getHeight()

        Height of the rectangle.

        Returns:
        Height of the rectangle.
      • setHeight

        public void setHeight(double value)

        Height of the rectangle.

        Parameters:
        value - Height of the rectangle.
      • 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.