Class LEDModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel
org.csstudio.opibuilder.widgets.model.LEDModel
- All Implemented Interfaces:
IPVWidgetModel,IAdaptable,IPropertySource
The widget model for LED.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDescription for widget color propertiesstatic final StringDescription for state value propertiesstatic final StringThe ID of this widget model.static final intstatic final StringBorder around the bulb - this is drawn in addition to the 'widget border' set by the widget border style/color/width properties.static final StringColor of bulb border LEDsstatic final StringThe ID of the effect 3D property.static final StringNumber of states for this multi state widgetstatic final StringThe ID of the square LED property.static final StringWidget color for multi state Xstatic final StringState fallback color propertystatic final StringState fallback label propertystatic final StringLabel text for multi state Xstatic final StringState value for multi state XFields inherited from class org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel
PROP_BIT, PROP_BOOL_LABEL_POS, PROP_DATA_TYPE, PROP_OFF_COLOR, PROP_OFF_LABEL, PROP_OFF_STATE, PROP_ON_COLOR, PROP_ON_LABEL, PROP_ON_STATE, PROP_SHOW_BOOL_LABELFields inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
PROP_ACTIONS, PROP_BORDER_COLOR, PROP_BORDER_STYLE, PROP_BORDER_WIDTH, PROP_COLOR_BACKGROUND, PROP_COLOR_FOREGROUND, PROP_ENABLED, PROP_FONT, PROP_HEIGHT, PROP_NAME, PROP_RULES, PROP_SCALE_OPTIONS, PROP_SCRIPTS, PROP_SRC_CONNECTIONS, PROP_TGT_CONNECTIONS, PROP_TOOLTIP, PROP_VISIBLE, PROP_WIDGET_TYPE, PROP_WIDGET_UID, PROP_WIDTH, PROP_XPOS, PROP_YPOS, VERSIONFields inherited from interface org.csstudio.opibuilder.model.IPVWidgetModel
PROP_ALARM_PULSING, PROP_BACKCOLOR_ALARMSENSITIVE, PROP_BORDER_ALARMSENSITIVE, PROP_FORECOLOR_ALARMSENSITIVE, PROP_PVNAME, PROP_PVVALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConfigure the properties of the widget.intintgetStateColor(int state) getStateLabel(int state) doublegetStateValue(int state) booleanbooleanMethods inherited from class org.csstudio.opibuilder.widgets.model.AbstractBoolWidgetModel
getBit, getBoolLabelPosition, getDataType, getOffColor, getOffLabel, getOffState, getOnColor, getOnLabel, getOnState, isShowBoolLabelMethods inherited from class org.csstudio.opibuilder.model.AbstractPVWidgetModel
configureBaseProperties, getDelegate, getPVName, getTooltip, isAlarmPulsing, isBackColorAlarmSensitve, isBorderAlarmSensitve, isForeColorAlarmSensitve, processVersionDifferenceMethods inherited from class org.csstudio.opibuilder.model.AbstractWidgetModel
addConnection, addProperty, addProperty, addPVProperty, doScale, flipHorizontally, flipHorizontally, flipVertically, flipVertically, generateNewWUID, getActionsInput, getAdapter, getAllPropertyIDs, getBackgroundColor, getBorderColor, getBorderStyle, getBorderWidth, getBounds, getCastedPropertyValue, getEditableValue, getExecutionMode, getFont, getForegroundColor, getHeight, getIndex, getLocation, getName, getNestedDepth, getOriginLocation, getOriginSize, getParent, getProperty, getPropertyDescriptors, getPropertyValue, getPVMap, getRawPropertyValue, getRawTooltip, getRGBFromColorProperty, getRootDisplayModel, getRootDisplayModel, getRulesInput, getRuntimePropertyList, getScaledSize, getScaleOptions, getScriptsInput, getSize, getSourceConnections, getSWTColorFromColorProperty, getTargetConnections, getType, getVersion, getVersionOnFile, getWidgetType, getWidth, getWUID, getX, getY, isEnabled, isPropertySet, isVisible, removeProperty, removePVProperty, resetPropertyValue, rotate90, rotate90, scale, scaleConnections, setBackgroundColor, setBorderColor, setBorderStyle, setBorderWidth, setBounds, setBounds, setEnabled, setExecutionMode, setForegroundColor, setHeight, setLocation, setLocation, setName, setParent, setPropertyDescription, setPropertyValue, setPropertyValue, setPropertyVisible, setPropertyVisibleAndSavable, setScaleOptions, setSize, setSize, setTooltip, setVersionOnFile, setWidth, setX, setY
-
Field Details
-
PROP_EFFECT3D
The ID of the effect 3D property.- See Also:
-
PROP_SQUARE_LED
The ID of the square LED property.- See Also:
-
PROP_NSTATES
Number of states for this multi state widget- See Also:
-
PROP_STATE_LABEL
Label text for multi state X- See Also:
-
PROP_STATE_COLOR
Widget color for multi state X- See Also:
-
DESC_STATE_COLOR
Description for widget color properties- See Also:
-
PROP_STATE_VALUE
State value for multi state X- See Also:
-
DESC_STATE_VALUE
Description for state value properties- See Also:
-
PROP_STATE_FALLBACK_LABEL
State fallback label property- See Also:
-
PROP_STATE_FALLBACK_COLOR
State fallback color property- See Also:
-
MINIMUM_SIZE
public static final int MINIMUM_SIZE- See Also:
-
PROP_BULB_BORDER
Border around the bulb - this is drawn in addition to the 'widget border' set by the widget border style/color/width properties. For round LEDs this is a round border,- See Also:
-
PROP_BULB_BORDER_COLOR
Color of bulb border LEDs- See Also:
-
ID
The ID of this widget model.- See Also:
-
-
Constructor Details
-
LEDModel
public LEDModel()
-
-
Method Details
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Overrides:
configurePropertiesin classAbstractBoolWidgetModel
-
getTypeID
- Specified by:
getTypeIDin classAbstractWidgetModel- Returns:
- the unique typeID of the model.
-
isEffect3D
public boolean isEffect3D()- Returns:
- true if the widget would be painted with 3D effect, false otherwise
-
isSquareLED
public boolean isSquareLED()- Returns:
- true if the LED is square, false otherwise
-
getNStates
public int getNStates() -
getStateLabel
-
getStateValue
public double getStateValue(int state) -
getStateColor
-
getStateFallbackLabel
-
getStateFallbackColor
-
getBulbBorderWidth
public int getBulbBorderWidth() -
getBulbBorderColor
-