Class TextSelection

java.lang.Object
com.ardor3d.extension.ui.text.TextSelection

public abstract class TextSelection extends Object
  • Field Details

    • _startIndex

      protected int _startIndex
    • _endIndex

      protected int _endIndex
    • _state

      protected TextSelection.SelectionState _state
    • _standin

      protected Mesh _standin
      The mesh used to render this selection.
  • Constructor Details

    • TextSelection

      public TextSelection()
  • Method Details

    • getCaretPosition

      public abstract int getCaretPosition()
      Returns:
      the current caret position within the component whose selection we are tracking.
    • getTextData

      public abstract RenderedText.RenderedTextData getTextData()
      Returns:
      the data object of the text associated with this selection.
    • getSelectionLength

      public int getSelectionLength()
    • reset

      public void reset()
    • getEndIndex

      public int getEndIndex()
    • setEndIndex

      public void setEndIndex(int endIndex)
    • getStartIndex

      public int getStartIndex()
    • setStartIndex

      public void setStartIndex(int startIndex)
    • getState

      public TextSelection.SelectionState getState()
    • setState

      public void setState(TextSelection.SelectionState state)
    • upKey

      public void upKey()
      Alter the selection as if the "shift" and "up" keys are pressed.
    • downKey

      public void downKey()
      Alter the selection as if the "shift" and "down" keys are pressed.
    • leftKey

      public void leftKey()
      Alter the selection as if the "shift" and "left" keys are pressed.
    • rightKey

      public void rightKey()
      Alter the selection as if the "shift" and "right" keys are pressed.
    • checkStart

      public void checkStart()
    • draw

      public void draw(Renderer renderer, ReadOnlyTransform xform)
    • createSelectionMesh

      protected Mesh createSelectionMesh()