RectangleF
Overview
RectangleF is a class in Aspose.PSD FOSS for Java.
Stores a set of four floating-point numbers that represent the location and size of a rectangle.
This class declares 19 methods for RectangleF objects in Java programs.
Available methods include: RectangleF, equals, getBottom, getHeight, getLeft, getRight, getTop, getWidth, getX, getY, hashCode, isEmpty, and 5 additional methods.
Public members are accessible to any Java application after installing the Aspose.PSD FOSS for Java package.
Properties: EMPTY, bottom, empty, height, left, right, and 4 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | float | Read/Write | Gets or sets the x-coordinate of the upper-left corner of this RectangleF. |
y | float | Read/Write | Gets or sets the y-coordinate of the upper-left corner of this RectangleF. |
width | float | Read/Write | Gets or sets the width of this RectangleF. |
height | float | Read/Write | Gets or sets the height of this RectangleF. |
bottom | float | Read | Gets the y-coordinate of the bottom edge of this RectangleF. |
empty | boolean | Read | Gets a value indicating whether this RectangleF has no location or size. |
left | float | Read | Gets the x-coordinate of the left edge of this RectangleF. |
right | float | Read | Gets the x-coordinate of the right edge of this RectangleF. |
top | float | Read | Gets the y-coordinate of the top edge of this RectangleF. |
EMPTY | RectangleF | Read | Represents a RectangleF structure with its properties left uninitialized. |
Methods
| Signature | Description |
|---|---|
RectangleF(x: float, y: float, width: float, height: float) | Initializes a new instance of the RectangleF structure with the specified coordinates. |
RectangleF() | Initializes a new instance of the RectangleF structure with all properties set to zero. |
getX() → float | Gets or sets the x-coordinate of the upper-left corner of this RectangleF. |
setX(x: float) | Sets the x value. |
getY() → float | Gets or sets the y-coordinate of the upper-left corner of this RectangleF. |
setY(y: float) | Sets the y value. |
getWidth() → float | Gets or sets the width of this RectangleF. |
setWidth(width: float) | Sets the width value. |
getHeight() → float | Gets or sets the height of this RectangleF. |
setHeight(height: float) | Sets the height value. |
getBottom() → float | Gets the y-coordinate of the bottom edge of this RectangleF. |
isEmpty() → boolean | Gets a value indicating whether this RectangleF has no location or size. |
getLeft() → float | Gets the x-coordinate of the left edge of this RectangleF. |
getRight() → float | Gets the x-coordinate of the right edge of this RectangleF. |
getTop() → float | Gets the y-coordinate of the top edge of this RectangleF. |
equals(other: RectangleF) → boolean | Determines whether the specified rectangle is equal to this rectangle. |
equals(obj: Object) → boolean | Determines whether the specified object is equal to this rectangle. |
hashCode() → int | Returns a hash code for this rectangle. |
toString() → String | Returns a compact coordinate representation. |