|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.util.font.Glyph
public class Glyph
Glyph is a simple container class used by Font to record the shape, bounding box and advance for a glyph.
| Constructor Summary | |
|---|---|
Glyph(Shape aShape)
Create a Glyph with the specified outline - the bounding box and advance default to zero. |
|
Glyph(Shape aShape,
Bounds rect,
int dist)
Create a Glyph with the specified outline, bounding box and advance. |
|
| Method Summary | |
|---|---|
int |
getAdvance()
Get the distance to the next glyph. |
Bounds |
getBounds()
Get the bounding box enclosing the glyph. |
Shape |
getShape()
Get the outline of the glyph. |
void |
setAdvance(int dist)
Set the distance to the next glyph. |
void |
setBounds(Bounds rect)
Set the bounding box enclosing the glyph. |
void |
setShape(Shape aShape)
Set the outline of the glyph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Glyph(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 Glyph(Shape aShape)
aShape - the outline of the glyph.| Method Detail |
|---|
public final Shape getShape()
public final void setShape(Shape aShape)
aShape - the Shape used to trace the outline of the glyph.public final Bounds getBounds()
public final void setBounds(Bounds rect)
rect - the Bounds that encloses the outline of the glyph.public final int getAdvance()
public final void setAdvance(int dist)
dist - the distance in twips from this glyph to the next.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||