Re

Inheritance: java.lang.Object, com.aspose.pdf.Operator

public class Re extends Operator

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

Constructors

ConstructorDescription
Re(int index, ICommand command)Constructor for operator class.
Re()Constructor for extracting goals.
Re(double x, double y, double width, double height)Constructor for writing program.

Methods

MethodDescription
getX()X coordinate of most left side of rectangle.
setX(double value)X coordinate of most left side of rectangle.
getY()Y coordinate of bottom side of rectangle.
setY(double value)Y coordinate of bottom side of rectangle.
getWidth()Gets width of the rectangle.
setWidth(double value)Sets width of the rectangle.
getHeight()Height of the rectangle.
setHeight(double value)Height of the rectangle.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toString()Returns text representation of the operator.

Re(int index, ICommand command)

public Re(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

Re()

public Re()

Constructor for extracting goals.

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

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

Constructor for writing program.

Parameters:

ParameterTypeDescription
xdoubleThe x-coordinate of the bottom-left corner of the rectangle.
ydoubleThe y-coordinate of the bottom-left corner of the rectangle.
widthdoubleThe width of the rectangle.
heightdoubleThe height of the rectangle.

getX()

public double getX()

X coordinate of most left side of rectangle.

Returns: double - double value

setX(double value)

public void setX(double value)

X coordinate of most left side of rectangle.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getY()

public double getY()

Y coordinate of bottom side of rectangle.

Returns: double - double value

setY(double value)

public void setY(double value)

Y coordinate of bottom side of rectangle.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getWidth()

public double getWidth()

Gets width of the rectangle.

Returns: double - width of the rectangle.

setWidth(double value)

public void setWidth(double value)

Sets width of the rectangle.

Parameters:

ParameterTypeDescription
valuedoublewidth of the rectangle.

getHeight()

public double getHeight()

Height of the rectangle.

Returns: double - Height of the rectangle.

setHeight(double value)

public void setHeight(double value)

Height of the rectangle.

Parameters:

ParameterTypeDescription
valuedoubleHeight of the rectangle.

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

toString()

public String toString()

Returns text representation of the operator.

Returns: java.lang.String - Text representation of the operator.