Class TextUpdateModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.LabelModel
org.csstudio.opibuilder.widgets.model.TextUpdateModel
- All Implemented Interfaces:
IPVWidgetModel,ITextModel,IAdaptable,IPropertySource
- Direct Known Subclasses:
TextInputModel
The model for text indicator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.csstudio.opibuilder.widgets.model.LabelModel
PROP_ALIGN_H, PROP_ALIGN_V, PROP_AUTOSIZE, PROP_SHOW_SCROLLBAR, PROP_TEXT, PROP_TRANSPARENT, PROP_WRAP_WORDS, pvModelFields 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, VERSIONFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConfigure the properties of the widget.intdoubleReturns the rotation angle for this widget.booleanbooleanbooleanvoidrotate90(boolean clockwise) Rotate the widget figure 90 degree.voidrotate90(boolean clockwise, org.eclipse.draw2d.geometry.Point center) Rotate the widget figure 90 degree.voidsetRotationAngle(double angle) Methods inherited from class org.csstudio.opibuilder.widgets.model.LabelModel
getHorizontalAlignment, getText, getVerticalAlignment, isAutoSize, isShowScrollbar, isTransparent, isWrapWords, setFont, setText, setTextMethods inherited from class org.csstudio.opibuilder.model.AbstractPVWidgetModel
configureBaseProperties, getDelegate, getPVName, getTooltip, isAlarmPulsing, isBackColorAlarmSensitve, isBorderAlarmSensitve, isForeColorAlarmSensitve, processVersionDifferenceMethods 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_FORMAT_TYPE
- See Also:
-
PROP_PRECISION
- See Also:
-
PROP_PRECISION_FROM_DB
- See Also:
-
PROP_SHOW_UNITS
- See Also:
-
PROP_SHOW_LOHI
- See Also:
-
PROP_ROTATION
- See Also:
-
-
Constructor Details
-
TextUpdateModel
public TextUpdateModel()
-
-
Method Details
-
getTypeID
- Overrides:
getTypeIDin classLabelModel- Returns:
- the unique typeID of the model.
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Overrides:
configurePropertiesin classLabelModel
-
getFormat
-
getPrecision
public int getPrecision() -
isPrecisionFromDB
public boolean isPrecisionFromDB() -
isShowUnits
public boolean isShowUnits() -
isShowLoHi
public boolean isShowLoHi() -
getRotationAngle
public double getRotationAngle()Returns the rotation angle for this widget.- Returns:
- The rotation angle
-
setRotationAngle
public void setRotationAngle(double angle) -
rotate90
public void rotate90(boolean clockwise) Description copied from class:AbstractWidgetModelRotate the widget figure 90 degree.- Overrides:
rotate90in 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:AbstractWidgetModelRotate the widget figure 90 degree.- Overrides:
rotate90in classAbstractWidgetModel- Parameters:
clockwise- true if rotate clockwise. false if counterclockwise.
-