API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.font. LineBreakMeasurer View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      LineBreakMeasurer
Implements
Subclasses
Description
publicfinal class LineBreakMeasurer
  The LineBreakMeasurer class allows styled text to be broken into lines (or segments) that fit within a particular visual advance.
See also:    TextLayout
Constructors
public LineBreakMeasurer (AttributedCharacterIterator text, BreakIterator breakIter, FontRenderContext frc)
  Constructs a LineBreakMeasurer for the specified text.
public LineBreakMeasurer (AttributedCharacterIterator text, FontRenderContext frc)
  Constructs a LineBreakMeasurer for the specified text.
Methods
Hide/Show inherited methods
public void deleteChar (AttributedCharacterIterator newParagraph, int deletePos)
  Updates this LineBreakMeasurer after a single character is deleted from the text, and sets the current position to the beginning of the paragraph.
public int getPosition ()
  Returns the current position of this LineBreakMeasurer.
public void insertChar (AttributedCharacterIterator newParagraph, int insertPos)
  Updates this LineBreakMeasurer after a single character is inserted into the text, and sets the current position to the beginning of the paragraph.
public TextLayout nextLayout (float wrappingWidth)
  Returns the next layout, and updates the current position.
public TextLayout nextLayout (float wrappingWidth, int offsetLimit, boolean requireNextWord)
  Returns the next layout, and updates the current position.
public int nextOffset (float wrappingWidth)
  Returns the position at the end of the next layout.
public int nextOffset (float wrappingWidth, int offsetLimit, boolean requireNextWord)
  Returns the position at the end of the next layout.
public void setPosition (int newPosition)
  Sets the current position of this LineBreakMeasurer.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar