A rectangle (size and origin). More...
Public Member Functions | |
| int | getHeight () |
| Gets the size height. More... | |
| fm.liveswitch.Point | getOrigin () |
| Gets the origin. More... | |
| fm.liveswitch.Size | getSize () |
| Gets the size. More... | |
| int | getWidth () |
| Gets the size width. More... | |
| int | getX () |
| Gets the origin X coordinate. More... | |
| int | getY () |
| Gets the origin Y coordinate. More... | |
| boolean | isEquivalent (fm.liveswitch.Rectangle rectangle) |
| Determines whether the specified rectangle is equivalent. More... | |
| Rectangle () | |
| Initializes a new instance of the fm.liveswitch.Rectangle class. More... | |
| Rectangle (fm.liveswitch.Point origin, fm.liveswitch.Size size) | |
| Initializes a new instance of the fm.liveswitch.Rectangle class. More... | |
| void | setOrigin (fm.liveswitch.Point value) |
| Sets the origin. More... | |
| void | setSize (fm.liveswitch.Size value) |
| Sets the size. More... | |
| String | toJson () |
| Serializes this instance to JSON. More... | |
| String | toString () |
| Returns a string that represents this instance using format "{origin}/{size}". More... | |
Static Public Member Functions | |
| static fm.liveswitch.Rectangle | fromJson (String rectangleJson) |
| Deserializes an instance from JSON. More... | |
| static fm.liveswitch.Rectangle | getEmpty () |
| Gets the empty rectangle (0,0/0x0). More... | |
| static boolean | isEquivalent (fm.liveswitch.Rectangle rectangle1, fm.liveswitch.Rectangle rectangle2) |
| Determines whether the two rectangles are equivalent. More... | |
| static String | toJson (final fm.liveswitch.Rectangle rectangle) |
| Serializes an instance to JSON. More... | |
A rectangle (size and origin).
| fm.liveswitch.Rectangle.Rectangle | ( | ) |
Initializes a new instance of the fm.liveswitch.Rectangle class.
| fm.liveswitch.Rectangle.Rectangle | ( | fm.liveswitch.Point | origin, |
| fm.liveswitch.Size | size | ||
| ) |
Initializes a new instance of the fm.liveswitch.Rectangle class.
| origin | The origin. |
| size | The size. |
|
static |
Deserializes an instance from JSON.
| rectangleJson | The JSON to deserialize. |
|
static |
Gets the empty rectangle (0,0/0x0).
| int fm.liveswitch.Rectangle.getHeight | ( | ) |
Gets the size height.
| fm.liveswitch.Point fm.liveswitch.Rectangle.getOrigin | ( | ) |
Gets the origin.
| fm.liveswitch.Size fm.liveswitch.Rectangle.getSize | ( | ) |
Gets the size.
| int fm.liveswitch.Rectangle.getWidth | ( | ) |
Gets the size width.
| int fm.liveswitch.Rectangle.getX | ( | ) |
Gets the origin X coordinate.
| int fm.liveswitch.Rectangle.getY | ( | ) |
Gets the origin Y coordinate.
| boolean fm.liveswitch.Rectangle.isEquivalent | ( | fm.liveswitch.Rectangle | rectangle | ) |
Determines whether the specified rectangle is equivalent.
| rectangle | The rectangle. |
|
static |
Determines whether the two rectangles are equivalent.
| rectangle1 | The first rectangle. |
| rectangle2 | The second rectangle. |
| void fm.liveswitch.Rectangle.setOrigin | ( | fm.liveswitch.Point | value | ) |
Sets the origin.
| void fm.liveswitch.Rectangle.setSize | ( | fm.liveswitch.Size | value | ) |
Sets the size.
| String fm.liveswitch.Rectangle.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
| rectangle | The rectangle. |
| String fm.liveswitch.Rectangle.toString | ( | ) |
Returns a string that represents this instance using format "{origin}/{size}".