|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.gvt.font.GVTGlyphMetrics
GVTGlyphMetrics is essentially a wrapper class for java.awt.font.GlyphMetrics with the addition of horizontal and vertical advance values.
Constructor Summary | |
GVTGlyphMetrics(float horizontalAdvance,
float verticalAdvance,
java.awt.geom.Rectangle2D bounds,
byte glyphType)
Constructs a new GVTGlyphMetrics object using the specified parameters. |
|
GVTGlyphMetrics(java.awt.font.GlyphMetrics gm,
float verticalAdvance)
Constructs a new GVTGlyphMetrics object based upon the specified GlyphMetrics object and an additional vertical advance value. |
Method Summary | |
java.awt.geom.Rectangle2D |
getBounds2D()
Returns the black box bounds of the glyph. |
float |
getHorizontalAdvance()
Returns the horizontal advance of the glyph. |
float |
getLSB()
Returns the left (top) side bearing of the glyph. |
float |
getRSB()
Returns the right (bottom) side bearing of the glyph. |
int |
getType()
Returns the raw glyph type code. |
float |
getVerticalAdvance()
Returns the vertical advance of the glyph. |
boolean |
isCombining()
Returns true if this is a combining glyph. |
boolean |
isComponent()
Returns true if this is a component glyph. |
boolean |
isLigature()
Returns true if this is a ligature glyph. |
boolean |
isStandard()
Returns true if this is a standard glyph. |
boolean |
isWhitespace()
Returns true if this is a whitespace glyph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GVTGlyphMetrics(java.awt.font.GlyphMetrics gm, float verticalAdvance)
gm
- The glyph metrics.verticalAdvance
- The vertical advance of the glyph.public GVTGlyphMetrics(float horizontalAdvance, float verticalAdvance, java.awt.geom.Rectangle2D bounds, byte glyphType)
horizontalAdvance
- The horizontal advance of the glyph.verticalAdvance
- The vertical advance of the glyph.bounds
- The black box bounds of the glyph.glyphType
- The type of the glyph.Method Detail |
public float getHorizontalAdvance()
public float getVerticalAdvance()
public java.awt.geom.Rectangle2D getBounds2D()
public float getLSB()
public float getRSB()
public int getType()
public boolean isCombining()
public boolean isComponent()
public boolean isLigature()
public boolean isStandard()
public boolean isWhitespace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |