Re
Inheritance: java.lang.Object, com.aspose.pdf.Operator
public class Re extends Operator
Class representing re operator (add rectangle to the path).
Constructors
| Constructor | Description |
|---|---|
| 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
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| index | int | Index of operator. |
| command | ICommand | Operator 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:
| Parameter | Type | Description |
|---|---|---|
| x | double | The x-coordinate of the bottom-left corner of the rectangle. |
| y | double | The y-coordinate of the bottom-left corner of the rectangle. |
| width | double | The width of the rectangle. |
| height | double | The 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:
| Parameter | Type | Description |
|---|---|---|
| value | double | double 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:
| Parameter | Type | Description |
|---|---|---|
| value | double | double 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:
| Parameter | Type | Description |
|---|---|---|
| value | double | width 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:
| Parameter | Type | Description |
|---|---|---|
| value | double | Height of the rectangle. |
accept(IOperatorSelector visitor)
public void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| visitor | IOperatorSelector | Visitor object. |
toString()
public String toString()
Returns text representation of the operator.
Returns: java.lang.String - Text representation of the operator.