Learn how to evaluate and integrate the VNC SDK
AnnotationManager¶
-
public abstract class
AnnotationManager¶ Enables a Viewer or Server to annotate a Server device screen.
Nested Classes¶
- interface
AnnotationManager.Callback
Method Summary¶
| Modifier and Type | Method and Description |
|---|---|
void |
Clears particular annotations. |
void |
Clears all annotations. |
int |
Gets how long annotations take to fade. |
int |
Gets the current pen color. |
int |
Gets the current pen size. |
int |
Gets how long annotations persist as a solid color for. |
boolean |
Queries whether it is possible to annotate. |
void |
Draws a line on the Server screen from the current position to a new position. |
void |
Sets annotation-related callbacks. |
void |
Sets how long annotations take to fade. |
void |
Sets the pen color, determining the color of the annotation line. |
void |
Sets the pen size, determining the width of the annotation line. |
void |
Sets how long annotations persist as a solid color for. |
Methods¶
-
public void
clear(boolean fade, Connection connection) throws Library.VncException¶ Clears particular annotations.
For more information, see
vnc_AnnotationManager_clear().
-
public void
clearAll(boolean fade)¶ Clears all annotations.
For more information, see
vnc_AnnotationManager_clearAll().
-
public int
getFadeDuration()¶ Gets how long annotations take to fade.
For more information, see
vnc_AnnotationManager_getFadeDuration().
-
public int
getPenColor()¶ Gets the current pen color.
For more information, see
vnc_AnnotationManager_getPenColor().
-
public int
getPenSize()¶ Gets the current pen size.
For more information, see
vnc_AnnotationManager_getPenSize().
-
public int
getPersistDuration()¶ Gets how long annotations persist as a solid color for.
For more information, see
vnc_AnnotationManager_getPersistDuration().
-
public boolean
isAvailable()¶ Queries whether it is possible to annotate.
For more information, see
vnc_AnnotationManager_isAvailable().
-
public void
movePenTo(int x, int y, boolean penDown) throws Library.VncException¶ Draws a line on the Server screen from the current position to a new position.
For more information, see
vnc_AnnotationManager_movePenTo().
-
public void
setCallback(AnnotationManager.Callback callback) throws Library.VncException¶ Sets annotation-related callbacks.
For more information, see
vnc_AnnotationManager_setCallback().
-
public void
setFadeDuration(int durationMs)¶ Sets how long annotations take to fade.
For more information, see
vnc_AnnotationManager_setFadeDuration().
-
public void
setPenColor(int color)¶ Sets the pen color, determining the color of the annotation line.
For more information, see
vnc_AnnotationManager_setPenColor().
-
public void
setPenSize(int size)¶ Sets the pen size, determining the width of the annotation line.
For more information, see
vnc_AnnotationManager_setPenSize().
-
public void
setPersistDuration(int durationMs)¶ Sets how long annotations persist as a solid color for.
For more information, see
vnc_AnnotationManager_setPersistDuration().