Class AbstractMarkedWidgetModel
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
- All Implemented Interfaces:
IPVWidgetModel
,IAdaptable
,IPropertySource
- Direct Known Subclasses:
GaugeModel
,KnobModel
,MeterModel
,ProgressBarModel
,ScaledSliderModel
,TankModel
,ThermometerModel
This class defines a common widget model for any widget which has one scale and standard markers. Standard markers
are comprised of LOLO, LO, HI, HIHI.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static final String
Color of high marker.static final String
High Level.static final String
Color of high high marker.static final String
High High Levelstatic final String
Load the Maximum, Minimum, HIHI, HI, LOLO, LO limits from PV.static final String
Color of low marker.static final String
Low level.static final String
Color of low low marker.static final String
Low low level.static final String
Show high marker.static final String
Show high high marker.static final String
Show low marker.static final String
Show low low marker.static final String
Show alarm markers(or ramp for round scale widgets).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.double
Gets the hihi level of this model.double
Gets the hi level for this model.double
Gets the lo level for this model.double
Gets the lolo level for this model.boolean
boolean
boolean
isShowHi()
boolean
boolean
isShowLo()
boolean
boolean
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, getTypeID, 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_SHOW_MARKERS
Show alarm markers(or ramp for round scale widgets).- See Also:
-
PROP_LOLO_LEVEL
Low low level.- See Also:
-
PROP_LO_LEVEL
Low level.- See Also:
-
PROP_HI_LEVEL
High Level.- See Also:
-
PROP_HIHI_LEVEL
High High Level- See Also:
-
PROP_SHOW_LOLO
Show low low marker.- See Also:
-
PROP_SHOW_LO
Show low marker.- See Also:
-
PROP_SHOW_HI
Show high marker.- See Also:
-
PROP_SHOW_HIHI
Show high high marker.- See Also:
-
PROP_LOLO_COLOR
Color of low low marker.- See Also:
-
PROP_LO_COLOR
Color of low marker.- See Also:
-
PROP_HI_COLOR
Color of high marker.- See Also:
-
PROP_HIHI_COLOR
Color of high high marker.- See Also:
-
PROP_LIMITS_FROM_PV
Load the Maximum, Minimum, HIHI, HI, LOLO, LO limits from PV.- See Also:
-
isControlWidget
protected boolean isControlWidget
-
-
Constructor Details
-
AbstractMarkedWidgetModel
public AbstractMarkedWidgetModel()
-
-
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 classAbstractScaledWidgetModel
-
getLoloLevel
public double getLoloLevel()Gets the lolo level for this model.- Returns:
- double The lolo level
-
getLoLevel
public double getLoLevel()Gets the lo level for this model.- Returns:
- double The lo level
-
getHiLevel
public double getHiLevel()Gets the hi level for this model.- Returns:
- double The hi level
-
getHihiLevel
public double getHihiLevel()Gets the hihi level of this model.- Returns:
- double The hihi level
-
getLoloColor
- Returns:
- the lolo color
-
getLoColor
- Returns:
- the lo color
-
getHiColor
- Returns:
- the hi color
-
getHihiColor
- Returns:
- the hihi color
-
isShowMarkers
public boolean isShowMarkers()- Returns:
- true if the minor ticks should be shown, false otherwise
-
isShowLolo
public boolean isShowLolo()- Returns:
- true if the lolo marker should be shown, false otherwise
-
isShowLo
public boolean isShowLo()- Returns:
- true if the lo marker should be shown, false otherwise
-
isShowHi
public boolean isShowHi()- Returns:
- true if the hi marker should be shown, false otherwise
-
isShowHihi
public boolean isShowHihi()- Returns:
- true if the hihi marker should be shown, false otherwise
-
isLimitsFromPV
public boolean isLimitsFromPV()- Returns:
- true if limits will be load from DB, false otherwise
-
isControlWidget
public boolean isControlWidget()- Returns:
- true if this widget is a control widget, i.e. used to SET PV values
-