private static class ColorPreference.ColorEntry extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) ColorInfo |
info |
(package private) java.lang.String |
key |
Constructor and Description |
---|
ColorEntry(java.lang.String key,
ColorInfo info) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplay()
Get a description of the color based on the given info.
|
java.awt.Color |
getDisplayColor()
Get the color value to display.
|
boolean |
isDefault()
Check if color has been customized by the user or not.
|
NamedColorProperty |
toProperty()
Convert to a
NamedColorProperty . |
ColorEntry(java.lang.String key, ColorInfo info)
public java.lang.String getDisplay()
public java.awt.Color getDisplayColor()
public boolean isDefault()
public NamedColorProperty toProperty()
NamedColorProperty
.NamedColorProperty