Class ColorMapProperty
java.lang.Object
org.csstudio.opibuilder.properties.AbstractWidgetProperty<ColorMap>
org.csstudio.opibuilder.widgets.properties.ColorMapProperty
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
XML attribute nameblue
.static final String
XML attribute namegreen
.static final String
XML attribute namered
.static final String
XML Element nameAUTOSCALE
.static final String
XML ELEMENT nameMAP
.static final String
XML Element nameINTERPOLATE
.static final String
XML ELEMENT namePREDEFINEDCOLOR
.Fields inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
category, defaultValue, description, executionMode, prop_id, propertyValue, visibleInPropSheet, widgetModel
-
Constructor Summary
ConstructorDescriptionColorMapProperty
(String prop_id, String description, WidgetPropertyCategory category, ColorMap defaultValue) -
Method Summary
Modifier and TypeMethodDescriptioncheckValue
(Object value) Check if the requestNewValue is convertible or legal.boolean
Subclass should override this method if it is configurable by rule.protected PropertyDescriptor
Create theIPropertyDescriptor
boolean
Subclass should override this method if it only accept output expression.readValueFromXML
(org.jdom2.Element propElement) Read the property value from a XML element.void
writeToXML
(org.jdom2.Element propElement) Write the property value into a XML element.Methods inherited from class org.csstudio.opibuilder.properties.AbstractWidgetProperty
addPropertyChangeListener, firePropertyChange, getAllPropertyChangeListeners, getCategory, getDefaultValue, getDescription, getExecutionMode, getPropertyDescriptor, getPropertyID, getPropertyValue, getRawPropertyValue, isDefaultValue, isSavable, isVisibleInPropSheet, removeAllPropertyChangeListeners, removePropertyChangeListener, setCategory, setDefaultValue, setDescription, setExecutionMode, setPropertyValue, setPropertyValue, setPropertyValue_IgnoreOldValue, setSavable, setVisibleInPropSheet, setWidgetModel, toString, toStringInRuleScript
-
Field Details
-
XML_ELEMENT_MAP
XML ELEMENT namePREDEFINEDCOLOR
.- See Also:
-
XML_ELEMENT_E
XML ELEMENT nameMAP
.- See Also:
-
XML_ELEMENT_INTERPOLATE
XML Element nameINTERPOLATE
.- See Also:
-
XML_ELEMENT_AUTOSCALE
XML Element nameAUTOSCALE
.- See Also:
-
XML_ATTRIBUTE_RED
XML attribute namered
.- See Also:
-
XML_ATTRIBUTE_GREEN
XML attribute namegreen
.- See Also:
-
XML_ATTRIBUTE_BLUE
XML attribute nameblue
.- See Also:
-
-
Constructor Details
-
ColorMapProperty
public ColorMapProperty(String prop_id, String description, WidgetPropertyCategory category, ColorMap defaultValue)
-
-
Method Details
-
checkValue
Description copied from class:AbstractWidgetProperty
Check if the requestNewValue is convertible or legal.- Specified by:
checkValue
in classAbstractWidgetProperty<ColorMap>
- Parameters:
value
- the value to be checked.- Returns:
- The value after being checked. It might be coerced if the requestValue is illegal. return null if it is not convertible or illegal.
-
createPropertyDescriptor
Description copied from class:AbstractWidgetProperty
Create theIPropertyDescriptor
- Specified by:
createPropertyDescriptor
in classAbstractWidgetProperty<ColorMap>
-
readValueFromXML
Description copied from class:AbstractWidgetProperty
Read the property value from a XML element.- Specified by:
readValueFromXML
in classAbstractWidgetProperty<ColorMap>
-
writeToXML
public void writeToXML(org.jdom2.Element propElement) Description copied from class:AbstractWidgetProperty
Write the property value into a XML element.- Specified by:
writeToXML
in classAbstractWidgetProperty<ColorMap>
-
configurableByRule
public boolean configurableByRule()Description copied from class:AbstractWidgetProperty
Subclass should override this method if it is configurable by rule. If this returns true, the methodAbstractWidgetProperty.toStringInRuleScript(Object)
should be properly overridden too.- Overrides:
configurableByRule
in classAbstractWidgetProperty<ColorMap>
- Returns:
- true if this property is configurable by rule.
-
onlyAcceptExpressionInRule
public boolean onlyAcceptExpressionInRule()Description copied from class:AbstractWidgetProperty
Subclass should override this method if it only accept output expression.- Overrides:
onlyAcceptExpressionInRule
in classAbstractWidgetProperty<ColorMap>
- Returns:
- true if this property only accept output expression.
-