public class ColorProperty extends AbstractProperty<java.awt.Color> implements Preferences.ColorKey
Color
value.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
defaultValue, key
Constructor and Description |
---|
ColorProperty(java.lang.String colName,
java.awt.Color defaultValue)
Constructs a new
ColorProperty . |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
get()
Replies the value of this property.
|
static java.lang.String |
getColorKey(java.lang.String colName)
Replies the color key used in JOSM preferences for this property.
|
java.lang.String |
getColorName() |
java.lang.String |
getSpecialName() |
boolean |
put(java.awt.Color value)
Sets this property to the specified value.
|
getDefaultValue, getKey, isSet, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultValue
private final java.lang.String name
public ColorProperty(java.lang.String colName, java.awt.Color defaultValue)
ColorProperty
.colName
- The color namedefaultValue
- The default valuepublic java.awt.Color get()
AbstractProperty
get
in class AbstractProperty<java.awt.Color>
public boolean put(java.awt.Color value)
AbstractProperty
put
in class AbstractProperty<java.awt.Color>
value
- The new value of this propertypublic static java.lang.String getColorKey(java.lang.String colName)
colName
- The color namepublic java.lang.String getColorName()
getColorName
in interface Preferences.ColorKey
public java.lang.String getSpecialName()
getSpecialName
in interface Preferences.ColorKey