A layout frame definition, including X/Y coordinates and width/height values. More...
Public Member Functions | |
| String | getClientId () |
| Gets the client identifier. More... | |
| String | getDeviceId () |
| Gets the device identifier. More... | |
| int | getHeight () |
| Gets the height value. More... | |
| int | getOrientation () |
| Gets the orientation in degrees. More... | |
| String | getUserId () |
| Gets the user identifier. More... | |
| String | getViewId () |
| Gets the view ID. More... | |
| int | getWidth () |
| Gets the width value. More... | |
| int | getX () |
| Gets the X coordinate. More... | |
| int | getY () |
| Gets the Y coordinate. More... | |
| boolean | isEquivalent (fm.liveswitch.LayoutFrame layoutFrame) |
| Determines whether the specified layout frame is equivalent. More... | |
| LayoutFrame (int x, int y, int width, int height) | |
| Initializes a new instance of the fm.liveswitch.LayoutFrame class. More... | |
| void | setClientId (String value) |
| Sets the client identifier. More... | |
| void | setDeviceId (String value) |
| Sets the device identifier. More... | |
| void | setHeight (int value) |
| Sets the height value. More... | |
| void | setOrientation (int value) |
| Sets the orientation in degrees. More... | |
| void | setUserId (String value) |
| Sets the user identifier. More... | |
| void | setViewId (String value) |
| Sets the view ID. More... | |
| void | setWidth (int value) |
| Sets the width value. 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... | |
Static Public Member Functions | |
| static fm.liveswitch.LayoutFrame | fromJson (String layoutFrameJson) |
| Deserializes a layout frame from JSON. More... | |
| static fm.liveswitch.LayoutFrame | getScaledFrame (fm.liveswitch.LayoutScale scale, int outerWidth, int outerHeight, int innerWidth, int innerHeight) |
| Gets a scaled frame. More... | |
| static String | toJson (fm.liveswitch.LayoutFrame layoutFrame) |
| Serializes a layout frame to JSON. More... | |
A layout frame definition, including X/Y coordinates and width/height values.
| fm.liveswitch.LayoutFrame.LayoutFrame | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
Initializes a new instance of the fm.liveswitch.LayoutFrame class.
| x | The X coordinate. |
| y | The Y coordinate. |
| width | The width value. |
| height | The height value. |
|
static |
Deserializes a layout frame from JSON.
| layoutFrameJson | The layout frame JSON. |
| String fm.liveswitch.LayoutFrame.getClientId | ( | ) |
Gets the client identifier.
| String fm.liveswitch.LayoutFrame.getDeviceId | ( | ) |
Gets the device identifier.
| int fm.liveswitch.LayoutFrame.getHeight | ( | ) |
Gets the height value.
| int fm.liveswitch.LayoutFrame.getOrientation | ( | ) |
Gets the orientation in degrees.
|
static |
Gets a scaled frame.
| scale | The scaling algorithm to use. |
| outerWidth | The width of the outer container. |
| outerHeight | The height of the outer container. |
| innerWidth | The width of the inner element. |
| innerHeight | The height of the inner element. |
| String fm.liveswitch.LayoutFrame.getUserId | ( | ) |
Gets the user identifier.
| String fm.liveswitch.LayoutFrame.getViewId | ( | ) |
Gets the view ID.
| int fm.liveswitch.LayoutFrame.getWidth | ( | ) |
Gets the width value.
| int fm.liveswitch.LayoutFrame.getX | ( | ) |
Gets the X coordinate.
| int fm.liveswitch.LayoutFrame.getY | ( | ) |
Gets the Y coordinate.
| boolean fm.liveswitch.LayoutFrame.isEquivalent | ( | fm.liveswitch.LayoutFrame | layoutFrame | ) |
Determines whether the specified layout frame is equivalent.
| layoutFrame | The layout frame. |
| void fm.liveswitch.LayoutFrame.setClientId | ( | String | value | ) |
Sets the client identifier.
| void fm.liveswitch.LayoutFrame.setDeviceId | ( | String | value | ) |
Sets the device identifier.
| void fm.liveswitch.LayoutFrame.setHeight | ( | int | value | ) |
Sets the height value.
| void fm.liveswitch.LayoutFrame.setOrientation | ( | int | value | ) |
Sets the orientation in degrees.
| void fm.liveswitch.LayoutFrame.setUserId | ( | String | value | ) |
Sets the user identifier.
| void fm.liveswitch.LayoutFrame.setViewId | ( | String | value | ) |
Sets the view ID.
| void fm.liveswitch.LayoutFrame.setWidth | ( | int | value | ) |
Sets the width value.
| void fm.liveswitch.LayoutFrame.setX | ( | int | value | ) |
Sets the X coordinate.
| void fm.liveswitch.LayoutFrame.setY | ( | int | value | ) |
Sets the Y coordinate.
| String fm.liveswitch.LayoutFrame.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes a layout frame to JSON.
| layoutFrame | The layout frame. |