java.awt.font
Class LineBreakMeasurer

java.lang.Object
  extended by java.awt.font.LineBreakMeasurer

public final class LineBreakMeasurer
extends Object


Constructor Summary
LineBreakMeasurer(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc)
           
LineBreakMeasurer(AttributedCharacterIterator text, FontRenderContext frc)
           
 
Method Summary
 void deleteChar(AttributedCharacterIterator newParagraph, int deletePos)
           
 int getPosition()
           
 void insertChar(AttributedCharacterIterator newParagraph, int insertPos)
           
 TextLayout nextLayout(float wrappingWidth)
           
 TextLayout nextLayout(float wrappingWidth, int offsetLimit, boolean requireNextWord)
           
 int nextOffset(float wrappingWidth)
           
 int nextOffset(float wrappingWidth, int offsetLimit, boolean requireNextWord)
           
 void setPosition(int newPosition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineBreakMeasurer

public LineBreakMeasurer(AttributedCharacterIterator text,
                         BreakIterator breakIter,
                         FontRenderContext frc)

LineBreakMeasurer

public LineBreakMeasurer(AttributedCharacterIterator text,
                         FontRenderContext frc)
Method Detail

deleteChar

public void deleteChar(AttributedCharacterIterator newParagraph,
                       int deletePos)

insertChar

public void insertChar(AttributedCharacterIterator newParagraph,
                       int insertPos)

nextLayout

public TextLayout nextLayout(float wrappingWidth)

nextLayout

public TextLayout nextLayout(float wrappingWidth,
                             int offsetLimit,
                             boolean requireNextWord)

nextOffset

public int nextOffset(float wrappingWidth)

nextOffset

public int nextOffset(float wrappingWidth,
                      int offsetLimit,
                      boolean requireNextWord)

setPosition

public void setPosition(int newPosition)

getPosition

public int getPosition()