com.mindprod.fontsaver
Class FontSaver

java.lang.Object
  extended by com.mindprod.fontsaver.FontSaver

public class FontSaver
extends java.lang.Object

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);

Since:
1998
Version:
1.4 2008-01-01 - bundle with ANT script, pad, icon.
Author:
Roedy Green, Canadian Mind Products

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

EMBEDDED_COPYRIGHT

public static final java.lang.String EMBEDDED_COPYRIGHT
undisplayed copyright notice

See Also:
Constant Field Values

VERSION_STRING

public static final java.lang.String VERSION_STRING
embedded version string.

See Also:
Constant Field Values
Constructor Detail

FontSaver

public FontSaver()
Method Detail

create

public 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.

Parameters:
name - the font name
style - the constant style used
size - the point size of the font