Class FontInfo
java.lang.Object
|
+----FontInfo
- public class FontInfo
- extends Object
-
BOLD
- Font style: Bold
-
BOLD_ITALIC
- Font style: Bold and Italic
-
FIXED
- Font type: Fixed width
-
fonts
-
-
ITALIC
- Font style: Italic
-
NORMAL
- Font type: Proportinal
-
NUM
-
-
NUM_SIZES
-
-
NUM_STYLES
-
-
NUM_TYPES
-
-
PLAIN
- Font style: Plain
-
sizes
-
-
styles
-
-
types
-
-
FontInfo()
- Create a FontInfo object.
-
getFont(int)
- Get Font from an index.
-
getSize(int)
- Get font size from an index.
-
getStyle(int)
- Get font style from an index.
-
getType(int)
- Get font type from an index.
-
makeFontIdx(int, int, int)
- Make font index.
-
setSize(int, int)
- Set font size into font index
-
setStyle(int, int)
- Set font style into font index
-
setType(int, int)
- Set font type into font index
fonts
private Font fonts[]
types
static String types[]
styles
static int styles[]
sizes
static int sizes[]
NORMAL
public static final int NORMAL
- Font type: Proportinal
FIXED
public static final int FIXED
- Font type: Fixed width
NUM_TYPES
static final int NUM_TYPES
PLAIN
public static final int PLAIN
- Font style: Plain
BOLD
public static final int BOLD
- Font style: Bold
ITALIC
public static final int ITALIC
- Font style: Italic
BOLD_ITALIC
public static final int BOLD_ITALIC
- Font style: Bold and Italic
NUM_STYLES
static final int NUM_STYLES
NUM_SIZES
static final int NUM_SIZES
NUM
static final int NUM
FontInfo
public FontInfo()
- Create a FontInfo object.
Builds all fonts for the browser.
getFont
public Font getFont(int type)
- Get Font from an index.
- Parameters:
- type - Special font index.
getSize
public static int getSize(int font)
- Get font size from an index.
- Parameters:
- font - Font index.
- Returns:
- Size of the font (0-6).
getStyle
public static int getStyle(int font)
- Get font style from an index.
- Parameters:
- font - Font index.
- Returns:
- Style of the font.
getType
public static int getType(int font)
- Get font type from an index.
- Parameters:
- font - Font index.
- Returns:
- Type of the font.
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.
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.
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.
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.