Module java.desktop
Package java.awt.font

Class LineMetrics

java.lang.Object
java.awt.font.LineMetrics

public abstract class LineMetrics extends Object
The LineMetrics class allows access to the metrics needed to layout characters along a line and to layout of a set of lines. A LineMetrics object encapsulates the measurement information associated with a run of text.

Fonts can have different metrics for different ranges of characters. The getLineMetrics methods of Font take some text as an argument and return a LineMetrics object describing the metrics of the initial number of characters in that text, as returned by getNumChars().