Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.barteo.emulator.device.applet
Class AppletFontManager  view AppletFontManager download AppletFontManager.java

java.lang.Object
  extended bycom.barteo.emulator.device.applet.AppletFontManager
All Implemented Interfaces:
com.barteo.emulator.device.FontManager

public class AppletFontManager
extends java.lang.Object
implements com.barteo.emulator.device.FontManager


Field Summary
(package private) static java.lang.String FACE_MONOSPACE_NAME
           
(package private) static java.lang.String FACE_PROPORTIONAL_NAME
           
(package private) static java.lang.String FACE_SYSTEM_NAME
           
(package private)  java.util.Hashtable fontsMetrics
           
(package private) static int SIZE_LARGE
           
(package private) static int SIZE_MEDIUM
           
(package private) static int SIZE_SMALL
           
(package private)  java.awt.Component tmpComponent
           
 
Constructor Summary
AppletFontManager()
           
 
Method Summary
 int charsWidth(javax.microedition.lcdui.Font f, char[] ch, int offset, int length)
           
 int charWidth(javax.microedition.lcdui.Font f, char ch)
           
 int getBaselinePosition(javax.microedition.lcdui.Font f)
           
(package private)  java.awt.FontMetrics getFontMetrics(javax.microedition.lcdui.Font meFont)
           
 int getHeight(javax.microedition.lcdui.Font f)
           
 int stringWidth(javax.microedition.lcdui.Font f, java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACE_SYSTEM_NAME

static java.lang.String FACE_SYSTEM_NAME

FACE_MONOSPACE_NAME

static java.lang.String FACE_MONOSPACE_NAME

FACE_PROPORTIONAL_NAME

static java.lang.String FACE_PROPORTIONAL_NAME

SIZE_SMALL

static int SIZE_SMALL

SIZE_MEDIUM

static int SIZE_MEDIUM

SIZE_LARGE

static int SIZE_LARGE

tmpComponent

java.awt.Component tmpComponent

fontsMetrics

java.util.Hashtable fontsMetrics
Constructor Detail

AppletFontManager

public AppletFontManager()
Method Detail

getFontMetrics

java.awt.FontMetrics getFontMetrics(javax.microedition.lcdui.Font meFont)

charWidth

public int charWidth(javax.microedition.lcdui.Font f,
                     char ch)
Specified by:
charWidth in interface com.barteo.emulator.device.FontManager

charsWidth

public int charsWidth(javax.microedition.lcdui.Font f,
                      char[] ch,
                      int offset,
                      int length)
Specified by:
charsWidth in interface com.barteo.emulator.device.FontManager

getBaselinePosition

public int getBaselinePosition(javax.microedition.lcdui.Font f)
Specified by:
getBaselinePosition in interface com.barteo.emulator.device.FontManager

getHeight

public int getHeight(javax.microedition.lcdui.Font f)
Specified by:
getHeight in interface com.barteo.emulator.device.FontManager

stringWidth

public int stringWidth(javax.microedition.lcdui.Font f,
                       java.lang.String str)
Specified by:
stringWidth in interface com.barteo.emulator.device.FontManager