Class FastBreakIterator

  • All Implemented Interfaces:
    java.lang.Cloneable

    public final class FastBreakIterator
    extends java.text.BreakIterator
    A break iterator that caches the breakpoints of another iterator. This is useful when performing text layout, as break point analysis is used heavily during this process.
    Since:
    2.0
    Author:
    Chris Jennings
    • Field Summary

      • Fields inherited from class java.text.BreakIterator

        DONE
    • Constructor Summary

      Constructors 
      Constructor Description
      FastBreakIterator​(java.text.BreakIterator iteratorToCache)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int current()  
      int first()  
      int following​(int offset)  
      java.text.CharacterIterator getText()  
      int last()  
      int next()  
      int next​(int n)  
      int preceding​(int offset)  
      int previous()  
      void setText​(java.text.CharacterIterator newText)  
      • Methods inherited from class java.text.BreakIterator

        clone, getAvailableLocales, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getSentenceInstance, getSentenceInstance, getWordInstance, getWordInstance, isBoundary, setText
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FastBreakIterator

        public FastBreakIterator​(java.text.BreakIterator iteratorToCache)
    • Method Detail

      • setText

        public void setText​(java.text.CharacterIterator newText)
        Specified by:
        setText in class java.text.BreakIterator
      • getText

        public java.text.CharacterIterator getText()
        Specified by:
        getText in class java.text.BreakIterator
      • current

        public int current()
        Specified by:
        current in class java.text.BreakIterator
      • first

        public int first()
        Specified by:
        first in class java.text.BreakIterator
      • last

        public int last()
        Specified by:
        last in class java.text.BreakIterator
      • following

        public int following​(int offset)
        Specified by:
        following in class java.text.BreakIterator
      • preceding

        public int preceding​(int offset)
        Overrides:
        preceding in class java.text.BreakIterator
      • next

        public int next​(int n)
        Specified by:
        next in class java.text.BreakIterator
      • next

        public int next()
        Specified by:
        next in class java.text.BreakIterator
      • previous

        public int previous()
        Specified by:
        previous in class java.text.BreakIterator