|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.gvt.font.GVTLineMetrics
GVTLineMetrics is a GVT version of java.awt.font.LineMetrics.
Field Summary | |
protected float |
ascent
|
protected int |
baselineIndex
|
protected float[] |
baselineOffsets
|
protected float |
descent
|
protected float |
height
|
protected float |
leading
|
protected int |
numChars
|
protected float |
overlineOffset
|
protected float |
overlineThickness
|
protected float |
strikethroughOffset
|
protected float |
strikethroughThickness
|
protected float |
underlineOffset
|
protected float |
underlineThickness
|
Constructor Summary | |
GVTLineMetrics(float ascent,
int baselineIndex,
float[] baselineOffsets,
float descent,
float height,
float leading,
int numChars,
float strikethroughOffset,
float strikethroughThickness,
float underlineOffset,
float underlineThickness,
float overlineOffset,
float overlineThickness)
Constructs a GVTLineMetrics object with the specified attributes. |
|
GVTLineMetrics(java.awt.font.LineMetrics lineMetrics)
Constructs a GVTLineMetrics object based on the specified line metrics. |
|
GVTLineMetrics(java.awt.font.LineMetrics lineMetrics,
float scaleFactor)
Constructs a GVTLineMetrics object based on the specified line metrics with a scale factor applied. |
Method Summary | |
float |
getAscent()
Returns the ascent of the text. |
int |
getBaselineIndex()
Returns the baseline index of the text. |
float[] |
getBaselineOffsets()
Returns the baseline offsets of the text, relative to the baseline of the text. |
float |
getDescent()
Returns the descent of the text. |
float |
getHeight()
Returns the height of the text. |
float |
getLeading()
Returns the leading of the text. |
int |
getNumChars()
Returns the number of characters in the text whose metrics are encapsulated by this LineMetrics object. |
float |
getOverlineOffset()
Returns the position of the overline relative to the baseline. |
float |
getOverlineThickness()
Returns the thickness of the overline. |
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 baseline. |
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 float ascent
protected int baselineIndex
protected float[] baselineOffsets
protected float descent
protected float height
protected float leading
protected int numChars
protected float strikethroughOffset
protected float strikethroughThickness
protected float underlineOffset
protected float underlineThickness
protected float overlineOffset
protected float overlineThickness
Constructor Detail |
public GVTLineMetrics(java.awt.font.LineMetrics lineMetrics)
lineMetrics
- The lineMetrics object that this metrics object will
be based upon.public GVTLineMetrics(java.awt.font.LineMetrics lineMetrics, float scaleFactor)
lineMetrics
- The lineMetrics object that this metrics object will
be based upon.scaleFactor
- The scale factor to apply to all metrics.public GVTLineMetrics(float ascent, int baselineIndex, float[] baselineOffsets, float descent, float height, float leading, int numChars, float strikethroughOffset, float strikethroughThickness, float underlineOffset, float underlineThickness, float overlineOffset, float overlineThickness)
Method Detail |
public float getAscent()
public int getBaselineIndex()
public float[] getBaselineOffsets()
public float getDescent()
public float getHeight()
public float getLeading()
public int getNumChars()
public float getStrikethroughOffset()
public float getStrikethroughThickness()
public float getUnderlineOffset()
public float getUnderlineThickness()
public float getOverlineOffset()
public float getOverlineThickness()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |