FileDocCategorySizeDatePackage
LineMetrics.javaAPI DocAndroid 1.5 API3256Wed May 06 22:41:54 BST 2009java.awt.font

LineMetrics

public abstract class LineMetrics extends Object
The LineMetrics class provides information such as concerning how the text is positioned with respect to the base line, such as ascent, descent, and leading.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public abstract floatgetAscent()
Gets the ascent of the text.

return
the ascent of the text.

public abstract intgetBaselineIndex()
Gets the baseline index, returns one of the following index: ROMAN_BASELINE, CENTER_BASELINE, HANGING_BASELINE.

return
the baseline index: ROMAN_BASELINE, CENTER_BASELINE or HANGING_BASELINE.

public abstract float[]getBaselineOffsets()
Gets the baseline offsets of the text according to the the baseline of this text.

return
the baseline offsets of the text according to the the baseline of this text.

public abstract floatgetDescent()
Gets the descent of the text.

return
the descent of the text.

public abstract floatgetHeight()
Gets the height of the text as a sum of the ascent, the descent and the leading.

return
the height of the text as a sum of the ascent, the descent and the leading.

public abstract floatgetLeading()
Gets the leading of the text.

return
the leading of the text.

public abstract intgetNumChars()
Gets the number of characters of the text.

return
the number of characters of the text.

public abstract floatgetStrikethroughOffset()
Gets the offset of the strike through line.

return
the offset of the strike through line.

public abstract floatgetStrikethroughThickness()
Gets the thickness of strike through line.

return
the thickness of strike through line.

public abstract floatgetUnderlineOffset()
Gets the offset of the underline.

return
the offset of the underline.

public abstract floatgetUnderlineThickness()
Gets the thickness of the underline.

return
the thickness of the underline.