|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.microedition.lcdui.Font
public class Font
Provides access to fonts for use with the display or images. The actual font data is held as a series of glyphs with all inter character spacing removed. The format of the bitmap is in standard leJOS format (so aligned for use on NXT LCD display). There is one bit per pixel. The pixels are packed into bytes with each byte spanning 8 scan lines. The least significant bit of each byte is the pixel for the top most scan line, the most significant bit is the 8th scan line. Values of 1 represent black. 0 white.
Field Summary | |
---|---|
static int |
SIZE_LARGE
|
static int |
SIZE_MEDIUM
|
static int |
SIZE_SMALL
|
Method Summary | |
---|---|
int |
getBaselinePosition()
Return the base line position in pixels. |
static Font |
getDefaultFont()
Return the system font. |
static Font |
getFont(int face,
int style,
int size)
Request a particular type and size of font. |
int |
getHeight()
return the height of the font in pixels. |
static Font |
getLargeFont()
Return the large font. |
static Font |
getSmallFont()
Return the small font. |
int |
stringWidth(String str)
Return the width of the specified string in pixels |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SIZE_SMALL
public static final int SIZE_MEDIUM
public static final int SIZE_LARGE
Method Detail |
---|
public static Font getDefaultFont()
public int getHeight()
public int getBaselinePosition()
public int stringWidth(String str)
str
-
public static Font getFont(int face, int style, int size)
face
- style
- size
-
public static Font getSmallFont()
public static Font getLargeFont()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |