Class XYGraphModel
java.lang.Object
org.csstudio.opibuilder.model.AbstractWidgetModel
org.csstudio.opibuilder.model.AbstractPVWidgetModel
org.csstudio.opibuilder.widgets.model.XYGraphModel
- All Implemented Interfaces:
IPVWidgetModel,IAdaptable,IPropertySource
The model for XYGraph
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]static final StringThe ID of this widget model.static final intstatic final intstatic final StringThe ID of the number of axes property.static final StringThe ID of the plot area background color property.static final StringThe ID of the show legend property.static final StringThe ID of the show plot area border property.static final StringThe ID of the show toolbar property.static final StringThe ID of the title property.static final StringThe ID of the title font property.static final StringThe ID of the number of axes property.static final StringThe ID of the transparent property.static final Stringstatic final Stringstatic final String[]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, 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.intgetTitle()Return the title font.intbooleanbooleanbooleanbooleanstatic StringmakeAxisPropID(String propIDPre, int index) static StringmakeTracePropID(String propIDPre, int index) voidprocessVersionDifference(org.osgi.framework.Version boyVersionOnFile) Make necessary adjustment for widget compatibility between different versions.Methods inherited from class org.csstudio.opibuilder.model.AbstractPVWidgetModel
configureBaseProperties, getDelegate, getPVName, getTooltip, isAlarmPulsing, isBackColorAlarmSensitve, isBorderAlarmSensitve, isForeColorAlarmSensitveMethods 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, 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
-
TIME_FORMAT_ARRAY
-
PROP_TITLE
The ID of the title property.- See Also:
-
PROP_TITLE_FONT
The ID of the title font property.- See Also:
-
PROP_SHOW_LEGEND
The ID of the show legend property.- See Also:
-
PROP_SHOW_PLOTAREA_BORDER
The ID of the show plot area border property.- See Also:
-
PROP_PLOTAREA_BACKCOLOR
The ID of the plot area background color property.- See Also:
-
PROP_TRANSPARENT
The ID of the transparent property.- See Also:
-
PROP_AXIS_COUNT
The ID of the number of axes property.- See Also:
-
PROP_TRACE_COUNT
The ID of the number of axes property.- See Also:
-
PROP_SHOW_TOOLBAR
The ID of the show toolbar property.- See Also:
-
PROP_TRIGGER_PV
- See Also:
-
PROP_TRIGGER_PV_VALUE
- See Also:
-
MAX_AXES_AMOUNT
public static final int MAX_AXES_AMOUNT- See Also:
-
MAX_TRACES_AMOUNT
public static final int MAX_TRACES_AMOUNT- See Also:
-
AXES_ARRAY
-
ID
The ID of this widget model.- See Also:
-
-
Constructor Details
-
XYGraphModel
public XYGraphModel()
-
-
Method Details
-
configureProperties
protected void configureProperties()Description copied from class:AbstractWidgetModelConfigure the properties of the widget. Subclass should add new properties in this method.- Specified by:
configurePropertiesin classAbstractWidgetModel
-
processVersionDifference
public void processVersionDifference(org.osgi.framework.Version boyVersionOnFile) Description copied from class:AbstractWidgetModelMake necessary adjustment for widget compatibility between different versions.- Overrides:
processVersionDifferencein classAbstractPVWidgetModel
-
makeAxisPropID
-
makeTracePropID
-
getTitle
- Returns:
- the title
-
getTitleFont
Return the title font.- Returns:
- The title font.
-
isShowPlotAreaBorder
public boolean isShowPlotAreaBorder()- Returns:
- true if the plot area border should be shown, false otherwise
-
getPlotAreaBackColor
- Returns:
- the plot area background color
-
isTransprent
public boolean isTransprent()- Returns:
- true if the XY Graph is transparent, false otherwise
-
isShowLegend
public boolean isShowLegend()- Returns:
- true if the legend should be shown, false otherwise
-
isShowToolbar
public boolean isShowToolbar()- Returns:
- true if the legend should be shown, false otherwise
-
getAxesAmount
public int getAxesAmount()- Returns:
- The number of axes.
-
getTracesAmount
public int getTracesAmount()- Returns:
- The number of traces.
-
getTypeID
- Specified by:
getTypeIDin classAbstractWidgetModel- Returns:
- the unique typeID of the model.
-