javax.microedition.lcdui
Class Font

java.lang.Object
  extended by javax.microedition.lcdui.Font

public final class Font
extends Object


Field Summary
static int FACE_MONOSPACE
           
static int FACE_PROPORTIONAL
           
static int FACE_SYSTEM
           
static int FONT_INPUT_TEXT
           
static int FONT_STATIC_TEXT
           
static int SIZE_LARGE
           
static int SIZE_MEDIUM
           
static int SIZE_SMALL
           
static int STYLE_BOLD
           
static int STYLE_ITALIC
           
static int STYLE_PLAIN
           
static int STYLE_UNDERLINED
           
 
Constructor Summary
Font()
           
 
Method Summary
 int charsWidth(char[] arg1, int arg2, int arg3)
           
 int charWidth(char arg1)
           
 int getBaselinePosition()
           
static Font getDefaultFont()
           
 int getFace()
           
static Font getFont(int fontSpecifier)
           
static Font getFont(int face, int style, int size)
           
 int getHeight()
           
 int getSize()
           
 int getStyle()
           
 boolean isBold()
           
 boolean isItalic()
           
 boolean isPlain()
           
 boolean isUnderlined()
           
static void setStaticInstance(Font delegate)
           
protected  Font static_getDefaultFont()
           
protected  Font static_getFont(int fontSpecifier)
           
protected  Font static_getFont(int face, int style, int size)
           
 int stringWidth(String arg1)
           
 int substringWidth(String arg1, int arg2, int arg3)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STYLE_PLAIN

public static final int STYLE_PLAIN
See Also:
Constant Field Values

STYLE_BOLD

public static final int STYLE_BOLD
See Also:
Constant Field Values

STYLE_ITALIC

public static final int STYLE_ITALIC
See Also:
Constant Field Values

STYLE_UNDERLINED

public static final int STYLE_UNDERLINED
See Also:
Constant Field Values

SIZE_SMALL

public static final int SIZE_SMALL
See Also:
Constant Field Values

SIZE_MEDIUM

public static final int SIZE_MEDIUM
See Also:
Constant Field Values

SIZE_LARGE

public static final int SIZE_LARGE
See Also:
Constant Field Values

FACE_SYSTEM

public static final int FACE_SYSTEM
See Also:
Constant Field Values

FACE_MONOSPACE

public static final int FACE_MONOSPACE
See Also:
Constant Field Values

FACE_PROPORTIONAL

public static final int FACE_PROPORTIONAL
See Also:
Constant Field Values

FONT_STATIC_TEXT

public static final int FONT_STATIC_TEXT
See Also:
Constant Field Values

FONT_INPUT_TEXT

public static final int FONT_INPUT_TEXT
See Also:
Constant Field Values
Constructor Detail

Font

public Font()
Method Detail

setStaticInstance

public static void setStaticInstance(Font delegate)

getFont

public static Font getFont(int fontSpecifier)

static_getFont

protected Font static_getFont(int fontSpecifier)

getDefaultFont

public static Font getDefaultFont()

static_getDefaultFont

protected Font static_getDefaultFont()

getFont

public static Font getFont(int face,
                           int style,
                           int size)

static_getFont

protected Font static_getFont(int face,
                              int style,
                              int size)

getStyle

public int getStyle()

getSize

public int getSize()

getFace

public int getFace()

isPlain

public boolean isPlain()

isBold

public boolean isBold()

isItalic

public boolean isItalic()

isUnderlined

public boolean isUnderlined()

getHeight

public int getHeight()

getBaselinePosition

public int getBaselinePosition()

charWidth

public int charWidth(char arg1)

charsWidth

public int charsWidth(char[] arg1,
                      int arg2,
                      int arg3)

stringWidth

public int stringWidth(String arg1)

substringWidth

public int substringWidth(String arg1,
                          int arg2,
                          int arg3)


Copyright © 2006-2007 Jayway AB. All Rights Reserved.