Class ProgressBarModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.AbstractScaledWidgetModel
org.csstudio.opibuilder.widgets.model.AbstractMarkedWidgetModel
org.csstudio.opibuilder.widgets.model.ProgressBarModel
- All Implemented Interfaces:
IPVWidgetModel
,IAdaptable
,IPropertySource
This class defines a scaled slider widget model.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The ID of this widget model.static final String
The ID of the effect 3D property.static final String
The ID of the fill color property.static final String
The ID of the fillbackground-Color property.static final String
The ID of the fillcolor alarm sensitive property.static final String
The ID of the horizontal property.static final String
static final String
static final String
static final String
Fields inherited from class org.csstudio.opibuilder.widgets.model.AbstractMarkedWidgetModel
isControlWidget, PROP_HI_COLOR, PROP_HI_LEVEL, PROP_HIHI_COLOR, PROP_HIHI_LEVEL, PROP_LIMITS_FROM_PV, PROP_LO_COLOR, PROP_LO_LEVEL, PROP_LOLO_COLOR, PROP_LOLO_LEVEL, PROP_SHOW_HI, PROP_SHOW_HIHI, PROP_SHOW_LO, PROP_SHOW_LOLO, PROP_SHOW_MARKERS
Fields inherited from class org.csstudio.opibuilder.widgets.model.AbstractScaledWidgetModel
PROP_LOG_SCALE, PROP_MAJOR_TICK_STEP_HINT, PROP_MAX, PROP_MIN, PROP_SCALE_FONT, PROP_SCALE_FORMAT, PROP_SHOW_MINOR_TICKS, PROP_SHOW_SCALE, PROP_TRANSPARENT, PROP_VALUE_LABEL_FORMAT
Fields 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, VERSION
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Configure the properties of the widget.Gets the RGB for fillbackground.double
boolean
boolean
boolean
boolean
boolean
boolean
void
rotate90
(boolean clockwise) Rotate the widget figure 90 degree.void
rotate90
(boolean clockwise, org.eclipse.draw2d.geometry.Point center) Rotate the widget figure 90 degree.Methods inherited from class org.csstudio.opibuilder.widgets.model.AbstractMarkedWidgetModel
getHiColor, getHihiColor, getHihiLevel, getHiLevel, getLoColor, getLoLevel, getLoloColor, getLoloLevel, isControlWidget, isLimitsFromPV, isShowHi, isShowHihi, isShowLo, isShowLolo, isShowMarkers
Methods inherited from class org.csstudio.opibuilder.widgets.model.AbstractScaledWidgetModel
getMajorTickStepHint, getMaximum, getMinimum, getScaleFont, getScaleFormat, getValueLabelFormat, isLogScaleEnabled, isShowMinorTicks, isShowScale, isTransparent
Methods inherited from class org.csstudio.opibuilder.model.AbstractPVWidgetModel
configureBaseProperties, getDelegate, getPVName, getTooltip, isAlarmPulsing, isBackColorAlarmSensitve, isBorderAlarmSensitve, isForeColorAlarmSensitve, processVersionDifference
Methods 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, 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_FILL_COLOR
The ID of the fill color property.- See Also:
-
PROP_FILLCOLOR_ALARM_SENSITIVE
The ID of the fillcolor alarm sensitive property.- See Also:
-
PROP_EFFECT3D
The ID of the effect 3D property.- See Also:
-
PROP_HORIZONTAL
The ID of the horizontal property.- See Also:
-
PROP_FILLBACKGROUND_COLOR
The ID of the fillbackground-Color property.- See Also:
-
PROP_SHOW_LABEL
- See Also:
-
PROP_ORIGIN
- See Also:
-
PROP_ORIGIN_IGNORED
- See Also:
-
PROP_INDICATOR_MODE
- See Also:
-
ID
The ID of this widget model.- See Also:
-
-
Constructor Details
-
ProgressBarModel
public ProgressBarModel()
-
-
Method Details
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModel
Configure the properties of the widget. Subclass should add new properties in this method.- Overrides:
configureProperties
in classAbstractMarkedWidgetModel
-
getTypeID
- Specified by:
getTypeID
in classAbstractWidgetModel
- Returns:
- the unique typeID of the model.
-
getFillColor
- Returns:
- the fill color
-
isFillColorAlarmSensitive
public boolean isFillColorAlarmSensitive()- Returns:
- true if the fill color is sensitive to alarm
-
isEffect3D
public boolean isEffect3D()- Returns:
- true if the widget would be painted with 3D effect, false otherwise
-
isShowLabel
public boolean isShowLabel() -
isHorizontal
public boolean isHorizontal()- Returns:
- true if the widget is in horizontal orientation, false otherwise
-
getFillbackgroundColor
Gets the RGB for fillbackground.- Returns:
- The fillbackground color
-
getOrigin
public double getOrigin() -
isOriginIgnored
public boolean isOriginIgnored() -
isIndicatorMode
public boolean isIndicatorMode() -
rotate90
public void rotate90(boolean clockwise) Description copied from class:AbstractWidgetModel
Rotate the widget figure 90 degree.- Overrides:
rotate90
in classAbstractWidgetModel
- Parameters:
clockwise
- true if rotate clockwise. false if counterclockwise.
-
rotate90
public void rotate90(boolean clockwise, org.eclipse.draw2d.geometry.Point center) Description copied from class:AbstractWidgetModel
Rotate the widget figure 90 degree.- Overrides:
rotate90
in classAbstractWidgetModel
- Parameters:
clockwise
- true if rotate clockwise. false if counterclockwise.
-