Example usage for Java java.awt.font LineBreakMeasurer fields, constructors, methods, implement or subclass
The text is from its open source code.
LineBreakMeasurer(AttributedCharacterIterator text, FontRenderContext frc) Constructs a LineBreakMeasurer for the specified text. | |
LineBreakMeasurer(AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc) Constructs a LineBreakMeasurer for the specified text. |
int | getPosition() Returns the current position of this LineBreakMeasurer . |
TextLayout | nextLayout(float wrappingWidth) Returns the next layout, and updates the current position. |
int | nextOffset(float wrappingWidth, int offsetLimit, boolean requireNextWord) Returns the position at the end of the next layout. |
void | setPosition(int newPosition) Sets the current position of this LineBreakMeasurer . |