Class Selection

java.lang.Object
com.ibm.icu.dev.demo.impl.Selection

public final class Selection extends Object
  • Field Details

    • anchor

      public int anchor
    • caret

      public int caret
    • clickAfter

      public boolean clickAfter
  • Constructor Details

    • Selection

      public Selection()
  • Method Details

    • getStart

      public int getStart()
    • getEnd

      public int getEnd()
    • isCaret

      public boolean isCaret()
    • set

      public Selection set(Selection other)
    • set

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • isLessThan

      public boolean isLessThan(Selection other)
    • pin

      public Selection pin(String text)
    • swap

      public Selection swap(Selection after)
    • fixAfterReplace

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

      public Selection nextBound(BreakIterator breaker, int direction, boolean extend)
    • expand

      public void expand(BreakIterator breaker)
    • next

      public static int next(int position, BreakIterator breaker, int direction, boolean different)