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
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String[]
static final String
The ID of this widget model.static final int
static final int
static final String
The ID of the number of axes property.static final String
The ID of the plot area background color property.static final String
The ID of the show legend property.static final String
The ID of the show plot area border property.static final String
The ID of the show toolbar property.static final String
The ID of the title property.static final String
The ID of the title font property.static final String
The ID of the number of axes property.static final String
The ID of the transparent property.static final String
static final String
static 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, 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
Modifier and TypeMethodDescriptionprotected void
Configure the properties of the widget.int
getTitle()
Return the title font.int
boolean
boolean
boolean
boolean
static String
makeAxisPropID
(String propIDPre, int index) static String
makeTracePropID
(String propIDPre, int index) void
processVersionDifference
(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, isForeColorAlarmSensitve
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, 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:AbstractWidgetModel
Configure the properties of the widget. Subclass should add new properties in this method.- Specified by:
configureProperties
in classAbstractWidgetModel
-
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 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:
getTypeID
in classAbstractWidgetModel
- Returns:
- the unique typeID of the model.
-