API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.font. TextMeasurer View Source
Author(s)
John Raley
Since
1.3
Version
1.31, 04/20/01
Serial
Hierarchy
 Object
      TextMeasurer
Implements
 Cloneable
Subclasses
Description
publicfinal class TextMeasurer
  The TextMeasurer class provides the primitive operations needed for line break: measuring up to a given advance, determining the advance of a range of characters, and generating a TextLayout for a range of characters.
See also:    LineBreakMeasurer
Constructors
public TextMeasurer (AttributedCharacterIterator text, FontRenderContext frc)
  Constructs a TextMeasurer from the source text.
Methods
Hide/Show inherited methods
protected Object clone ()
public void deleteChar (AttributedCharacterIterator newParagraph, int deletePos)
  Updates the TextMeasurer after a single character has been deleted from the paragraph currently represented by this TextMeasurer.
public float getAdvanceBetween (int start, int limit)
  Returns the graphical width of a line beginning at start and including characters up to limit.
pack-private char getChars ()
  NOTE: This method is only for LineBreakMeasurer's use.
public TextLayout getLayout (int start, int limit)
  Returns a TextLayout on the given character range.
public int getLineBreakIndex (int start, float maxAdvance)
  Returns the index of the first character which will not fit on on a line beginning at start and possible measuring up to maxAdvance in graphical width.
public void insertChar (AttributedCharacterIterator newParagraph, int insertPos)
  Updates the TextMeasurer after a single character has been inserted into the paragraph currently represented by this TextMeasurer.
Fields
Hide/Show inherited fields
pack-private int layoutCharCount
pack-private int layoutCount
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar