org.vizzini.ui
Class ColorPreferences

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

public class ColorPreferences
extends Object

Provides convenience methods for storage and retrieval of color preferences.

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

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

Constructor Detail

ColorPreferences

public ColorPreferences(Class owningClass)
Construct this object.

Since:
v0.2
Method Detail

clear

public void clear()
Clear all preferences.

Since:
v0.2

fetch

public Color fetch(String key,
                   Color defaultColor)
Fetch the color for the given key.

Since:
v0.2

store

public void store(String key,
                  Color color)
Store the given color under the given key.

Parameters:
key - Key.
color - Color.
Since:
v0.2


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