java.awt.font

Class LineBreakMeasurer

public final class LineBreakMeasurer extends Object

Constructor Summary
LineBreakMeasurer(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc)
LineBreakMeasurer(AttributedCharacterIterator text, FontRenderContext frc)
Method Summary
voiddeleteChar(AttributedCharacterIterator newParagraph, int deletePos)
intgetPosition()
voidinsertChar(AttributedCharacterIterator newParagraph, int insertPos)
TextLayoutnextLayout(float wrappingWidth)
TextLayoutnextLayout(float wrappingWidth, int offsetLimit, boolean requireNextWord)
intnextOffset(float wrappingWidth)
intnextOffset(float wrappingWidth, int offsetLimit, boolean requireNextWord)
voidsetPosition(int newPosition)

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)

getPosition

public int getPosition()

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)