Inheritance diagram for NPlot::Windows::PlotSurface2D:
Public Member Functions | |
PlotSurface2D () | |
Default constructor. | |
void | DoPaint (PaintEventArgs pe, int width, int height) |
All functionality of the OnPaint method is provided by this function. | |
void | Draw (Graphics g, Rectangle bounds) |
Draws the plot surface on the supplied graphics surface [not the control surface]. | |
void | Clear () |
Clears the plot and resets to default values. | |
void | Add (IDrawable p) |
Adds a drawable object to the plot surface. | |
void | Add (IDrawable p, NPlot.PlotSurface2D.XAxisPosition xp, NPlot.PlotSurface2D.YAxisPosition yp) |
Adds a drawable object to the plot surface against the specified axes. | |
void | Add (IDrawable p, int zOrder) |
Adds a drawable object to the plot surface. | |
void | Add (IDrawable p, NPlot.PlotSurface2D.XAxisPosition xp, NPlot.PlotSurface2D.YAxisPosition yp, int zOrder) |
Adds a drawable object to the plot surface against the specified axes. | |
void | DoMouseDown (MouseEventArgs e) |
All functionality of the OnMouseDown function is contained here. | |
void | DoMouseWheel (MouseEventArgs e) |
All functionality of the OnMouseWheel function is containd here. | |
void | DoMouseMove (MouseEventArgs e, System.Windows.Forms.Control ctr) |
All functionality of the OnMouseMove function is contained here. | |
void | DoMouseUp (MouseEventArgs e, System.Windows.Forms.Control ctr) |
All functionality of the OnMouseUp function is contained here. | |
void | OriginalDimensions () |
sets axes to be those saved in the cache. | |
void | AddAxesConstraint (AxesConstraint c) |
Add an axis constraint to the plot surface. | |
void | Print (bool preview) |
Print the chart as currently shown by the control. | |
void | CopyToClipboard () |
Coppies the chart currently shown in the control to the clipboard as an image. | |
void | CopyDataToClipboard () |
Coppies data in the current plot surface view window to the clipboard as text. | |
void | Remove (IDrawable p, bool updateAxes) |
Remove a drawable object from the plot surface. | |
void | CacheAxes () |
Remembers the current axes - useful in interactions. | |
void | AddInteraction (Interactions.Interaction i) |
Adds and interaction to the plotsurface that adds functionality that responds to a set of mouse / keyboard events. | |
void | RemoveInteraction (Interactions.Interaction i) |
Remove a previously added interaction. | |
delegate void | InteractionHandler (object sender) |
This is the signature of the function used for InteractionOccurred events. | |
delegate void | PreRefreshHandler (object sender) |
This is the signature of the function used for PreRefresh events. | |
Protected Member Functions | |
override void | OnKeyDown (KeyEventArgs e) |
the key down callback | |
override void | OnKeyUp (KeyEventArgs e) |
The key up callback. | |
override void | OnPaint (PaintEventArgs pe) |
the paint event callback. | |
override void | OnMouseDown (MouseEventArgs e) |
Mouse down event handler. | |
override void | OnMouseWheel (MouseEventArgs e) |
Mouse Wheel event handler. | |
override void | OnMouseMove (MouseEventArgs e) |
MouseMove event handler. | |
override void | OnMouseUp (MouseEventArgs e) |
mouse up event handler. | |
void | OnInteractionOccured (object sender) |
Default function called when plotsurface modifying interaction occured. | |
void | OnPreRefresh (object sender) |
Default function called just before a refresh happens. | |
override void | Dispose (bool disposing) |
Clean up any resources being used. | |
Properties | |
bool | ShowCoordinates |
Flag to display a coordinates in a tooltip. | |
KeyEventArgs | lastKeyEventArgs_ = null |
NPlot.Legend | Legend |
Gets or Sets the legend to use with this plot surface. | |
int | LegendZOrder |
Gets or Sets the legend z-order. | |
bool | AutoScaleTitle |
Whether or not the title will be scaled according to size of the plot surface. | |
bool | AutoScaleAutoGeneratedAxes |
When plots are added to the plot surface, the axes they are attached to are immediately modified to reflect data of the plot. | |
string | Title |
The plot surface title. | |
Font | TitleFont |
The font used to draw the title. | |
int | Padding |
Padding of this width will be left between what is drawn and the control border. | |
Axis | XAxis1 |
The first abscissa axis. | |
Axis | YAxis1 |
The first ordinate axis. | |
Axis | XAxis2 |
The second abscissa axis. | |
Axis | YAxis2 |
The second ordinate axis. | |
PhysicalAxis | PhysicalXAxis1Cache |
The physical XAxis1 that was last drawn. | |
PhysicalAxis | PhysicalYAxis1Cache |
The physical YAxis1 that was last drawn. | |
PhysicalAxis | PhysicalXAxis2Cache |
The physical XAxis2 that was last drawn. | |
PhysicalAxis | PhysicalYAxis2Cache |
The physical YAxis2 that was last drawn. | |
System.Drawing.Color | PlotBackColor |
A color used to paint the plot background. | |
System.Drawing.Bitmap | PlotBackImage |
An imaged used to paint the plot background. | |
IRectangleBrush | PlotBackBrush |
A Rectangle brush used to paint the plot background. | |
Color | TitleColor |
Sets the title to be drawn using a solid brush of this color. | |
Brush | TitleBrush |
The brush used for drawing the title. | |
System.Drawing.Drawing2D.SmoothingMode | SmoothingMode |
Set smoothing mode for drawing plot objects. | |
bool | DateTimeToolTip |
When true, tool tip will display x value as a DateTime. | |
bool | dateTimeToolTip_ = false |
ArrayList | Drawables |
Gets an array list containing all drawables currently added to the PlotSurface2D. | |
NPlot.Windows.PlotSurface2D.PlotContextMenu | RightMenu |
Sets the right context menu. | |
NPlot.Windows.PlotSurface2D.PlotContextMenu | rightMenu_ = null |
static PlotContextMenu | DefaultContextMenu |
Gets an instance of a NPlot.Windows.PlotSurface2D.ContextMenu that is useful in typical situations. | |
NPlot.PlotSurface2D | Inner |
Allows access to the PlotSurface2D. | |
ArrayList | interactions_ = new ArrayList() |
event InteractionHandler | InteractionOccured |
Event is fired when an interaction happens with the plot that causes it to be modified. | |
event PreRefreshHandler | PreRefresh |
Event fired when we are about to paint. | |
System.ComponentModel.IContainer | components |
Private Member Functions | |
void | InitializeComponent () |
Required method for Designer support - do not modify the contents of this method with the code editor. | |
void | drawDesignMode (Graphics g, Rectangle bounds) |
Draw a lightweight representation of us for design mode. | |
void | DrawHorizontalSelection (Point start, Point end, System.Windows.Forms.UserControl ctr) |
void | NPlot_PrintPage (object sender, PrintPageEventArgs ev) |
Private Attributes | |
System.Windows.Forms.ToolTip | coordinates_ |
System.Collections.ArrayList | selectedObjects_ |
NPlot.PlotSurface2D | ps_ |
Axis | xAxis1ZoomCache_ |
Axis | yAxis1ZoomCache_ |
Axis | xAxis2ZoomCache_ |
Axis | yAxis2ZoomCache_ |
Classes | |
class | Interactions |
Encapsulates a number of separate "Interactions". More... | |
class | PlotContextMenu |
Summary description for ContextMenu. More... |
Unfortunately it's not possible to derive from both Control and NPlot.PlotSurface2D.
Definition at line 72 of file Windows.PlotSurface2D.cs.
|
Default constructor.
Definition at line 111 of file Windows.PlotSurface2D.cs. |
|
Adds a drawable object to the plot surface against the specified axes. If the object is an IPlot, the PlotSurface2D axes will also be updated.
Definition at line 310 of file Windows.PlotSurface2D.cs. |
|
Adds a drawable object to the plot surface. If the object is an IPlot, the PlotSurface2D axes will also be updated.
Implements NPlot::IPlotSurface2D. Definition at line 296 of file Windows.PlotSurface2D.cs. |
|
Adds a drawable object to the plot surface against the specified axes. If the object is an IPlot, the PlotSurface2D axes will also be updated.
Definition at line 284 of file Windows.PlotSurface2D.cs. |
|
Adds a drawable object to the plot surface. If the object is an IPlot, the PlotSurface2D axes will also be updated.
Implements NPlot::IPlotSurface2D. Definition at line 271 of file Windows.PlotSurface2D.cs. |
|
Add an axis constraint to the plot surface. Axis constraints can specify relative world-pixel scalings, absolute axis positions etc.
Implements NPlot::IPlotSurface2D. Definition at line 948 of file Windows.PlotSurface2D.cs. |
|
Adds and interaction to the plotsurface that adds functionality that responds to a set of mouse / keyboard events.
Definition at line 2184 of file Windows.PlotSurface2D.cs. |
|
Remembers the current axes - useful in interactions.
Definition at line 1129 of file Windows.PlotSurface2D.cs. |
|
Clears the plot and resets to default values.
Implements NPlot::IPlotSurface2D. Definition at line 255 of file Windows.PlotSurface2D.cs. |
|
Coppies data in the current plot surface view window to the clipboard as text.
Definition at line 1016 of file Windows.PlotSurface2D.cs. References NPlot::Axis::WorldMax, NPlot::Axis::WorldMin, and NPlot::IPlot::WriteData(). |
|
Coppies the chart currently shown in the control to the clipboard as an image.
Definition at line 1002 of file Windows.PlotSurface2D.cs. |
|
Clean up any resources being used.
Definition at line 2611 of file Windows.PlotSurface2D.cs. |
|
All functionality of the OnMouseDown function is contained here. This allows use of the all encompasing PlotSurface.
Implements NPlot::ISurface. Definition at line 748 of file Windows.PlotSurface2D.cs. |
|
All functionality of the OnMouseMove function is contained here. This allows use of the all encompasing PlotSurface.
Implements NPlot::ISurface. Definition at line 787 of file Windows.PlotSurface2D.cs. References NPlot::PlotSurface2D::PhysicalXAxis1Cache, and NPlot::PlotSurface2D::PhysicalYAxis1Cache. |
|
All functionality of the OnMouseUp function is contained here. This allows use of the all encompasing PlotSurface.
Implements NPlot::ISurface. Definition at line 874 of file Windows.PlotSurface2D.cs. |
|
All functionality of the OnMouseWheel function is containd here. This allows use of the all encompasing PlotSurface.
Definition at line 772 of file Windows.PlotSurface2D.cs. |
|
All functionality of the OnPaint method is provided by this function. This allows use of the all encompasing PlotSurface.
Implements NPlot::ISurface. Definition at line 184 of file Windows.PlotSurface2D.cs. |
|
Draws the plot surface on the supplied graphics surface [not the control surface].
Definition at line 228 of file Windows.PlotSurface2D.cs. |
|
Draw a lightweight representation of us for design mode.
Definition at line 245 of file Windows.PlotSurface2D.cs. References NPlot::PlotSurface2D::Title, NPlot::PlotSurface2D::TitleBrush, and NPlot::PlotSurface2D::TitleFont. |
|
Definition at line 923 of file Windows.PlotSurface2D.cs. |
|
Required method for Designer support - do not modify the contents of this method with the code editor. Modified! :-) Definition at line 134 of file Windows.PlotSurface2D.cs. |
|
This is the signature of the function used for InteractionOccurred events. TODO: expand this to include information about the event.
|
|
Definition at line 991 of file Windows.PlotSurface2D.cs. |
|
Default function called when plotsurface modifying interaction occured. Override this, or add method to InteractionOccured event.
Definition at line 2220 of file Windows.PlotSurface2D.cs. |
|
the key down callback
Definition at line 152 of file Windows.PlotSurface2D.cs. |
|
The key up callback.
Definition at line 161 of file Windows.PlotSurface2D.cs. |
|
Mouse down event handler.
Definition at line 736 of file Windows.PlotSurface2D.cs. |
|
MouseMove event handler.
Definition at line 837 of file Windows.PlotSurface2D.cs. |
|
mouse up event handler.
Definition at line 896 of file Windows.PlotSurface2D.cs. |
|
Mouse Wheel event handler.
Definition at line 761 of file Windows.PlotSurface2D.cs. |
|
the paint event callback.
Definition at line 170 of file Windows.PlotSurface2D.cs. |
|
Default function called just before a refresh happens.
Definition at line 2242 of file Windows.PlotSurface2D.cs. |
|
sets axes to be those saved in the cache.
Definition at line 906 of file Windows.PlotSurface2D.cs. |
|
This is the signature of the function used for PreRefresh events.
|
|
Print the chart as currently shown by the control.
Definition at line 958 of file Windows.PlotSurface2D.cs. |
|
Remove a drawable object from the plot surface.
Implements NPlot::IPlotSurface2D. Definition at line 1049 of file Windows.PlotSurface2D.cs. |
|
Remove a previously added interaction.
Definition at line 2194 of file Windows.PlotSurface2D.cs. |
|
Definition at line 75 of file Windows.PlotSurface2D.cs. |
|
Definition at line 78 of file Windows.PlotSurface2D.cs. |
|
Definition at line 77 of file Windows.PlotSurface2D.cs. |
|
Definition at line 80 of file Windows.PlotSurface2D.cs. Referenced by NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotZoomBackMenuItem::OnPopup(). |
|
Definition at line 82 of file Windows.PlotSurface2D.cs. |
|
Definition at line 81 of file Windows.PlotSurface2D.cs. |
|
Definition at line 83 of file Windows.PlotSurface2D.cs. |
|
When plots are added to the plot surface, the axes they are attached to are immediately modified to reflect data of the plot. If AutoScaleAutoGeneratedAxes is true when a plot is added, the axes will be turned in to auto scaling ones if they are not already [tick marks, tick text and label size scaled to size of plot surface]. If false, axes will not be autoscaling. Implements NPlot::IPlotSurface2D. Definition at line 401 of file Windows.PlotSurface2D.cs. |
|
Whether or not the title will be scaled according to size of the plot surface.
Implements NPlot::IPlotSurface2D. Definition at line 371 of file Windows.PlotSurface2D.cs. |
|
Definition at line 2621 of file Windows.PlotSurface2D.cs. |
|
When true, tool tip will display x value as a DateTime. Quick hack - this will probably be changed at some point. Definition at line 855 of file Windows.PlotSurface2D.cs. |
|
Definition at line 865 of file Windows.PlotSurface2D.cs. |
|
Gets an instance of a NPlot.Windows.PlotSurface2D.ContextMenu that is useful in typical situations.
Definition at line 1102 of file Windows.PlotSurface2D.cs. |
|
Gets an array list containing all drawables currently added to the PlotSurface2D.
Implements NPlot::IPlotSurface2D. Definition at line 1063 of file Windows.PlotSurface2D.cs. |
|
Allows access to the PlotSurface2D.
Definition at line 1118 of file Windows.PlotSurface2D.cs. |
|
Event is fired when an interaction happens with the plot that causes it to be modified.
Definition at line 2212 of file Windows.PlotSurface2D.cs. |
|
Definition at line 2176 of file Windows.PlotSurface2D.cs. |
|
Definition at line 147 of file Windows.PlotSurface2D.cs. |
|
Gets or Sets the legend to use with this plot surface.
Implements NPlot::IPlotSurface2D. Definition at line 325 of file Windows.PlotSurface2D.cs. |
|
Gets or Sets the legend z-order.
Implements NPlot::IPlotSurface2D. Definition at line 348 of file Windows.PlotSurface2D.cs. |
|
Padding of this width will be left between what is drawn and the control border.
Implements NPlot::IPlotSurface2D. Definition at line 469 of file Windows.PlotSurface2D.cs. |
|
The physical XAxis1 that was last drawn.
Definition at line 565 of file Windows.PlotSurface2D.cs. |
|
The physical XAxis2 that was last drawn.
Definition at line 595 of file Windows.PlotSurface2D.cs. |
|
The physical YAxis1 that was last drawn.
Definition at line 580 of file Windows.PlotSurface2D.cs. |
|
The physical YAxis2 that was last drawn.
Definition at line 610 of file Windows.PlotSurface2D.cs. |
|
A Rectangle brush used to paint the plot background. Mutually exclusive with PlotBackColor and PlotBackBrush not browsable or bindable because only set method. Implements NPlot::IPlotSurface2D. Definition at line 663 of file Windows.PlotSurface2D.cs. |
|
A color used to paint the plot background. Mutually exclusive with PlotBackImage and PlotBackBrush not browsable or bindable because only set method. Implements NPlot::IPlotSurface2D. Definition at line 629 of file Windows.PlotSurface2D.cs. |
|
An imaged used to paint the plot background. Mutually exclusive with PlotBackColor and PlotBackBrush not browsable or bindable because only set method. Implements NPlot::IPlotSurface2D. Definition at line 646 of file Windows.PlotSurface2D.cs. |
|
Event fired when we are about to paint.
Definition at line 2235 of file Windows.PlotSurface2D.cs. |
|
Sets the right context menu. Custom menus can be designed by overriding NPlot.Windows.PlotSurface2D.ContextMenu. Definition at line 1080 of file Windows.PlotSurface2D.cs. |
|
Definition at line 1094 of file Windows.PlotSurface2D.cs. |
|
Flag to display a coordinates in a tooltip.
Definition at line 96 of file Windows.PlotSurface2D.cs. Referenced by NPlot::Windows::PlotSurface2D::PlotContextMenu::PlotShowCoordinatesMenuItem::OnPopup(). |
|
Set smoothing mode for drawing plot objects.
Implements NPlot::IPlotSurface2D. Definition at line 720 of file Windows.PlotSurface2D.cs. |
|
The plot surface title.
Implements NPlot::IPlotSurface2D. Definition at line 423 of file Windows.PlotSurface2D.cs. |
|
The brush used for drawing the title.
Implements NPlot::IPlotSurface2D. Definition at line 698 of file Windows.PlotSurface2D.cs. |
|
Sets the title to be drawn using a solid brush of this color. not browsable or bindable because only set method. Implements NPlot::IPlotSurface2D. Definition at line 680 of file Windows.PlotSurface2D.cs. |
|
The font used to draw the title.
Implements NPlot::IPlotSurface2D. Definition at line 447 of file Windows.PlotSurface2D.cs. |
|
The first abscissa axis.
Implements NPlot::IPlotSurface2D. Definition at line 489 of file Windows.PlotSurface2D.cs. |
|
The second abscissa axis.
Implements NPlot::IPlotSurface2D. Definition at line 527 of file Windows.PlotSurface2D.cs. |
|
The first ordinate axis.
Implements NPlot::IPlotSurface2D. Definition at line 508 of file Windows.PlotSurface2D.cs. |
|
The second ordinate axis.
Implements NPlot::IPlotSurface2D. Definition at line 546 of file Windows.PlotSurface2D.cs. |