Class LinkingContainerModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractContainerModel
org.csstudio.opibuilder.model.AbstractLinkingContainerModel
org.csstudio.opibuilder.widgets.model.LinkingContainerModel
- All Implemented Interfaces:
IAdaptable
,IPropertySource
The model for linking container widget.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
How should the container behave when the OPI it is wrapping has content of a different size to the widget. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The ID of this widget model.static final String
Deprecated.static final String
The ID of the resource property.static final String
How the widget should behave when the contents is not the same size as the widget.static final String
Deprecated.static final org.osgi.framework.Version
Versions before this didn't have an updated resize behaviour.Fields inherited from class org.csstudio.opibuilder.model.AbstractLinkingContainerModel
PROP_GROUP_NAME
Fields inherited from class org.csstudio.opibuilder.model.AbstractContainerModel
PROP_CHILDREN, PROP_MACROS, PROP_SELECTION
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Configure the properties of the widget.org.eclipse.draw2d.geometry.Dimension
boolean
Returns the auto zoom state.boolean
boolean
This is a flag to show if children operation edit policies should be installed.boolean
void
processVersionDifference
(org.osgi.framework.Version boyVersionOnFile) Make necessary adjustment for widget compatibility between different versions.void
scale
(double widthRatio, double heightRatio) Scale location and size of the widget.void
Scale its children.void
setChildrenGeoSize
(org.eclipse.draw2d.geometry.Dimension childrenGeoSize) void
setPropertyValue
(Object id, Object value) Methods inherited from class org.csstudio.opibuilder.model.AbstractLinkingContainerModel
configureBaseProperties, getDisplayModel, getGroupName, getOPIFilePath, setDisplayModel, setDisplayModelDisplayID, setDisplayModelExecutionMode, setDisplayModelOpiRuntime, setDisplayModelViewer, setOPIFilePath
Methods inherited from class org.csstudio.opibuilder.model.AbstractContainerModel
addChild, addChild, addChild, addChildren, addMacro, changeChildOrder, getAllDescendants, getChildByName, getChildren, getChildrenProperty, getEditPart, getIndexOf, getLayoutWidget, getMacroMap, getMacrosInput, getParentMacroMap, getSelectionProperty, removeAllChildren, removeChild, selectWidget, selectWidgets, setMacroMap
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, getParent, getProperty, getPropertyDescriptors, getPropertyValue, getPVMap, getRawPropertyValue, getRawTooltip, getRGBFromColorProperty, getRootDisplayModel, getRootDisplayModel, getRulesInput, getRuntimePropertyList, getScaledSize, getScaleOptions, getScriptsInput, getSize, getSourceConnections, getSWTColorFromColorProperty, getTargetConnections, getTooltip, getType, getVersion, getVersionOnFile, getWidgetType, getWidth, getWUID, getX, getY, isEnabled, isPropertySet, isVisible, removeProperty, removePVProperty, resetPropertyValue, rotate90, rotate90, scaleConnections, setBackgroundColor, setBorderColor, setBorderStyle, setBorderWidth, setBounds, setBounds, setEnabled, setExecutionMode, setForegroundColor, setHeight, setLocation, setLocation, setName, setParent, setPropertyDescription, setPropertyValue, setPropertyVisible, setPropertyVisibleAndSavable, setScaleOptions, setSize, setSize, setTooltip, setVersionOnFile, setWidth, setX, setY
-
Field Details
-
ID
The ID of this widget model.- See Also:
-
VERSION_CHANGE_OF_RESIZE_BEHAVIOUR
public static final org.osgi.framework.Version VERSION_CHANGE_OF_RESIZE_BEHAVIOURVersions before this didn't have an updated resize behaviour. -
PROP_OPI_FILE
The ID of the resource property.- See Also:
-
PROP_ZOOMTOFITALL
Deprecated.The ID of the auto zoom property.- See Also:
-
PROP_AUTO_SIZE
Deprecated.The ID of the auto scale property.- See Also:
-
PROP_RESIZE_BEHAVIOUR
How the widget should behave when the contents is not the same size as the widget.- See Also:
-
-
Constructor Details
-
LinkingContainerModel
public LinkingContainerModel()
-
-
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
-
setPropertyValue
- Specified by:
setPropertyValue
in interfaceIPropertySource
- Overrides:
setPropertyValue
in classAbstractWidgetModel
-
getTypeID
- Specified by:
getTypeID
in classAbstractWidgetModel
- Returns:
- the unique typeID of the model.
-
isAutoFit
public boolean isAutoFit()Returns the auto zoom state.- Returns:
- the auto zoom state
-
isAutoSize
public boolean isAutoSize() -
isShowScrollBars
public boolean isShowScrollBars() -
isChildrenOperationAllowable
public boolean isChildrenOperationAllowable()Description copied from class:AbstractContainerModel
This is a flag to show if children operation edit policies should be installed.- Overrides:
isChildrenOperationAllowable
in classAbstractContainerModel
- Returns:
- true if children operation allowable.
-
scale
public void scale(double widthRatio, double heightRatio) Description copied from class:AbstractWidgetModel
Scale location and size of the widget. If the widget needs to change its scale behavior, it should overrideAbstractWidgetModel.doScale(double, double)
instead of this method.- Overrides:
scale
in classAbstractContainerModel
- Parameters:
widthRatio
- Ratio of width change.heightRatio
- Ratio of height change.
-
processVersionDifference
public void processVersionDifference(org.osgi.framework.Version boyVersionOnFile) Description copied from class:AbstractWidgetModel
Make necessary adjustment for widget compatibility between different versions.- Overrides:
processVersionDifference
in classAbstractWidgetModel
-
scaleChildren
public void scaleChildren()Scale its children.- Overrides:
scaleChildren
in classAbstractContainerModel
-
getOriginSize
public org.eclipse.draw2d.geometry.Dimension getOriginSize()- Overrides:
getOriginSize
in classAbstractWidgetModel
- Returns:
- the original size before scaling
-
setChildrenGeoSize
public void setChildrenGeoSize(org.eclipse.draw2d.geometry.Dimension childrenGeoSize)
-