|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.font.LineMetrics | +--com.klg.jclass.page.LineMetricsBase
Base implementation of LineMetrics to be extended.
Field Summary | |
protected FontMetrics |
fontMetrics
|
protected String |
string
|
Constructor Summary | |
LineMetricsBase(FontMetrics fontMetrics,
String string)
Constructor |
Method Summary | |
float |
getAscent()
Returns the ascent of the Font . |
int |
getBaselineIndex()
Returns the current baseline index used for laying out the text of the Font . |
float[] |
getBaselineOffsets()
Returns the baseline offsets as defined in the Font , relative to y=0. |
float |
getDescent()
Returns the descent of the Font . |
float |
getHeight()
Returns the height of the Font . |
float |
getLeading()
Returns the leading of the Font . |
int |
getNumChars()
Returns the number of characters in the Font . |
float |
getStrikethroughOffset()
Returns the position of the strike through line relative to the baseline. |
float |
getStrikethroughThickness()
Returns the thickness of the strike through line. |
float |
getUnderlineOffset()
Returns the position of the underline relative to the descender. |
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 |
Field Detail |
protected FontMetrics fontMetrics
protected String string
Constructor Detail |
public LineMetricsBase(FontMetrics fontMetrics, String string)
Method Detail |
public int getNumChars()
Font
.
getNumChars
in class LineMetrics
Font
.public 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
.
getAscent
in class LineMetrics
Font
.public 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.
getDescent
in class LineMetrics
Font
.public 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.
getLeading
in class LineMetrics
Font
.public float getHeight()
Font
. The
height is equal to the sum of the ascent, the
descent and the leading.
getHeight
in class LineMetrics
Font
.public int getBaselineIndex()
Font
.
getBaselineIndex
in class LineMetrics
Font
.public float[] getBaselineOffsets()
Font
, relative to y=0.
getBaselineOffsets
in class LineMetrics
Font
.public float getStrikethroughOffset()
getStrikethroughOffset
in class LineMetrics
public float getStrikethroughThickness()
getStrikethroughThickness
in class LineMetrics
public float getUnderlineOffset()
getUnderlineOffset
in class LineMetrics
public float getUnderlineThickness()
getUnderlineThickness
in class LineMetrics
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |