Agora Interactive Whiteboard Java API Reference
|
Public Member Functions | |
RectangleConfig (Double width, Double height, AnimationMode mode) | |
RectangleConfig (Double width, Double height) | |
RectangleConfig (Double originX, Double originY, Double width, Double height) | |
RectangleConfig (Double originX, Double originY, Double width, Double height, AnimationMode mode) | |
Double | getOriginX () |
void | setOriginX (Double originX) |
Double | getOriginY () |
void | setOriginY (Double originY) |
Double | getWidth () |
void | setWidth (Double width) |
Double | getHeight () |
void | setHeight (Double height) |
AnimationMode | getAnimationMode () |
void | setAnimationMode (AnimationMode animationMode) |
Public Member Functions inherited from com.herewhite.sdk.domain.WhiteObject | |
String | toString () |
JSONObject | toJSON () |
Configurations for the view rectangle.
The view rectangle defines a rectangular area that the view must cover. After you set a view rectangle, the SDK automatically adjusts the view to fully contain the rectangular area, so as to ensure contents within the rectangle area are completely displayed.
You can set a view rectangle according to the size of a PPT slide or image to be displayed, to ensure the same content is displayed completely on screens of different sizes.
com.herewhite.sdk.domain.RectangleConfig.RectangleConfig | ( | Double | width, |
Double | height, | ||
AnimationMode | mode | ||
) |
The RectangleConfig
constructor.
In this method, pass in the width
, height
, and mode
parameters. Based on the width
and height
you pass in, the SDK calculates originX
and originY
, the X and Y coordinates of the top left corner of the view rectangle in the world coordinate system, in the following ways:
originX = - width / 2.0d
originY = - height / 2.0d
You can use this method to quickly display a PPT slide completely.
width | The width of the view rectangle. Do not set this parameter to a value smaller than the width of the area you want to display; otherwise, the user may not see the area completely. |
height | The height of the view rectangle. Do not set this parameter to a value smaller than the height of the area you want to display; otherwise, the user may not see the area completely. |
mode | The animation mode of the view rectangle. See AnimationMode . |
com.herewhite.sdk.domain.RectangleConfig.RectangleConfig | ( | Double | width, |
Double | height | ||
) |
The RectangleConfig
constructor.
In this method, pass in the width
, height
, and mode
parameters. Based on the width
and height
you pass in, the SDK calculates originX
and originY
, the X and Y coordinates of the top left corner of the view rectangle in the world coordinate system, in the following ways:
originX = - width / 2.0d
originY = - height / 2.0d
This method does not support setting the animation mode of the view rectangle. By default, the SDK sets the animation mode to Continuous
.
You can use this method to quickly display a PPT slide completely.
width | The width of the view rectangle. Do not set this parameter to a value smaller than the width of the area you want to display; otherwise, the user may not see the area completely. |
height | The height of the view rectangle. Do not set this parameter to a value smaller than the height of the area you want to display; otherwise, the user may not see the area completely. |
com.herewhite.sdk.domain.RectangleConfig.RectangleConfig | ( | Double | originX, |
Double | originY, | ||
Double | width, | ||
Double | height | ||
) |
The RectangleConfig
constructor.
In this method, pass in the originX
, originY
, width
, and height
parameters. Based on these parameters, the SDK determines the position and size of the view rectangle in the world coordinate system.
This method does not support setting the animation mode of the view rectangle. By default, the SDK sets the animation mode to Continuous
.
originX | The X coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin). |
originY | The Y coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin). |
width | The width of the view rectangle. Do not set this parameter to a value smaller than the width of the area you want to display; otherwise, the user may not see the area completely. |
height | The height of the view rectangle. Do not set this parameter to a value smaller than the height of the area you want to display; otherwise, the user may not see the area completely. |
com.herewhite.sdk.domain.RectangleConfig.RectangleConfig | ( | Double | originX, |
Double | originY, | ||
Double | width, | ||
Double | height, | ||
AnimationMode | mode | ||
) |
The RectangleConfig
constructor.
In this method, pass in the originX
, originY
, width
, height
, and mode
parameters. Based on these parameters, the SDK determines the position and size of the view rectangle in the world coordinate system.
originX | The X coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin). |
originY | The Y coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin). |
width | The width of the view rectangle. Do not set this parameter to a value smaller than the width of the area you want to display; otherwise, the user may not see the area completely. |
height | The height of the view rectangle. Do not set this parameter to a value smaller than the height of the area you want to display; otherwise, the user may not see the area completely. |
mode | The animation mode of the view rectangle. See AnimationMode . |
Double com.herewhite.sdk.domain.RectangleConfig.getOriginX | ( | ) |
Gets the X coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin).
void com.herewhite.sdk.domain.RectangleConfig.setOriginX | ( | Double | originX | ) |
Sets the X coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin).
originX | The X coordinate of the top left corner of the view rectangle in the world coordinate system. |
Double com.herewhite.sdk.domain.RectangleConfig.getOriginY | ( | ) |
Gets the Y coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin).
void com.herewhite.sdk.domain.RectangleConfig.setOriginY | ( | Double | originY | ) |
Sets the Y coordinate of the top left corner of the view rectangle in the world coordinate system (taking the center of the initial whiteboard as the origin).
originY | The Y coordinate of the top left corner of the view rectangle in the world coordinate system. |
Double com.herewhite.sdk.domain.RectangleConfig.getWidth | ( | ) |
Gets the width of the view rectangle.
void com.herewhite.sdk.domain.RectangleConfig.setWidth | ( | Double | width | ) |
Sets the width of the view rectangle.
width | The width of the view rectangle. |
Double com.herewhite.sdk.domain.RectangleConfig.getHeight | ( | ) |
Gets the height of the view rectangle.
void com.herewhite.sdk.domain.RectangleConfig.setHeight | ( | Double | height | ) |
Sets the height of the view rectangle.
height | The height of the view rectangle. |
AnimationMode com.herewhite.sdk.domain.RectangleConfig.getAnimationMode | ( | ) |
Gets the animation mode of the view rectangle
AnimationMode
. void com.herewhite.sdk.domain.RectangleConfig.setAnimationMode | ( | AnimationMode | animationMode | ) |
Sets the animation mode of the view rectangle.
animationMode | The animation mode of the view rectangle. See AnimationMode . |