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.


Variable Index

 o BOLD
The bold style constant.
 o PLAIN
The plain style constant.

Constructor Index

 o Font(String, int, int)
Creates a new font with the specified name, style and point size.

Method Index

 o deriveFont(int)
Derive a new font with the specified style.
 o equals(Font)
Compare two fonts to see if they are the same.
 o getName()
Returns the name of the font.
 o getSize()
Returns the size of the font.
 o getStyle()
Returns the style of the font.
 o isBold()
Returns true if the font is bold.

Variables

 o PLAIN
 public static final int PLAIN
The plain style constant. This can be combined with the other style constants for mixed styles.

 o BOLD
 public static final int BOLD
The bold style constant. This can be combined with the other style constants for mixed styles.

Constructors

 o 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

Methods

 o getName
 public String getName()
Returns the name of the font.

 o getSize
 public int getSize()
Returns the size of the font.

 o getStyle
 public int getStyle()
Returns the style of the font. Font styles are defined in this class.

See Also:
PLAIN, BOLD
 o isBold
 public boolean isBold()
Returns true if the font is bold.

 o deriveFont
 public Font deriveFont(int style)
Derive a new font with the specified style.

Parameters:
style - the constant style used
 o 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