|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.common15.FontFactory
public class FontFactory
Modifies Java's logical font mapping. Same as com.mindprod.common11.FontFactory but uses generics.
Constructor Summary | |
---|---|
FontFactory()
|
Method Summary | |
---|---|
static java.awt.Font |
build(java.lang.String fontFamilyName,
int style,
int size)
Creates a new Font from the specified name, style and
point size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontFactory()
Method Detail |
---|
public static java.awt.Font build(java.lang.String fontFamilyName, int style, int size)
Font
from the specified name, style and
point size. Like new Font, but modifies the mapping of logical fonts.
E.g. Dialog will be translated to Segoe-UI
fontFamilyName
- the font name. This can be a font face name or a font
family name, and may represent either a logical font or a physical
font
The family names for logical fonts are: Dialog, DialogInput,
Monospaced, Serif, or SansSerif.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).size
- the point size of the Font
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |