public class ColorProperty extends AbstractProperty<Color> implements Preferences.ColorKey
Color
value.Modifier and Type | Field and Description |
---|---|
private String |
name |
defaultValue, key
Constructor and Description |
---|
ColorProperty(String colName,
Color defaultValue)
Constructs a new
ColorProperty . |
Modifier and Type | Method and Description |
---|---|
Color |
get()
Replies the value of this property.
|
static String |
getColorKey(String colName)
Replies the color key used in JOSM preferences for this property.
|
String |
getColorName() |
String |
getSpecialName() |
boolean |
put(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
public ColorProperty(String colName, Color defaultValue)
ColorProperty
.colName
- The color namedefaultValue
- The default valuepublic Color get()
AbstractProperty
get
in class AbstractProperty<Color>
public boolean put(Color value)
AbstractProperty
put
in class AbstractProperty<Color>
value
- The new value of this propertypublic static String getColorKey(String colName)
colName
- The color namepublic String getColorName()
getColorName
in interface Preferences.ColorKey
public String getSpecialName()
getSpecialName
in interface Preferences.ColorKey