public final class LineBreakMeasurer extends Object
Constructor and Description |
---|
LineBreakMeasurer(AttributedCharacterIterator text,
BreakIterator breakIter,
FontRenderContext frc) |
LineBreakMeasurer(AttributedCharacterIterator text,
FontRenderContext frc) |
Modifier and Type | Method and Description |
---|---|
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) |
public LineBreakMeasurer(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc)
public LineBreakMeasurer(AttributedCharacterIterator text, FontRenderContext frc)
public void deleteChar(AttributedCharacterIterator newParagraph, int deletePos)
public void insertChar(AttributedCharacterIterator newParagraph, int insertPos)
public TextLayout nextLayout(float wrappingWidth)
public TextLayout nextLayout(float wrappingWidth, int offsetLimit, boolean requireNextWord)
public int nextOffset(float wrappingWidth)
public int nextOffset(float wrappingWidth, int offsetLimit, boolean requireNextWord)
public void setPosition(int newPosition)
public int getPosition()