Class AbstractScaledWidgetModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.AbstractScaledWidgetModel
- All Implemented Interfaces:
IPVWidgetModel
,IAdaptable
,IPropertySource
- Direct Known Subclasses:
AbstractMarkedWidgetModel
This class defines a common widget model for any widget which has a scale.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
True if the scale is log scale.static final String
The minimum distance (in pixels) between major ticks.static final String
Higher limit of the widget.static final String
Lower limit of the widget.static final String
True if the scale is log scale.static final String
The numeric format pattern for the scale.static final String
Show minor ticks.static final String
Show scale.static final String
True if the widget's background is transparent.static final String
The numeric format pattern for the value label.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.boolean
boolean
boolean
boolean
Returns, if this widget should have a transparent background.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_TRANSPARENT
True if the widget's background is transparent.- See Also:
-
PROP_MIN
Lower limit of the widget.- See Also:
-
PROP_MAX
Higher limit of the widget.- See Also:
-
PROP_MAJOR_TICK_STEP_HINT
The minimum distance (in pixels) between major ticks.- See Also:
-
PROP_SHOW_MINOR_TICKS
Show minor ticks.- See Also:
-
PROP_SHOW_SCALE
Show scale.- See Also:
-
PROP_LOG_SCALE
True if the scale is log scale.- See Also:
-
PROP_SCALE_FONT
True if the scale is log scale.- See Also:
-
PROP_SCALE_FORMAT
The numeric format pattern for the scale.- See Also:
-
PROP_VALUE_LABEL_FORMAT
The numeric format pattern for the value label.- See Also:
-
-
Constructor Details
-
AbstractScaledWidgetModel
public AbstractScaledWidgetModel()
-
-
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.- Specified by:
configureProperties
in classAbstractWidgetModel
-
getMinimum
- Returns:
- the minimum value
-
getMaximum
- Returns:
- the maximum value
-
getMajorTickStepHint
- Returns:
- the major tick step hint value
-
isShowMinorTicks
public boolean isShowMinorTicks()- Returns:
- true if the minor ticks should be shown, false otherwise
-
isShowScale
public boolean isShowScale()- Returns:
- true if the scale should be shown, false otherwise
-
isLogScaleEnabled
public boolean isLogScaleEnabled()- Returns:
- true if log scale enabled, false otherwise
-
isTransparent
public boolean isTransparent()Returns, if this widget should have a transparent background.- Returns:
- boolean True, if it should have a transparent background, false otherwise
-
getScaleFont
-
getScaleFormat
-
getValueLabelFormat
-