Class browser.FontInfo
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class browser.FontInfo

java.lang.Object
   |
   +----browser.FontInfo

public class FontInfo
extends Object

Variable Index

 o BOLD
Font style: Bold
 o BOLD_ITALIC
Font style: Bold and Italic
 o FIXED
Font type: Fixed width
 o ITALIC
Font style: Italic
 o NORMAL
Font type: Proportinal
 o PLAIN
Font style: Plain

Constructor Index

 o FontInfo()
Create a FontInfo object.

Method Index

 o getFont(int)
Get Font from an index.
 o getSize(int)
Get font size from an index.
 o getStyle(int)
Get font style from an index.
 o getType(int)
Get font type from an index.
 o makeFontIdx(int, int, int)
Make font index.
 o setSize(int, int)
Set font size into font index
 o setStyle(int, int)
Set font style into font index
 o setType(int, int)
Set font type into font index

Variables

 o NORMAL
  public final static int NORMAL
Font type: Proportinal
 o FIXED
  public final static int FIXED
Font type: Fixed width
 o PLAIN
  public final static int PLAIN
Font style: Plain
 o BOLD
  public final static int BOLD
Font style: Bold
 o ITALIC
  public final static int ITALIC
Font style: Italic
 o BOLD_ITALIC
  public final static int BOLD_ITALIC
Font style: Bold and Italic

Constructors

 o FontInfo
  public FontInfo()
Create a FontInfo object. Builds all fonts for the browser.

Methods

 o getFont
  public Font getFont(int type)
Get Font from an index.
Parameters:
type - Special font index.
 o getSize
  public static int getSize(int font)
Get font size from an index.
Parameters:
font - Font index.
Returns:
Size of the font (0-6).
 o getStyle
  public static int getStyle(int font)
Get font style from an index.
Parameters:
font - Font index.
Returns:
Style of the font.
 o getType
  public static int getType(int font)
Get font type from an index.
Parameters:
font - Font index.
Returns:
Type of the font.
 o makeFontIdx
  public static int makeFontIdx(int type,
                                int style,
                                int size)
Make font index.
Parameters:
type - Font type.
style - Font style.
size - Font size.
Returns:
Font index.
 o setType
  public static int setType(int font,
                            int type)
Set font type into font index
Parameters:
font - Original font index.
type - New font type.
Returns:
New font index.
 o setStyle
  public static int setStyle(int font,
                             int style)
Set font style into font index
Parameters:
font - Original font index.
style - New font style.
Returns:
New font index.
 o setSize
  public static int setSize(int font,
                            int size)
Set font size into font index
Parameters:
font - Original font index.
size - New font size.
Returns:
New font index.

All Packages  Class Hierarchy  This Package  Previous  Next  Index