|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.lucidviews.util.gui.Fonts
Utility class for operations with Fonts.
Font| Constructor Summary | |
protected |
Fonts()
Default constructor. |
| Method Summary | |
static java.awt.Font |
getFont(java.lang.String names,
int style,
int size)
Get a font with one of the names (in order of preference) and the specified style & size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Fonts()
| Method Detail |
public static final java.awt.Font getFont(java.lang.String names,
int style,
int size)
names - A list of font names separated by commas.
These can be a logical font name or a font face name. A
logical name must be either: Dialog, DialogInput,
Monospaced, Serif, or SansSerif.
First a font with the first name in the list will be
created. If this font cannot be found then the second name
will be used and so on until the list is exhausted.
If there is no valid font specified in the list or if the
name is null, then the
name of the new Font is set to the
name "Default".style - The style constant for the Font.
The style argument is an integer bitmask that may be PLAIN,
or a bitwise union of BOLD and/or ITALIC (for example,
ITALIC or BOLD|ITALIC). If the style argument does not
conform to one of the expected integer bitmasks then the
style is set to PLAIN.size - the point size of the Font
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||