All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.Font
java.lang.Object
|
+----com.bulletproof.gui.Font
- public class Font
- extends Object
A class that produces font objects.
-
BOLD
- The bold style constant.
-
PLAIN
- The plain style constant.
-
Font(String, int, int)
- Creates a new font with the specified name, style and point size.
-
deriveFont(int)
- Derive a new font with the specified style.
-
equals(Font)
- Compare two fonts to see if they are the same.
-
getName()
-
Returns the name of the font.
-
getSize()
-
Returns the size of the font.
-
getStyle()
- Returns the style of the font.
-
isBold()
- Returns true if the font is bold.
PLAIN
public static final int PLAIN
- The plain style constant. This can be combined with the other style
constants for mixed styles.
BOLD
public static final int BOLD
- The bold style constant. This can be combined with the other style
constants for mixed styles.
Font
public Font(String name,
int style,
int size)
- Creates a new font with the specified name, style and point size.
- Parameters:
- name - the font name
- style - the constant style used
- size - the point size of the font
getName
public String getName()
- Returns the name of the font.
getSize
public int getSize()
- Returns the size of the font.
getStyle
public int getStyle()
- Returns the style of the font. Font styles are defined in this class.
- See Also:
- PLAIN, BOLD
isBold
public boolean isBold()
- Returns true if the font is bold.
deriveFont
public Font deriveFont(int style)
- Derive a new font with the specified style.
- Parameters:
- style - the constant style used
equals
public boolean equals(Font compareFont)
- Compare two fonts to see if they are the same.
- Parameters:
- compareFont - the font to compare with this one.
All Packages Class Hierarchy This Package Previous Next Index