Package com.artifex.solib
Class SOSelectionLimits
java.lang.Object
com.artifex.solib.ArDkSelectionLimits
com.artifex.solib.SOSelectionLimits
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSOSelectionLimits(long internal) Internal constructor, only ever called from JNI -
Method Summary
Modifier and TypeMethodDescriptionvoidcombine(ArDkSelectionLimits limits) Combine another SOSelectionLimits with this one.voidcombineWith(SOSelectionLimits limits) protected voidfinalize()Finalizer to free the underlying C structure when gc'd.android.graphics.RectFgetBox()Read the bounding box of the selection.android.graphics.PointFgetEnd()Read the end of the selected area.android.graphics.PointFRead the position where the handle should be attached to the selection.booleanDetermine if the selection has pending visual changes.booleanDetermine if the Selection has a well defined end.booleanDetermine if the Selection has a well defined start.booleanDetermine if the selection is Active.booleanDetermine if the selection is a Caret.booleanDetermine if the selection is an IME composition.booleanDetermine if the selection is extensible.android.graphics.PointFgetStart()Read the start of the selected area.voidoffsetBy(double offX, double offY) Offset the positional information.voidoffsetBy(android.graphics.PointF offset) Offset the positional information.voidscaleBy(double scale) Scale the positional information.
-
Constructor Details
-
SOSelectionLimits
protected SOSelectionLimits(long internal) Internal constructor, only ever called from JNI- Parameters:
internal- C struct pointer cast to a long.
-
SOSelectionLimits
protected SOSelectionLimits()
-
-
Method Details
-
getStart
public android.graphics.PointF getStart()Read the start of the selected area.- Specified by:
getStartin classArDkSelectionLimits- Returns:
- Point representing the start of the selection.
-
getEnd
public android.graphics.PointF getEnd()Read the end of the selected area.- Specified by:
getEndin classArDkSelectionLimits- Returns:
- Point representing the end of the selection.
-
getHandle
public android.graphics.PointF getHandle()Read the position where the handle should be attached to the selection.- Returns:
- Point where the handle should be attached to the selection.
-
getBox
public android.graphics.RectF getBox()Read the bounding box of the selection.- Specified by:
getBoxin classArDkSelectionLimits- Returns:
- Selection bounding box.
-
getHasSelectionStart
public boolean getHasSelectionStart()Determine if the Selection has a well defined start.- Specified by:
getHasSelectionStartin classArDkSelectionLimits- Returns:
- true if the selection has a well defined start value.
-
getHasSelectionEnd
public boolean getHasSelectionEnd()Determine if the Selection has a well defined end.- Specified by:
getHasSelectionEndin classArDkSelectionLimits- Returns:
- true if the selection has a well defined start end.
-
getIsActive
public boolean getIsActive()Determine if the selection is Active.- Specified by:
getIsActivein classArDkSelectionLimits- Returns:
- true if the selection is active.
-
getIsCaret
public boolean getIsCaret()Determine if the selection is a Caret.- Specified by:
getIsCaretin classArDkSelectionLimits- Returns:
- true if the selection is a caret.
-
getIsExtensible
public boolean getIsExtensible()Determine if the selection is extensible.- Returns:
- true if the selection is extensible.
-
getHasPendingVisualChanges
public boolean getHasPendingVisualChanges()Determine if the selection has pending visual changes.- Returns:
- true if the selection has pending visual changes.
-
getIsComposing
public boolean getIsComposing()Determine if the selection is an IME composition.- Returns:
- true if the selection is an IME composition.
-
scaleBy
public void scaleBy(double scale) Scale the positional information.- Parameters:
scale- factor to scale by.
-
offsetBy
public void offsetBy(android.graphics.PointF offset) Offset the positional information.- Parameters:
offset- vector to offset by.
-
offsetBy
public void offsetBy(double offX, double offY) Offset the positional information.- Parameters:
offX- x value to offset by.offY- y value to offset by.
-
combine
Combine another SOSelectionLimits with this one. Typically this is used to combine multiple records for different pages.- Specified by:
combinein classArDkSelectionLimits- Parameters:
limits- SOSelectionLimits to combine with this one.- Note:
- limits must be from a later point in the document than 'this'.
-
combineWith
-
finalize
Finalizer to free the underlying C structure when gc'd.
-