- java.lang.Object
-
- util.settings.Property
-
- util.settings.ColorProperty
-
public final class ColorProperty extends Property
This Property stores a Color
-
-
Constructor Summary
Constructors Constructor Description ColorProperty(PropertyManager manager, java.lang.String key, java.awt.Color defaultvalue)
Creates the Color
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearCache()
java.awt.Color
getColor()
Returns the Color in this Propertyjava.awt.Color
getDefaultColor()
Returns the standard color in this Propertyvoid
setColor(java.awt.Color color)
Sets the Color in this Property-
Methods inherited from class util.settings.Property
addChangeListener, fireChangeEvent, getKey, getProperty, removeChangeListener, setProperty
-
-
-
-
Constructor Detail
-
ColorProperty
public ColorProperty(PropertyManager manager, java.lang.String key, java.awt.Color defaultvalue)
Creates the Color- Parameters:
manager
- the Manager for this Propertykey
- the Keydefaultvalue
- the Default Color
-
-
Method Detail
-
getDefaultColor
public java.awt.Color getDefaultColor()
Returns the standard color in this Property- Returns:
- Color
-
getColor
public java.awt.Color getColor()
Returns the Color in this Property- Returns:
- Color
-
setColor
public void setColor(java.awt.Color color)
Sets the Color in this Property- Parameters:
color
- Color
-
clearCache
protected void clearCache()
- Specified by:
clearCache
in classProperty
-
-