com.nutiteq.wrappers.rimui
Class Font

java.lang.Object
  extended by com.nutiteq.wrappers.rimui.Font

public class Font
extends java.lang.Object

This is a wrapper around J2ME font class, to enable usages of RIM UI font. This implementation does not provide full implementation wrapping. Only methods used by library have been implemented.


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
           
 
Method Summary
static Font getDefaultFont()
           
static Font getFont(int face, int style, int size)
           
 int getHeight()
           
 net.rim.device.api.ui.Font getNativeFont()
          Retrieve wrapped RIM UI font
 int stringWidth(java.lang.String string)
           
 int substringWidth(java.lang.String str, int offset, int len)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACE_SYSTEM

public static final int FACE_SYSTEM
See Also:
Constant Field Values

FACE_PROPORTIONAL

public static final int FACE_PROPORTIONAL
See Also:
Constant Field Values

FACE_MONOSPACE

public static final int FACE_MONOSPACE
See Also:
Constant Field Values

STYLE_BOLD

public static final int STYLE_BOLD
See Also:
Constant Field Values

STYLE_PLAIN

public static final int STYLE_PLAIN
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

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
Method Detail

getHeight

public int getHeight()

stringWidth

public int stringWidth(java.lang.String string)

getDefaultFont

public static Font getDefaultFont()

getFont

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

substringWidth

public int substringWidth(java.lang.String str,
                          int offset,
                          int len)

getNativeFont

public net.rim.device.api.ui.Font getNativeFont()
Retrieve wrapped RIM UI font

Returns:
wrapped 'native' font