Class Selection


  • public final class Selection
    extends java.lang.Object
    • Field Detail

      • anchor

        public int anchor
      • caret

        public int caret
      • clickAfter

        public boolean clickAfter
    • Constructor Detail

      • Selection

        public Selection()
    • Method Detail

      • getStart

        public int getStart()
      • getEnd

        public int getEnd()
      • isCaret

        public boolean isCaret()
      • set

        public Selection set​(int anchor,
                             int caret,
                             boolean clickAfter)
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • isLessThan

        public boolean isLessThan​(Selection other)
      • pin

        public Selection pin​(java.lang.String text)
      • fixAfterReplace

        public Selection fixAfterReplace​(int start,
                                         int end,
                                         int len)
      • nextBound

        public Selection nextBound​(java.text.BreakIterator breaker,
                                   int direction,
                                   boolean extend)
      • expand

        public void expand​(java.text.BreakIterator breaker)
      • next

        public static int next​(int position,
                               java.text.BreakIterator breaker,
                               int direction,
                               boolean different)