Class ScrollBarModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.ScrollBarModel
- All Implemented Interfaces:
IPVWidgetModel
,IAdaptable
,IPropertySource
The model of scroll bar widget.
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
static final String
The length of the dragging bar.static final String
The ID of the horizontal property.static final String
static final String
The ID of the maximum property.static final String
The ID of the minimum property.static final String
The amount the scrollbar will move when the page up or page down areas are pressed.static final String
static final String
the amount the scrollbar will move when the up or down arrow buttons are pressed.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
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
-
ID
- See Also:
-
PROP_MIN
The ID of the minimum property.- See Also:
-
PROP_MAX
The ID of the maximum property.- See Also:
-
PROP_PAGE_INCREMENT
The amount the scrollbar will move when the page up or page down areas are pressed.- See Also:
-
PROP_STEP_INCREMENT
the amount the scrollbar will move when the up or down arrow buttons are pressed.- See Also:
-
PROP_BAR_LENGTH
The length of the dragging bar.- See Also:
-
PROP_HORIZONTAL
The ID of the horizontal property.- See Also:
-
PROP_LIMITS_FROM_PV
- See Also:
-
PROP_SHOW_VALUE_TIP
- See Also:
-
-
Constructor Details
-
ScrollBarModel
public ScrollBarModel()
-
-
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
-
isHorizontal
public boolean isHorizontal()- Returns:
- true if the widget is in horizontal orientation, false otherwise
-
getPageIncrement
- Returns:
- the page increment
-
getStepIncrement
- Returns:
- the step increment
-
getBarLength
- Returns:
- the length of the dragging bar.
-
isLimitsFromPV
public boolean isLimitsFromPV()- Returns:
- true if limits will be load from DB, false otherwise
-
isShowValueTip
public boolean isShowValueTip() -
getTypeID
- Specified by:
getTypeID
in classAbstractWidgetModel
- Returns:
- the unique typeID of the model.
-
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.
-