|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.util.font.Glyph
com.flagstone.transform.util.font.TrueTypeGlyph
public final class TrueTypeGlyph
TrueTypeGlyph is a simple container class used to decode TrueType glyphs.
| Constructor Summary | |
|---|---|
TrueTypeGlyph(Shape aShape)
Create a TrueTypeGlyph with the specified outline - the bounding box and advance default to zero. |
|
TrueTypeGlyph(Shape aShape,
Bounds rect,
int dist)
Create a TrueTypeGlyph with the specified outline, bounding box and advance. |
|
| Method Summary | |
|---|---|
void |
getCurve(boolean[] array)
Get the set of flags which indicate which point are on the segment. |
void |
getEnd(int[] array)
Get the set of end points for the segment of a glyph. |
void |
getXCoordinates(int[] array)
Get the set of x coordinates representing a segment of a glyph. |
void |
getYCoordinates(int[] array)
Get the set of y coordinates representing a segment of a glyph. |
int |
numberOfContours()
Get the number of contours. |
int |
numberOfPoints()
Get the number of points in the segment. |
void |
setCoordinates(int[] xcoords,
int[] ycoords)
Set the points for a segment of a glyph. |
void |
setEnds(int[] array)
Set the end-points for a segment of a glyph. |
void |
setOnCurve(boolean[] array)
Indicate which points are on the segment. |
| Methods inherited from class com.flagstone.transform.util.font.Glyph |
|---|
getAdvance, getBounds, getShape, setAdvance, setBounds, setShape |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrueTypeGlyph(Shape aShape,
Bounds rect,
int dist)
aShape - the outline of the glyph.rect - the bounding box that encloses the glyph.dist - the advance to the next glyph.public TrueTypeGlyph(Shape aShape)
aShape - the outline of the glyph.| Method Detail |
|---|
public void getXCoordinates(int[] array)
array - an array where the points will be stored.public void getYCoordinates(int[] array)
array - an array where the points will be stored.public void getEnd(int[] array)
array - an array where the points will be stored.public void getCurve(boolean[] array)
array - an array where the flags will be stored.
public void setCoordinates(int[] xcoords,
int[] ycoords)
xcoords - the set of x-coordinates for the points.ycoords - the set of y-coordinates for the points.public void setOnCurve(boolean[] array)
array - an array where the flags will be stored.public void setEnds(int[] array)
array - the set of end points.public int numberOfPoints()
public int numberOfContours()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||