Class SOSelectionLimits

java.lang.Object
com.artifex.solib.ArDkSelectionLimits
com.artifex.solib.SOSelectionLimits

public class SOSelectionLimits extends ArDkSelectionLimits
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    SOSelectionLimits(long internal)
    Internal constructor, only ever called from JNI
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Combine another SOSelectionLimits with this one.
    void
     
    protected void
    Finalizer to free the underlying C structure when gc'd.
    android.graphics.RectF
    Read the bounding box of the selection.
    android.graphics.PointF
    Read the end of the selected area.
    android.graphics.PointF
    Read the position where the handle should be attached to the selection.
    boolean
    Determine if the selection has pending visual changes.
    boolean
    Determine if the Selection has a well defined end.
    boolean
    Determine if the Selection has a well defined start.
    boolean
    Determine if the selection is Active.
    boolean
    Determine if the selection is a Caret.
    boolean
    Determine if the selection is an IME composition.
    boolean
    Determine if the selection is extensible.
    android.graphics.PointF
    Read the start of the selected area.
    void
    offsetBy(double offX, double offY)
    Offset the positional information.
    void
    offsetBy(android.graphics.PointF offset)
    Offset the positional information.
    void
    scaleBy(double scale)
    Scale the positional information.

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getStart in class ArDkSelectionLimits
      Returns:
      Point representing the start of the selection.
    • getEnd

      public android.graphics.PointF getEnd()
      Read the end of the selected area.
      Specified by:
      getEnd in class ArDkSelectionLimits
      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:
      getBox in class ArDkSelectionLimits
      Returns:
      Selection bounding box.
    • getHasSelectionStart

      public boolean getHasSelectionStart()
      Determine if the Selection has a well defined start.
      Specified by:
      getHasSelectionStart in class ArDkSelectionLimits
      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:
      getHasSelectionEnd in class ArDkSelectionLimits
      Returns:
      true if the selection has a well defined start end.
    • getIsActive

      public boolean getIsActive()
      Determine if the selection is Active.
      Specified by:
      getIsActive in class ArDkSelectionLimits
      Returns:
      true if the selection is active.
    • getIsCaret

      public boolean getIsCaret()
      Determine if the selection is a Caret.
      Specified by:
      getIsCaret in class ArDkSelectionLimits
      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

      public void combine(ArDkSelectionLimits limits)
      Combine another SOSelectionLimits with this one. Typically this is used to combine multiple records for different pages.
      Specified by:
      combine in class ArDkSelectionLimits
      Parameters:
      limits - SOSelectionLimits to combine with this one.
      Note:
      limits must be from a later point in the document than 'this'.
    • combineWith

      public void combineWith(SOSelectionLimits limits)
    • finalize

      protected void finalize() throws Throwable
      Finalizer to free the underlying C structure when gc'd.
      Overrides:
      finalize in class Object
      Throws:
      Throwable