Inheritance diagram for NPlot::Bitmap::PlotSurface2D:
Public Member Functions | |
PlotSurface2D (int width, int height) | |
Constructor. | |
PlotSurface2D (System.Drawing.Bitmap b) | |
Constructor. | |
void | Draw (Graphics g, Rectangle bounds) |
Renders the plot. | |
void | Clear () |
Clears the plot. | |
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. | |
System.IO.MemoryStream | ToStream (System.Drawing.Imaging.ImageFormat imageFormat) |
Renders the bitmap to a MemoryStream. | |
void | Refresh () |
Refreshes (draws) the plot. | |
void | AddAxesConstraint (AxesConstraint c) |
Add an axis constraint to the plot surface. | |
void | Remove (IDrawable p, bool updateAxes) |
Remove a drawable object from the plot surface. | |
Properties | |
string | Title |
The plot surface title. | |
Font | TitleFont |
The plot title font. | |
int | Padding |
The distance in pixels to leave between of the edge of the bounding rectangle supplied to the Draw method, and the markings that make up the plot. | |
Axis | XAxis1 |
The bottom abscissa axis. | |
Axis | YAxis1 |
The left ordinate axis. | |
Axis | XAxis2 |
The top abscissa axis. | |
Axis | YAxis2 |
The right ordinate axis. | |
NPlot.Legend | Legend |
Gets or Sets the legend to use with this plot surface. | |
int | LegendZOrder |
Gets or Sets the legend z-order. | |
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. | |
System.Drawing.Drawing2D.SmoothingMode | SmoothingMode |
Smoothing mode to use when drawing plots. | |
int | Width |
The bitmap width. | |
int | Height |
The bitmap height. | |
System.Drawing.Bitmap | Bitmap |
The bitmap to use as the drawing surface. | |
Color | BackColor |
The bitmap background color outside the bounds of the plot surface. | |
object | backColor_ = null |
NPlot.PlotSurface2D | ps_ |
System.Drawing.Bitmap | b_ |
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. | |
Color | TitleColor |
Sets the title to be drawn using a solid brush of this color. | |
Brush | TitleBrush |
The brush used for drawing the title. | |
ArrayList | Drawables |
Gets an array list containing all drawables currently added to the PlotSurface2D. |
Definition at line 67 of file Bitmap.PlotSurface2D.cs.
|
Constructor.
Definition at line 75 of file Bitmap.PlotSurface2D.cs. References b_, PlotSurface2D(), and ps_. Referenced by PlotSurface2D(). |
|
Constructor.
Definition at line 85 of file Bitmap.PlotSurface2D.cs. References b_, PlotSurface2D(), and ps_. |
|
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 155 of file Bitmap.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 141 of file Bitmap.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 130 of file Bitmap.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 117 of file Bitmap.PlotSurface2D.cs. Referenced by Add(). |
|
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 446 of file Bitmap.PlotSurface2D.cs. References AddAxesConstraint(), and ps_. Referenced by AddAxesConstraint(). |
|
Clears the plot.
Implements NPlot::IPlotSurface2D. Definition at line 106 of file Bitmap.PlotSurface2D.cs. Referenced by Clear(). |
|
Renders the plot.
Definition at line 97 of file Bitmap.PlotSurface2D.cs. Referenced by Draw(), Refresh(), and ToStream(). |
|
Refreshes (draws) the plot.
Definition at line 426 of file Bitmap.PlotSurface2D.cs. References b_, backColor_, Draw(), and ps_. |
|
Remove a drawable object from the plot surface.
Implements NPlot::IPlotSurface2D. Definition at line 522 of file Bitmap.PlotSurface2D.cs. Referenced by Remove(). |
|
Renders the bitmap to a MemoryStream. Useful for returning the bitmap from an ASP.NET page.
Definition at line 385 of file Bitmap.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 478 of file Bitmap.PlotSurface2D.cs. |
|
Whether or not the title will be scaled according to size of the plot surface.
Implements NPlot::IPlotSurface2D. Definition at line 457 of file Bitmap.PlotSurface2D.cs. |
|
Definition at line 438 of file Bitmap.PlotSurface2D.cs. Referenced by PlotSurface2D(), Refresh(), and ToStream(). |
|
The bitmap background color outside the bounds of the plot surface.
Definition at line 414 of file Bitmap.PlotSurface2D.cs. |
|
Definition at line 420 of file Bitmap.PlotSurface2D.cs. Referenced by Refresh(). |
|
The bitmap to use as the drawing surface.
Definition at line 398 of file Bitmap.PlotSurface2D.cs. Referenced by ToStream(). |
|
Gets an array list containing all drawables currently added to the PlotSurface2D.
Implements NPlot::IPlotSurface2D. Definition at line 532 of file Bitmap.PlotSurface2D.cs. |
|
The bitmap height.
Definition at line 372 of file Bitmap.PlotSurface2D.cs. |
|
Gets or Sets the legend to use with this plot surface.
Implements NPlot::IPlotSurface2D. Definition at line 278 of file Bitmap.PlotSurface2D.cs. |
|
Gets or Sets the legend z-order.
Implements NPlot::IPlotSurface2D. Definition at line 293 of file Bitmap.PlotSurface2D.cs. |
|
The distance in pixels to leave between of the edge of the bounding rectangle supplied to the Draw method, and the markings that make up the plot.
Implements NPlot::IPlotSurface2D. Definition at line 198 of file Bitmap.PlotSurface2D.cs. |
|
A Rectangle brush used to paint the plot background. Mutually exclusive with PlotBackColor and PlotBackBrush Implements NPlot::IPlotSurface2D. Definition at line 332 of file Bitmap.PlotSurface2D.cs. |
|
A color used to paint the plot background. Mutually exclusive with PlotBackImage and PlotBackBrush Implements NPlot::IPlotSurface2D. Definition at line 308 of file Bitmap.PlotSurface2D.cs. |
|
An imaged used to paint the plot background. Mutually exclusive with PlotBackColor and PlotBackBrush Implements NPlot::IPlotSurface2D. Definition at line 320 of file Bitmap.PlotSurface2D.cs. |
|
Definition at line 437 of file Bitmap.PlotSurface2D.cs. Referenced by Add(), AddAxesConstraint(), Clear(), Draw(), PlotSurface2D(), Refresh(), Remove(), and ToStream(). |
|
Smoothing mode to use when drawing plots.
Implements NPlot::IPlotSurface2D. Definition at line 344 of file Bitmap.PlotSurface2D.cs. |
|
The plot surface title.
Implements NPlot::IPlotSurface2D. Definition at line 165 of file Bitmap.PlotSurface2D.cs. |
|
The brush used for drawing the title.
Implements NPlot::IPlotSurface2D. Definition at line 506 of file Bitmap.PlotSurface2D.cs. |
|
Sets the title to be drawn using a solid brush of this color.
Implements NPlot::IPlotSurface2D. Definition at line 494 of file Bitmap.PlotSurface2D.cs. |
|
The plot title font.
Implements NPlot::IPlotSurface2D. Definition at line 181 of file Bitmap.PlotSurface2D.cs. |
|
The bitmap width.
Definition at line 360 of file Bitmap.PlotSurface2D.cs. |
|
The bottom abscissa axis.
Implements NPlot::IPlotSurface2D. Definition at line 214 of file Bitmap.PlotSurface2D.cs. |
|
The top abscissa axis.
Implements NPlot::IPlotSurface2D. Definition at line 246 of file Bitmap.PlotSurface2D.cs. |
|
The left ordinate axis.
Implements NPlot::IPlotSurface2D. Definition at line 230 of file Bitmap.PlotSurface2D.cs. |
|
The right ordinate axis.
Implements NPlot::IPlotSurface2D. Definition at line 262 of file Bitmap.PlotSurface2D.cs. |