Class PolyLineModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.AbstractShapeModel
org.csstudio.opibuilder.widgets.model.AbstractPolyModel
org.csstudio.opibuilder.widgets.model.PolyLineModel
- All Implemented Interfaces:
IPVWidgetModel,IAdaptable,IPropertySource
The model for polyline widget.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe ID of this widget model.static final Stringstatic final Stringstatic final StringFields inherited from class org.csstudio.opibuilder.widgets.model.AbstractPolyModel
PROP_POINTS, PROP_ROTATIONFields inherited from class org.csstudio.opibuilder.widgets.model.AbstractShapeModel
PROP_ALPHA, PROP_ANTIALIAS, PROP_FILL_LEVEL, PROP_HORIZONTAL_FILL, PROP_LINE_COLOR, PROP_LINE_STYLE, PROP_LINE_WIDTH, PROP_TRANSPARENTFields 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.intintbooleanvoidsetArrowLength(int value) voidsetArrowType(int type) voidsetFillArrow(boolean fill) voidUpdate the figure bounds based on points and arrows.Methods inherited from class org.csstudio.opibuilder.widgets.model.AbstractPolyModel
doScale, flipHorizontally, flipHorizontally, flipVertically, flipVertically, getOriginalPoints, getPoints, getRotationAngle, rememberZeroDegreePoints, rotate90, rotate90, rotatePoints, setLocation, setPoints, setPropertyValue, setRotationAngle, setSizeMethods inherited from class org.csstudio.opibuilder.widgets.model.AbstractShapeModel
getAlpha, getFillLevel, getLineColor, getLineStyle, getLineWidth, isAntiAlias, isHorizontalFill, isTransparent, setFillLevel, setHoizontalFill, setLineStyle, setLineWidth, setTransparentMethods 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, 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, setName, setParent, setPropertyDescription, setPropertyValue, setPropertyVisible, setPropertyVisibleAndSavable, setScaleOptions, setSize, setTooltip, setVersionOnFile, setWidth, setX, setY
-
Field Details
-
ID
The ID of this widget model.- See Also:
-
PROP_ARROW
- See Also:
-
PROP_FILL_ARROW
- See Also:
-
PROP_ARROW_LENGTH
- See Also:
-
-
Constructor Details
-
PolyLineModel
public PolyLineModel()
-
-
Method Details
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Overrides:
configurePropertiesin classAbstractPolyModel
-
getTypeID
- Specified by:
getTypeIDin classAbstractWidgetModel- Returns:
- the unique typeID of the model.
-
getArrowType
public int getArrowType() -
setArrowType
public void setArrowType(int type) -
getArrowLength
public int getArrowLength() -
setArrowLength
public void setArrowLength(int value) -
updateBounds
public void updateBounds()Update the figure bounds based on points and arrows. -
isFillArrow
public boolean isFillArrow() -
setFillArrow
public void setFillArrow(boolean fill)
-