@OpenApiAll public class ColorProperty extends Property
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALLOW_NONE |
DEFAULT_PROPERTY_RESOURCE_PROVIDER, EDITABLE, NULL, NULL_ID_PROPERTY_RESOURCE_PROVIDER, UNDEFINED, VALUE| Constructor and Description |
|---|
ColorProperty()
Default constructor.
|
ColorProperty(java.lang.String id,
java.awt.Color value)
The property constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PropertyVisitor v)
Accepts the given visitor.
|
ColorProperty |
clone()
Clones the property.
|
java.lang.String |
getClassType()
Returns property class type.
|
java.awt.Color |
getColor()
Returns value as color object.
|
static java.lang.String |
getStringRepresentation(java.awt.Color c) |
java.lang.String |
getValueStringRepresentation()
Returns value's string representation.
|
protected boolean |
isValueCompatible(java.lang.Object value) |
_getValue, _isFrozen, _setFrozen, _setValue, addPropertyChangeListener, addSource, addSources, areValuesEqual, checkFrozen, checkFrozen, createCellEditor, createTableCellRenderer, equals, firePropertyChange, generateDefaultDescriptionID, getAdditionalProperties, getAdditionalProperty, getDescription, getDescriptionID, getFirstElementFromSources, getGroup, getID, getIntroductoryVersion, getName, getNonEditableReason, getProjectFromSourcesOrActive, getPureDescription, getResourceProvider, getResourceProviderID, getSourceAsElement, getSources, getSourcesAsStream, getUndefinedString, getUndefinedString, getValue, hashCode, isEditable, isUndefinedState, removePropertyChangeListener, setAdditionalProperties, setAdditionalProperty, setDescription, setDescriptionID, setEditable, setGroup, setID, setIntroductoryVersion, setNonEditableReason, setResourceProvider, setResourceProviderID, setSources, setUndefinedState, setValue, toStringpublic static final java.lang.String ALLOW_NONE
public ColorProperty()
public ColorProperty(java.lang.String id,
@CheckForNull
java.awt.Color value)
id - the ID of property.value - the color value of the property.public java.lang.String getValueStringRepresentation()
getValueStringRepresentation in class Propertypublic static java.lang.String getStringRepresentation(java.awt.Color c)
protected boolean isValueCompatible(java.lang.Object value)
isValueCompatible in class Propertypublic void accept(PropertyVisitor v) throws java.lang.Exception
accept in interface PropertyVisitorAcceptoraccept in class Propertyv - the PropertyVisitor.java.lang.Exceptionpublic java.awt.Color getColor()
public java.lang.String getClassType()
getClassType in interface PropertyVisitorAcceptorgetClassType in class PropertyPropertyID.COLOR_PROPERTYpublic ColorProperty clone()
Property