|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.gvt.font.Glyph
A Glyph describes a graphics node with some specific glyph rendering attributes.
Constructor Summary | |
Glyph(java.lang.String unicode,
java.util.Vector names,
java.lang.String orientation,
java.lang.String arabicForm,
java.lang.String lang,
java.awt.geom.Point2D horizOrigin,
java.awt.geom.Point2D vertOrigin,
float horizAdvX,
float vertAdvY,
int glyphCode,
float kernScale,
java.awt.Paint fillPaint,
java.awt.Paint strokePaint,
java.awt.Stroke stroke,
java.awt.Shape dShape,
GraphicsNode glyphChildrenNode)
Constructs a Glyph with the specified parameters. |
Method Summary | |
void |
draw(java.awt.Graphics2D graphics2D)
Draws this glyph. |
java.lang.String |
getArabicForm()
Returns which of the four possible arabic forms this glyph represents. |
java.awt.geom.Rectangle2D |
getBounds2D()
|
java.awt.geom.Rectangle2D |
getGeometryBounds()
|
int |
getGlyphCode()
Returns the glyphs unique code with resect to its font. |
GVTGlyphMetrics |
getGlyphMetrics()
Returns the metrics of this Glyph if it is used in a horizontal layout. |
GVTGlyphMetrics |
getGlyphMetrics(float hkern,
float vkern)
Returns the metics of this Glyph with the specified kerning value applied. |
float |
getHorizAdvX()
Returns the horizontal advance value. |
java.awt.geom.Point2D |
getHorizOrigin()
Returns the horizontal origin of this glyph. |
java.lang.String |
getLang()
Returns a comma separated list of languages this glyph can be used in. |
java.util.Vector |
getNames()
Returns the names of this glyph. |
java.lang.String |
getOrientation()
Returns the orientation of this glyph. |
java.awt.Shape |
getOutline()
Returns the outline of this glyph. |
java.awt.geom.Point2D |
getPosition()
Returns the position of this glyph. |
java.awt.geom.AffineTransform |
getTransform()
Returns the glpyh's transform. |
java.lang.String |
getUnicode()
Returns the unicode char or chars this glyph represents. |
float |
getVertAdvY()
Returns the vertical advance value. |
java.awt.geom.Point2D |
getVertOrigin()
Returns the vertical origin of this glyph. |
void |
setPosition(java.awt.geom.Point2D position)
Sets the position of the glyph. |
void |
setTransform(java.awt.geom.AffineTransform transform)
Sets the transform to be applied to this glyph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Glyph(java.lang.String unicode, java.util.Vector names, java.lang.String orientation, java.lang.String arabicForm, java.lang.String lang, java.awt.geom.Point2D horizOrigin, java.awt.geom.Point2D vertOrigin, float horizAdvX, float vertAdvY, int glyphCode, float kernScale, java.awt.Paint fillPaint, java.awt.Paint strokePaint, java.awt.Stroke stroke, java.awt.Shape dShape, GraphicsNode glyphChildrenNode)
Method Detail |
public java.lang.String getUnicode()
public java.util.Vector getNames()
public java.lang.String getOrientation()
public java.lang.String getArabicForm()
public java.lang.String getLang()
public java.awt.geom.Point2D getHorizOrigin()
public java.awt.geom.Point2D getVertOrigin()
public float getHorizAdvX()
public float getVertAdvY()
public int getGlyphCode()
public java.awt.geom.AffineTransform getTransform()
public void setTransform(java.awt.geom.AffineTransform transform)
The
- transform to set.public java.awt.geom.Point2D getPosition()
public void setPosition(java.awt.geom.Point2D position)
position
- The new glyph position.public GVTGlyphMetrics getGlyphMetrics()
public GVTGlyphMetrics getGlyphMetrics(float hkern, float vkern)
kern
- The kerning value to apply when calculating the glyph
metrics.public java.awt.geom.Rectangle2D getGeometryBounds()
public java.awt.geom.Rectangle2D getBounds2D()
public java.awt.Shape getOutline()
public void draw(java.awt.Graphics2D graphics2D)
graphics2D
- The Graphics2D object to draw to.context
- The current rendering context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |