CWGraph

Measurement Studio User Interface

CWGraph

The CWGraph object is the top-level object in the graph control and it has properties that affect the overall appearance of the control.

Properties

AnnotationsSpecifies a collection of CWAnnotation objects.
AnnotationTemplateReturns the CWAnnotation object to use as a template for new annotations.
AxesSpecifies a collection of CWAxis objects.
BackColorSpecifies the background color for the graph caption.
CaptionSpecifies the caption that appears on the graph.
CaptionColorSpecifies the color of the caption.
ChartLengthSpecifies how many points the graph stores when charting before it deletes old data.
ChartStyleSpecifies how chart methods update the display as new data is added to the plot.
CursorsSpecifies a collection of CWCursor objects.
CWBindingsReturns a collection of CWBinding objects.
DefaultPlotPerRowSpecifies the default value used by the Plot or Chart method if the optional bPlotPerRow or bChartPerRow parameter is omitted.
DefaultxFirstSpecifies the default X value of the first point in the plot when using the PlotY method. Set this property only if the optional xFirst parameter is omitted for the PlotY method.
DefaultxIncSpecifies the default value for incrementing when using the PlotY or ChartY method. Set this property only if the optional xInc parameter is omitted for either method.
EnabledSpecifies if the graph generates any events.
FontSpecifies the font for labels on all axes.
GraphFrameColorSpecifies the color for the graph frame.
GraphFrameImageSpecifies the image for the background of the graph frame.
GraphFrameStyleSpecifies the style of the graph frame.
ImmediateUpdatesSpecifies if the graph draws new data as soon as it is available, or if the form refreshes the graph when it draws other controls.
KeyboardModeSpecifies how the control handles keyboard input from the user.
PlotAreaColorSpecifies the background color of the plot area.
PlotAreaImageSpecifies the image used for the background of the plot area.
PlotsSpecifies a collection of CWPlots.
PlotTemplateReturns the CWPlot object to use as a template for new plots.
ReadyStateReturns the ready state.
TrackModeDetermines how the mouse interacts with the graph.
WindowlessSpecifies if the control has a window.
XYDataDisplays data from an external source in a plot on a graph as it would if you called the PlotXY method.
XYDataAppendDisplays data from an external source in a chart as it would if you called the ChartXY method.
YDataDisplays data from an external source in a plot on a graph as it would if you called the PlotY method.
YDataAppendDisplays data from an external source in a chart as it would if you called the ChartY method.

Methods

AboutBoxDisplays the About Box for the control.
ChartXvsYCharts a one- or two-dimensional array of Y data against a one-dimensional array of X data. This method is similar to the PlotYvsX method, except that the previously plotted data is not deleted until the amount stored for each chart is greater than the CWGraph.ChartLength property specifies.
ChartXYCharts a two-dimensional array of data. This method is similar to the PlotXY method, except that the previously plotted data is not deleted until the amount stored for each chart is greater than the CWGraph.ChartLength property specifies.
ChartYCharts Y data on one or more plots relative to the index of the data.
ClearDataClears data in all plots.
ControlImageReturns an image of the entire control.
ExportStyleExports the style of the Measurement Studio control to a file.
ImagesProvides access to the CWImage objects in the CWGraph control.
ImportStyleImports a previously exported style.
PlotXvsYPlots a 1D or 2D array of Y data against a 1D array of X data. Each row of Y values generates one plot.

PlotXYPlots a 2D array of data. The first row is X values, and subsequent rows are Y values for each plot.
PlotYPlots Y data evenly spaced on the x axis relative to the index in the array. Alternatively, you can use the xFirst and xInc parameters to specify the X value at the first data point and the incremental X value between data points.
RefreshRedraws the CWGraph control.

Events

AnnotationChangeGenerates when you reposition an annotation with the mouse.
AnnotationMouseDown, AnnotationMouseMove, AnnotationMouseUpAnnotationMouseDown is generated when you click the mouse on an annotation.

AnnotationMouseMove is generated when you move the mouse over an annotation.

AnnotationMouseUp is generated when you release the mouse over an annotation.
ClickGenerates when you click the mouse on the control.
CursorChangeGenerated when you reposition a cursor with the mouse.
CursorMouseDown, CursorMouseMove, CursorMouseUpCursorMouseDown is generated when you click the mouse on a cursor.

CursorMouseMove is generated when you move the mouse over a cursor.

CursorMouseUp is generated when you release the mouse over a cursor.
CWBindingDataUpdatedGenerated when the binding data is updated.
CWBindingStatusUpdatedGenerated when the status of the binding connection changes.
DblClickGenerates when you double-click the mouse on the control.
KeyDown, KeyUpKeyUp generates when you release a key while the control has the input focus.

KeyDown generates when you press a key while the control has the input focus.
KeyPressGenerated when the control has focus and you press a key.
MouseDown, MouseMove, MouseUpMouseDown generates when you click the mouse on the control.

MouseMove generates when you move the mouse over the control.

MouseUp generates when you release the mouse on the control.
PlotAreaMouseDown, PlotAreaMouseMove, PlotAreaMouseUpPlotAreaMouseDown generates when you click the mouse on the plot area.

PlotAreaMouseMove generates when you move the mouse over the plot area.

PlotAreaMouseUp generates when you release the mouse over the plot area.
PlotMouseDown, PlotMouseMove, PlotMouseUpPlotMouseDown generates when you click the mouse on a plot.

PlotMouseMove generates when you move the mouse over a plot.

PlotMouseUp generates when you release the mouse over a plot.
ReadyStateChangeGenerated when the ready state changes.