class GlyphRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
GlyphRenderer.Point
This class represents one point of a glyph.
|
Modifier and Type | Field and Description |
---|---|
private GlyphDescription |
glyphDescription |
private static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
GlyphRenderer(GlyphDescription glyphDescription) |
Modifier and Type | Method and Description |
---|---|
private java.awt.geom.GeneralPath |
calculatePath(GlyphRenderer.Point[] points)
Use the given points to calculate a GeneralPath.
|
private GlyphRenderer.Point[] |
describe(GlyphDescription gd)
Set the points of a glyph from the GlyphDescription.
|
java.awt.geom.GeneralPath |
getPath()
Returns the path of the glyph.
|
private void |
lineTo(java.awt.geom.GeneralPath path,
GlyphRenderer.Point point) |
private GlyphRenderer.Point |
midValue(GlyphRenderer.Point point1,
GlyphRenderer.Point point2) |
private int |
midValue(int a,
int b) |
private void |
moveTo(java.awt.geom.GeneralPath path,
GlyphRenderer.Point point) |
private void |
quadTo(java.awt.geom.GeneralPath path,
GlyphRenderer.Point ctrlPoint,
GlyphRenderer.Point point) |
private static final org.apache.commons.logging.Log LOG
private GlyphDescription glyphDescription
GlyphRenderer(GlyphDescription glyphDescription)
public java.awt.geom.GeneralPath getPath()
private GlyphRenderer.Point[] describe(GlyphDescription gd)
private java.awt.geom.GeneralPath calculatePath(GlyphRenderer.Point[] points)
points
- the points to be used to generate the GeneralPathprivate void moveTo(java.awt.geom.GeneralPath path, GlyphRenderer.Point point)
private void lineTo(java.awt.geom.GeneralPath path, GlyphRenderer.Point point)
private void quadTo(java.awt.geom.GeneralPath path, GlyphRenderer.Point ctrlPoint, GlyphRenderer.Point point)
private int midValue(int a, int b)
private GlyphRenderer.Point midValue(GlyphRenderer.Point point1, GlyphRenderer.Point point2)