org.vizzini.ui
Class FontPreferences

java.lang.Object
  extended by org.vizzini.ui.FontPreferences

public class FontPreferences
extends Object

Provides a convenience methods for storage and retrieval of font preferences.

Since:
v0.2
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
FontPreferences(Class owningClass)
          Construct this object.
 
Method Summary
 void clear()
          Clear all preferences.
 Font fetch(String key, Font defaultFont)
          Fetch the font for the given key.
 void store(String key, Font font)
          Store the given font under the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontPreferences

public FontPreferences(Class owningClass)
Construct this object.

Since:
v0.2
Method Detail

clear

public void clear()
Clear all preferences.

Since:
v0.2

fetch

public Font fetch(String key,
                  Font defaultFont)
Fetch the font for the given key.

Since:
v0.2

store

public void store(String key,
                  Font font)
Store the given font under the given key.

Parameters:
key - Key.
font - Font.
Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02