A point (x and y coordinates). More...
Public Member Functions | |
| int | getX () |
| Gets the X coordinate. More... | |
| int | getY () |
| Gets the Y coordinate. More... | |
| boolean | isEquivalent (fm.liveswitch.Point point) |
| Determines whether the specified point is equivalent. More... | |
| Point () | |
| Initializes a new instance of the fm.liveswitch.Point class. More... | |
| Point (int x, int y) | |
| Initializes a new instance of the fm.liveswitch.Point class. More... | |
| void | setX (int value) |
| Sets the X coordinate. More... | |
| void | setY (int value) |
| Sets the Y coordinate. More... | |
| String | toJson () |
| Serializes this instance to JSON. More... | |
| String | toString () |
| Returns a string that represents this instance using format "{x},{y}". More... | |
Static Public Member Functions | |
| static fm.liveswitch.Point | fromJson (String pointJson) |
| Deserializes an instance from JSON. More... | |
| static fm.liveswitch.Point | getEmpty () |
| Gets the empty point (0,0). More... | |
| static boolean | isEquivalent (fm.liveswitch.Point point1, fm.liveswitch.Point point2) |
| Determines whether the two points are equivalent. More... | |
| static String | toJson (final fm.liveswitch.Point point) |
| Serializes an instance to JSON. More... | |
A point (x and y coordinates).
| fm.liveswitch.Point.Point | ( | ) |
Initializes a new instance of the fm.liveswitch.Point class.
| fm.liveswitch.Point.Point | ( | int | x, |
| int | y | ||
| ) |
Initializes a new instance of the fm.liveswitch.Point class.
| x | The X coordinate. |
| y | The Y coordinate. |
|
static |
Deserializes an instance from JSON.
| pointJson | The JSON to deserialize. |
|
static |
Gets the empty point (0,0).
| int fm.liveswitch.Point.getX | ( | ) |
Gets the X coordinate.
| int fm.liveswitch.Point.getY | ( | ) |
Gets the Y coordinate.
| boolean fm.liveswitch.Point.isEquivalent | ( | fm.liveswitch.Point | point | ) |
Determines whether the specified point is equivalent.
| point | The point. |
|
static |
Determines whether the two points are equivalent.
| point1 | The first point. |
| point2 | The second point. |
| void fm.liveswitch.Point.setX | ( | int | value | ) |
Sets the X coordinate.
| void fm.liveswitch.Point.setY | ( | int | value | ) |
Sets the Y coordinate.
| String fm.liveswitch.Point.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
| point | The point. |
| String fm.liveswitch.Point.toString | ( | ) |
Returns a string that represents this instance using format "{x},{y}".