Interface Selection

All Known Implementing Classes:
SelectionImpl

public interface Selection
Provides access to selection control operations
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Provides the index of the first character designated by the selection.
    int
    Provides the index of the first character in the buffer
    int
    Provides the index of the first "virtual" character after the end of the buffer
    int
    Provides the index of the first character after the last character designated by the selection.
    void
    setBeginIndex(int beginIndex)
    Changes the value of the begin index of the selection
    void
    setEndIndex(int endIndex)
    Changes the value of the end index of the selection
  • Method Details

    • getBeginIndex

      int getBeginIndex()
      Provides the index of the first character designated by the selection.
      Returns:
    • getEndIndex

      int getEndIndex()
      Provides the index of the first character after the last character designated by the selection.
      Returns:
      the end index
    • getBufferBeginIndex

      int getBufferBeginIndex()
      Provides the index of the first character in the buffer
      Returns:
      the buffer's begin index
    • getBufferEndIndex

      int getBufferEndIndex()
      Provides the index of the first "virtual" character after the end of the buffer
      Returns:
      the post end buffer index
    • setBeginIndex

      void setBeginIndex(int beginIndex)
      Changes the value of the begin index of the selection
      Parameters:
      beginIndex - , must be within the buffer index range
      Throws:
      IndexOutOfBoundsException - if the beginIndex is out of bounds
    • setEndIndex

      void setEndIndex(int endIndex)
      Changes the value of the end index of the selection
      Parameters:
      endIndex - , must be within the buffer index range
      Throws:
      IndexOutOfBoundsException - if the beginIndex is out of bounds