com.pspdfkit.ui.special_mode.controller.AnnotationSelectionController |
Controls configurable properties on annotation selection layout that allows touch based editing
(i.e. moving, scaling) on selected annotations. Can be retrieved by registering an AnnotationManager.OnAnnotationSelectedListener
using addOnAnnotationSelectedListener(AnnotationManager.OnAnnotationSelectedListener)
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract AnnotationSelectionViewThemeConfiguration |
getAnnotationSelectionViewThemeConfiguration()
Gets the theme configuration used to customize the annotation selection view.
| ||||||||||
abstract boolean |
isDraggingEnabled()
Test whether selection dragging is enabled.
| ||||||||||
abstract Boolean |
isKeepAspectRatioEnabled()
Test whether aspect ratio is maintained when resizing.
| ||||||||||
abstract boolean |
isResizeEnabled()
Test if selection resizing is enabled.
| ||||||||||
abstract boolean |
isResizeGuidesEnabled()
Test whether resize guides are enabled.
| ||||||||||
abstract boolean |
isRotationEnabled()
Check whether rotating annotations (that support it) is enabled.
| ||||||||||
abstract void |
setAnnotationSelectionViewThemeConfiguration(AnnotationSelectionViewThemeConfiguration configuration)
Sets a theme configuration to customize the annotation selection view.
| ||||||||||
abstract void |
setDraggingEnabled(boolean isDragEnabled)
Enable or disable selection dragging.
| ||||||||||
abstract void |
setKeepAspectRatioEnabled(boolean keepAspectRatio)
Forces selection to keep/not keep aspect ratio.
| ||||||||||
abstract void |
setResizeEnabled(boolean resizeEnabled)
Enable or disable selection resizing.
| ||||||||||
abstract void |
setResizeGuidesEnabled(boolean resizeGuidesEnabled)
Enable or disable resize guides.
| ||||||||||
abstract void |
setRotationEnabled(boolean isRotationEnabled)
Enable or disable annotation rotation.
|
Gets the theme configuration used to customize the annotation selection view.
Test whether selection dragging is enabled.
Test whether aspect ratio is maintained when resizing.
null
when default behavior is used - i.e. enabled for certain annotations (for example image
stamps).
Test if selection resizing is enabled.
Test whether resize guides are enabled.
Check whether rotating annotations (that support it) is enabled.
true
when annotation rotation is enabled, false
otherwise.
Sets a theme configuration to customize the annotation selection view.
configuration | Theme configuration to be applied to the annotation selection view. |
---|
Enable or disable selection dragging.
isDragEnabled | True when selection can be dragged. |
---|
Forces selection to keep/not keep aspect ratio. When not set uses default behavior when only image annotations will keep aspect ratio.
keepAspectRatio | True when aspect ratio should be kept when resizing. |
---|
Enable or disable selection resizing.
resizeEnabled | When false, drag handles won't be drawn and annotation resizing will be disabled. |
---|
Enable or disable resize guides.
resizeGuidesEnabled | When false, resize guides won't be drawn and snapping to square and aspect ratio will be disabled. |
---|
Enable or disable annotation rotation.
isRotationEnabled | true to enable annotation rotation, false to disable
it.
|
---|