KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > microedition > lcdui > Font

javax.microedition.lcdui
Class Font

java.lang.Object
  |
  +--javax.microedition.lcdui.Font
See Also:
Source Code

public int charsWidth(char[] ch,
                      int offset,
                      int length)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int charWidth(char ch)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int FACE_MONOSPACE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int FACE_PROPORTIONAL
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int FACE_SYSTEM
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int FONT_INPUT_TEXT
See Also:
getFont(int fontSpecifier)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int FONT_STATIC_TEXT
See Also:
getFont(int fontSpecifier)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getBaselinePosition()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Font getDefaultFont()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getFace()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Font getFont(int fontSpecifier)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Font getFont(int face,
                           int style,
                           int size)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1185]Draw a string with specific font type and color
By Iiro on 2004/12/09 15:12:35  Rate
public void paint ( Graphics g )   
  {  
 Font FONT = Font.getFont ( Font.FACE_SYSTEM, Font.STYLE_BOLD, Font.SIZE_SMALL ) ; 
 g.setFont ( FONT ) ; 
 g.setColor (  0, 0, 0  ) ; 
 g.drawString ( "HELLO",getWidth (  ) /2,0,Graphics.TOP|Graphics.HCENTER ) ; 
  } 


public int getHeight()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getSize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getStyle()
See Also:
isItalic(), isBold(), isPlain()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isBold()
See Also:
getStyle()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isItalic()
See Also:
getStyle()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isPlain()
See Also:
getStyle()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isUnderlined()
See Also:
getStyle()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int SIZE_LARGE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int SIZE_MEDIUM
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int SIZE_SMALL
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int stringWidth(String str)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int STYLE_BOLD
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int STYLE_ITALIC
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int STYLE_PLAIN
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int STYLE_UNDERLINED
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int substringWidth(String str,
                          int offset,
                          int len)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags