Table of Contents

Class GraphControl

Namespace
Bonsai.Design.Visualizers
Assembly
Bonsai.Design.Visualizers.dll

Provides a dynamic graph control with a built-in color cycle palette.

public class GraphControl : ZedGraphControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Inheritance
GraphControl
Implements
Inherited Members
ZedGraphControl.SelectModifierKeys
ZedGraphControl.IsScrollY2

Constructors

GraphControl()

Initializes a new instance of the GraphControl class.

Properties

AutoScaleAxis

Gets or sets a value indicating whether to recalculate the axis range automatically when redrawing the graph.

MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Methods

GetColor(int)

Returns the color in the color cycle at the specified index.

GetNextColor()

Returns the next color in the color cycle, and increments the color index.

GetNormalizedRectangle(RectangleF, Point, Point)

Computes a rectangle defined by the specified points which is also contained inside the pane boundaries.

OnHandleDestroyed(EventArgs)

Raises the HandleDestroyed event.

OnPaint(PaintEventArgs)

Called by the system to update the control on-screen

ResetColorCycle()

Resets the color cycle to the first color in the palette.

SetLayout(int, int)

Sets the number of rows and columns in the layout explicitly for graphs with multiple panes.

SetLayout(PaneLayout)

Sets the auto layout strategy for graphs with multiple panes.

UpdateRubberBand(Rectangle, Rectangle)

Updates the state of the rubber band selection overlay.