|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.font.Glyph
public class Glyph
Represents the glyph in a font for a unicode codepoint.
Constructor Summary | |
---|---|
Glyph(int codePoint,
java.awt.Rectangle bounds,
java.awt.font.GlyphVector vector,
int index,
UnicodeFont unicodeFont)
Create a new glyph |
Method Summary | |
---|---|
int |
getCodePoint()
The unicode codepoint the glyph represents. |
int |
getHeight()
The height of the glyph's image. |
Image |
getImage()
The image to use for this glyph. |
java.awt.Shape |
getShape()
The shape to use to draw this glyph. |
int |
getWidth()
The width of the glyph's image. |
int |
getYOffset()
The distance from drawing y location to top of this glyph, causing the glyph to sit on the baseline. |
boolean |
isMissing()
Returns true if the font does not have a glyph for this codepoint. |
void |
setImage(Image image)
Set the image that has been generated for this glyph |
void |
setShape(java.awt.Shape shape)
Set the shape that should be drawn for this glyph |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Glyph(int codePoint, java.awt.Rectangle bounds, java.awt.font.GlyphVector vector, int index, UnicodeFont unicodeFont)
codePoint
- The code point in which this glyph can be foundbounds
- The bounds that this glrph can fillvector
- The vector this glyph is part ofindex
- The index of this glyph within the vectorunicodeFont
- The font this glyph forms part ofMethod Detail |
---|
public int getCodePoint()
public boolean isMissing()
public int getWidth()
public int getHeight()
public java.awt.Shape getShape()
public void setShape(java.awt.Shape shape)
shape
- The shape that should be drawn for this glyphpublic Image getImage()
public void setImage(Image image)
image
- The image that has been generated for this glyphpublic int getYOffset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |