Class FontInfo

java.lang.Object
   |
   +----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 fonts
 o ITALIC
Font style: Italic
 o NORMAL
Font type: Proportinal
 o NUM
 o NUM_SIZES
 o NUM_STYLES
 o NUM_TYPES
 o PLAIN
Font style: Plain
 o sizes
 o styles
 o types

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 fonts
 private Font fonts[]
 o types
 static String types[]
 o styles
 static int styles[]
 o sizes
 static int sizes[]
 o NORMAL
 public static final int NORMAL
Font type: Proportinal

 o FIXED
 public static final int FIXED
Font type: Fixed width

 o NUM_TYPES
 static final int NUM_TYPES
 o PLAIN
 public static final int PLAIN
Font style: Plain

 o BOLD
 public static final int BOLD
Font style: Bold

 o ITALIC
 public static final int ITALIC
Font style: Italic

 o BOLD_ITALIC
 public static final int BOLD_ITALIC
Font style: Bold and Italic

 o NUM_STYLES
 static final int NUM_STYLES
 o NUM_SIZES
 static final int NUM_SIZES
 o NUM
 static final int NUM

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.