|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.font.LineMetrics
Constructor Summary | |
LineMetrics()
|
Method Summary | |
abstract float |
getAscent()
Returns the ascent of the Font . |
abstract int |
getBaselineIndex()
Returns the current baseline index used for laying out the text of the Font . |
abstract float[] |
getBaselineOffsets()
Returns the baseline offsets as defined in the Font , relative to y=0. |
abstract float |
getDescent()
Returns the descent of the Font . |
abstract float |
getHeight()
Returns the height of the Font . |
abstract float |
getLeading()
Returns the leading of the Font . |
abstract int |
getNumChars()
Returns the number of characters in the Font . |
abstract float |
getStrikethroughOffset()
Returns the position of the strike through line relative to the baseline. |
abstract float |
getStrikethroughThickness()
Returns the thickness of the strike through line. |
abstract float |
getUnderlineOffset()
Returns the position of the underline relative to the descender. |
abstract float |
getUnderlineThickness()
Returns the thickness of the underline. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LineMetrics()
Method Detail |
public abstract int getNumChars()
Font
.Font
.public abstract float getAscent()
Font
. The ascent
of a Font
is the distance from the baseline
to the ascender line. The ascent usually represents the
the height of the capital letters of the Font
.Font
.public abstract float getDescent()
Font
. The descent
of a Font
is the distance from the baseline
to the descender line. The characters of the
Font
usually do not extend below the
descender line.Font
.public abstract float getLeading()
Font
. The
leading of a Font
is the recommended
distance from the bottom of the descender line to the
top of next line.Font
.public abstract float getHeight()
Font
. The
height is equal to the sum of the ascent, the
descent and the leading.Font
.public abstract int getBaselineIndex()
Font
.Font
.public abstract float[] getBaselineOffsets()
Font
, relative to y=0.Font
.public abstract float getStrikethroughOffset()
public abstract float getStrikethroughThickness()
public abstract float getUnderlineOffset()
public abstract float getUnderlineThickness()
|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |