A size (width and height). More...
Public Member Functions | |
| int | getHeight () |
| Gets the height. More... | |
| int | getWidth () |
| Gets the width. More... | |
| boolean | isEquivalent (fm.liveswitch.Size size) |
| Determines whether the specified size is equivalent. More... | |
| void | setHeight (int value) |
| Sets the height. More... | |
| void | setWidth (int value) |
| Sets the width. More... | |
| Size () | |
| Initializes a new instance of the fm.liveswitch.Size class. More... | |
| Size (int width, int height) | |
| Initializes a new instance of the fm.liveswitch.Size class. More... | |
| String | toJson () |
| Serializes this instance to JSON. More... | |
| String | toString () |
| Returns a string that represents this instance using format "{width}x{height}". More... | |
Static Public Member Functions | |
| static fm.liveswitch.Size | fromJson (String sizeJson) |
| Deserializes an instance from JSON. More... | |
| static fm.liveswitch.Size | getEmpty () |
| Gets the empty size (0x0). More... | |
| static boolean | isEquivalent (fm.liveswitch.Size size1, fm.liveswitch.Size size2) |
| Determines whether the two sizes are equivalent. More... | |
| static String | toJson (final fm.liveswitch.Size size) |
| Serializes an instance to JSON. More... | |
A size (width and height).
| fm.liveswitch.Size.Size | ( | ) |
Initializes a new instance of the fm.liveswitch.Size class.
| fm.liveswitch.Size.Size | ( | int | width, |
| int | height | ||
| ) |
Initializes a new instance of the fm.liveswitch.Size class.
| width | The width. |
| height | The height. |
|
static |
Deserializes an instance from JSON.
| sizeJson | The JSON to deserialize. |
|
static |
Gets the empty size (0x0).
| int fm.liveswitch.Size.getHeight | ( | ) |
Gets the height.
| int fm.liveswitch.Size.getWidth | ( | ) |
Gets the width.
| boolean fm.liveswitch.Size.isEquivalent | ( | fm.liveswitch.Size | size | ) |
Determines whether the specified size is equivalent.
| size | The size. |
|
static |
Determines whether the two sizes are equivalent.
| size1 | The first size. |
| size2 | The second size. |
| void fm.liveswitch.Size.setHeight | ( | int | value | ) |
Sets the height.
| void fm.liveswitch.Size.setWidth | ( | int | value | ) |
Sets the width.
| String fm.liveswitch.Size.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
| size | The size. |
| String fm.liveswitch.Size.toString | ( | ) |
Returns a string that represents this instance using format "{width}x{height}".