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, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultValuepublic ColorProperty(String colName, Color defaultValue)
ColorProperty.colName - The color namedefaultValue - The default valuepublic Color get()
AbstractPropertyget in class AbstractProperty<Color>public boolean put(Color value)
AbstractPropertyput 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.ColorKeypublic String getSpecialName()
getSpecialName in interface Preferences.ColorKey