|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.fontsaver.FontSaver
public class FontSaver
Conserves RAM and time by reusing Font and Font peer objects.
Instead of saying: Font f = FontFactory.build("Dialog", 12, Font.PLAIN); say: Font f = FontSaver.create("Dialog", 12, Font.PLAIN);
Field Summary | |
---|---|
static java.lang.String |
EMBEDDED_COPYRIGHT
undisplayed copyright notice |
static java.lang.String |
VERSION_STRING
embedded version string. |
Constructor Summary | |
---|---|
FontSaver()
|
Method Summary | |
---|---|
static java.awt.Font |
create(java.lang.String name,
int style,
int size)
Works just like the Font Constructor: Creates a new font with 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 |
Field Detail |
---|
public static final java.lang.String EMBEDDED_COPYRIGHT
public static final java.lang.String VERSION_STRING
Constructor Detail |
---|
public FontSaver()
Method Detail |
---|
public static java.awt.Font create(java.lang.String name, int style, int size)
name
- the font namestyle
- the constant style usedsize
- the point size of the font
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |