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
-
BOLD
- Font style: Bold
-
BOLD_ITALIC
- Font style: Bold and Italic
-
FIXED
- Font type: Fixed width
-
ITALIC
- Font style: Italic
-
NORMAL
- Font type: Proportinal
-
PLAIN
- Font style: Plain
-
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
NORMAL
public final static int NORMAL
- Font type: Proportinal
FIXED
public final static int FIXED
- Font type: Fixed width
PLAIN
public final static int PLAIN
- Font style: Plain
BOLD
public final static int BOLD
- Font style: Bold
ITALIC
public final static int ITALIC
- Font style: Italic
BOLD_ITALIC
public final static int BOLD_ITALIC
- Font style: Bold and Italic
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.
All Packages Class Hierarchy This Package Previous Next Index