Agora Interactive Whiteboard Java API Reference
|
Public Member Functions | |
Double | getCenterX () |
void | setCenterX (Double centerX) |
Double | getCenterY () |
void | setCenterY (Double centerY) |
Double | getWidth () |
void | setWidth (Double width) |
Double | getHeight () |
void | setHeight (Double height) |
ContentModeConfig | getMaxContentMode () |
void | setMaxContentMode (ContentModeConfig maxContentMode) |
ContentModeConfig | getMinContentMode () |
void | setMinContentMode (ContentModeConfig minContentMode) |
Double | getDamping () |
void | setDamping (Double damping) |
CameraBound (Double miniScale, Double maxScale) | |
![]() | |
String | toString () |
JSONObject | toJSON () |
The CameraBound
class, for setting the boundaries for the view.
The area enclosed by the boundaries is the viewable area. Within the viewable area, the user can flexibly move or zoom the view. When the user tries to move the view beyond the viewable area, the SDK automatically drags the view back into the viewable area.
com.herewhite.sdk.domain.CameraBound.CameraBound | ( | Double | miniScale, |
Double | maxScale | ||
) |
Initializes the viewable area.
miniScale | The minimum scale factor of the viewable area. |
maxScale | The maximum scale factor of the viewable area. |
Double com.herewhite.sdk.domain.CameraBound.getCenterX | ( | ) |
Gets the X coordinate of the center of the viewable area in the world coordinate system (taking the center of the initial whiteboard as the origin).
void com.herewhite.sdk.domain.CameraBound.setCenterX | ( | Double | centerX | ) |
Sets the X coordinate of the center of the viewable area in the world coordinate system (taking the center of the initial whiteboard as the origin).
centerX | The X coordinate of the center of the viewable area in the world coordinate system. The default value is 0.0 . |
Double com.herewhite.sdk.domain.CameraBound.getCenterY | ( | ) |
Gets the Y coordinate of the center of the viewable area in the world coordinate system (taking the center of the initial whiteboard as the origin).
void com.herewhite.sdk.domain.CameraBound.setCenterY | ( | Double | centerY | ) |
Sets the Y coordinate of the center of the viewable area in the world coordinate system (taking the center of the initial whiteboard as the origin).
centerY | The Y coordinate of the center of the viewable area in the world coordinate system. The default value is 0.0 . |
Double com.herewhite.sdk.domain.CameraBound.getWidth | ( | ) |
Gets the width of the viewable area.
void com.herewhite.sdk.domain.CameraBound.setWidth | ( | Double | width | ) |
Sets the width of the viewable area.
width | The width (pixels) of the viewable area. If you do not set this parameter, the viewable area has no width limit. |
Double com.herewhite.sdk.domain.CameraBound.getHeight | ( | ) |
Gets the height of the viewable area.
void com.herewhite.sdk.domain.CameraBound.setHeight | ( | Double | height | ) |
Sets the height of the viewable area.
height | The height (pixels) of the viewable area. If you do not set this parameter, the viewable area has no height limit. |
ContentModeConfig com.herewhite.sdk.domain.CameraBound.getMaxContentMode | ( | ) |
Gets the scale mode and the maximum scale factor of the viewable area.
ContentModeConfig
. void com.herewhite.sdk.domain.CameraBound.setMaxContentMode | ( | ContentModeConfig | maxContentMode | ) |
Sets the scale mode and the maximum scale factor of the viewable area.
maxContentMode | The scale mode and the maximum scale factor of the viewable area. See ContentModeConfig . |
ContentModeConfig com.herewhite.sdk.domain.CameraBound.getMinContentMode | ( | ) |
Gets the scale mode and the minimum scale factor of the viewable area.
ContentModeConfig
. void com.herewhite.sdk.domain.CameraBound.setMinContentMode | ( | ContentModeConfig | minContentMode | ) |
Sets the scale mode and the minimum scale factor of the viewable area.
minContentMode | The scale mode and the minimum scale factor of the viewable area. See ContentModeConfig . |
Double com.herewhite.sdk.domain.CameraBound.getDamping | ( | ) |
Gets the resistance felt by the user when the user moves or scales up the view beyond the viewable area.
void com.herewhite.sdk.domain.CameraBound.setDamping | ( | Double | damping | ) |
Sets the resistance felt by the user when the user moves or scales up the view beyond the viewable area.
damping | The resistance coefficient. The value range is [0.0,1.0]. The higher the value, the larger the resistance felt by the user.
|