|
||||||||||
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(GraphicsNode glyphNode,
java.lang.String unicode,
java.util.Vector names,
java.lang.String orientation,
java.lang.String arabicForm,
java.lang.String lang,
java.awt.geom.Point2D vertOrigin,
float horizAdvX,
float vertAdvY,
int glyphCode,
float kernScale)
Constructs a Glyph with the specified parameters. |
Method Summary | |
void |
draw(java.awt.Graphics2D graphics2D,
GraphicsNodeRenderContext context)
Draws this glyph. |
java.lang.String |
getArabicForm()
Returns which of the four possible arabic forms this glyph represents. |
int |
getGlyphCode()
Returns the glyphs unique code with resect to its font. |
java.awt.font.GlyphMetrics |
getGlyphMetrics()
Returns the metrics of this Glyph. |
java.awt.font.GlyphMetrics |
getGlyphMetrics(float kern)
Returns the metics of this Glyph with the specified kerning value applied. |
GraphicsNode |
getGlyphNode()
Returns the graphics node associated with this glyph. |
float |
getHorizAdvX()
Returns the horizontal advance value. |
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(GraphicsNode glyphNode, java.lang.String unicode, java.util.Vector names, java.lang.String orientation, java.lang.String arabicForm, java.lang.String lang, java.awt.geom.Point2D vertOrigin, float horizAdvX, float vertAdvY, int glyphCode, float kernScale)
glyphNode
- The graphics node for this glyph.unicode
- The unicode char or chars that this glpyh represents.names
- The list of names for this glyph.orientation
- Indicates what inline-progression-direction this glyph
can be used in. Should be either "h" for horizontal only, "v" for vertical
only, or empty which indicates that the glpyh can be use in both.arabicForm
- lang
- vertOrigin
- horizAdvX
- vertAdvY
- glyphCode
- kernScale
- Method Detail |
public GraphicsNode getGlyphNode()
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 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 java.awt.font.GlyphMetrics getGlyphMetrics()
public java.awt.font.GlyphMetrics getGlyphMetrics(float kern)
kern
- The kerning value to apply when calculating the glyph metrics.public java.awt.Shape getOutline()
public void draw(java.awt.Graphics2D graphics2D, GraphicsNodeRenderContext context)
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 |