|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javax.microedition.lcdui.Font
This stores information about a font
| Field Summary | |
static int |
FACE_MONOSPACE
Monospace font |
static int |
FACE_PROPORTIONAL
Proportional font |
static int |
FACE_SYSTEM
System font |
static int |
SIZE_LARGE
Large size |
static int |
SIZE_MEDIUM
Medium size |
static int |
SIZE_SMALL
Small size |
static int |
STYLE_BOLD
Bold style |
static int |
STYLE_ITALIC
Italic style |
static int |
STYLE_PLAIN
Plain style |
static int |
STYLE_UNDERLINED
Underlined style |
| Method Summary | |
int |
charsWidth(char[] ch,
int offset,
int length)
Get the width of the characters |
int |
charWidth(char ch)
Get the width of a character |
int |
getBaselinePosition()
Get the baseline position |
static Font |
getDefaultFont()
Get the default font |
int |
getFace()
Get the face |
static Font |
getFont(int face,
int style,
int size)
Get the specified font |
int |
getHeight()
Get the height |
int |
getSize()
Get the size |
int |
getStyle()
Get the style |
boolean |
isBold()
See if it is bold |
boolean |
isItalic()
See if it is italic |
boolean |
isPlain()
See if it is plain |
boolean |
isUnderlined()
See if it is underlined |
int |
stringWidth(java.lang.String str)
Return the width of the string |
int |
substringWidth(java.lang.String str,
int offset,
int length)
Return the width of the substring |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int FACE_MONOSPACE
public static final int FACE_PROPORTIONAL
public static final int FACE_SYSTEM
public static final int SIZE_LARGE
public static final int SIZE_MEDIUM
public static final int SIZE_SMALL
public static final int STYLE_BOLD
public static final int STYLE_ITALIC
public static final int STYLE_PLAIN
public static final int STYLE_UNDERLINED
| Method Detail |
public static Font getDefaultFont()
public static Font getFont(int face,
int style,
int size)
face - The facestyle - The stylesize - The size
public int charsWidth(char[] ch,
int offset,
int length)
ch - The charactersoffset - The offsetlength - The length
ArrayIndexOutOfBoundsException - if the offset and length are invalid
NullPointerException - if ch is nullpublic int charWidth(char ch)
ch - The character
public int getBaselinePosition()
public int getFace()
public int getHeight()
public int getSize()
public int getStyle()
public boolean isBold()
public boolean isItalic()
public boolean isPlain()
public boolean isUnderlined()
public int stringWidth(java.lang.String str)
str - The string
public int substringWidth(java.lang.String str,
int offset,
int length)
str - The stringoffset - The offsetlength - The length
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||