NPlot::BarPlot Class Reference

Draws. More...

Inheritance diagram for NPlot::BarPlot:

NPlot::BasePlot NPlot::IPlot NPlot::IDrawable NPlot::IDrawable List of all members.

Public Member Functions

 BarPlot ()
 Default Constructor.
void Draw (Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis)
 Draws the line plot on a GDI+ surface against the provided x and y axes.
Axis SuggestXAxis ()
 Returns an x-axis that is suitable for drawing this plot.
Axis SuggestYAxis ()
 Returns a y-axis that is suitable for drawing this plot.
virtual void DrawInLegend (Graphics g, Rectangle startEnd)
 Draws a representation of this plot in the legend.
void WriteData (System.Text.StringBuilder sb, RectangleD region, bool onlyInRegion)
 Write data associated with the plot as text.

Properties

object OrdinateDataTop
 Gets or sets the data, or column name for the ordinate [y] axis.
object ordinateDataTop_ = null
object OrdinateDataBottom
 Gets or sets the data, or column name for the ordinate [y] axis.
object ordinateDataBottom_ = null
object AbscissaData
 Gets or sets the data, or column name for the abscissa [x] axis.
object abscissaData_ = null
System.Drawing.Pen BorderPen
 The pen used to draw the plot.
System.Drawing.Pen borderPen_ = new Pen(Color.Black)
System.Drawing.Color BorderColor
 The color of the pen used to draw lines in this plot.
IRectangleBrush FillBrush
 Set/Get the fill brush.
IRectangleBrush rectangleBrush_ = new RectangleBrushes.Solid( Color.LightGray )

Detailed Description

Draws.

Definition at line 61 of file BarPlot.cs.


Constructor & Destructor Documentation

NPlot::BarPlot::BarPlot  )  [inline]
 

Default Constructor.

Definition at line 67 of file BarPlot.cs.


Member Function Documentation

void NPlot::BarPlot::Draw Graphics  g,
PhysicalAxis  xAxis,
PhysicalAxis  yAxis
[inline]
 

Draws the line plot on a GDI+ surface against the provided x and y axes.

Parameters:
g The GDI+ surface on which to draw.
xAxis The X-Axis to draw against.
yAxis The Y-Axis to draw against.

Implements NPlot::IDrawable.

Definition at line 129 of file BarPlot.cs.

References AbscissaData, borderPen_, NPlot::SequenceAdapter::Count, NPlot::BasePlot::DataMember, NPlot::BasePlot::DataSource, NPlot::IRectangleBrush::Get(), OrdinateDataBottom, OrdinateDataTop, rectangleBrush_, and NPlot::ITransform2D::Transform().

virtual void NPlot::BarPlot::DrawInLegend Graphics  g,
Rectangle  startEnd
[inline, virtual]
 

Draws a representation of this plot in the legend.

Parameters:
g The graphics surface on which to draw.
startEnd A rectangle specifying the bounds of the area in the legend set aside for drawing.

Implements NPlot::IPlot.

Definition at line 191 of file BarPlot.cs.

References borderPen_, NPlot::IRectangleBrush::Get(), and rectangleBrush_.

Axis NPlot::BarPlot::SuggestXAxis  )  [inline]
 

Returns an x-axis that is suitable for drawing this plot.

Returns:
A suitable x-axis.

Implements NPlot::IPlot.

Definition at line 158 of file BarPlot.cs.

References AbscissaData, NPlot::BasePlot::DataMember, NPlot::BasePlot::DataSource, OrdinateDataBottom, OrdinateDataTop, and NPlot::SequenceAdapter::SuggestXAxis().

Axis NPlot::BarPlot::SuggestYAxis  )  [inline]
 

Returns a y-axis that is suitable for drawing this plot.

Returns:
A suitable y-axis.

Implements NPlot::IPlot.

Definition at line 174 of file BarPlot.cs.

References AbscissaData, NPlot::BasePlot::DataMember, NPlot::BasePlot::DataSource, OrdinateDataBottom, OrdinateDataTop, and NPlot::SequenceAdapter::SuggestYAxis().

void NPlot::BarPlot::WriteData System.Text.StringBuilder  sb,
RectangleD  region,
bool  onlyInRegion
[inline]
 

Write data associated with the plot as text.

Parameters:
sb the string builder to write to.
region Only write out data in this region if onlyInRegion is true.
onlyInRegion If true, only data in region is written, else all data is written.
TODO: not implemented.

Implements NPlot::IPlot.

Definition at line 266 of file BarPlot.cs.


Property Documentation

object NPlot::BarPlot::AbscissaData [get, set]
 

Gets or sets the data, or column name for the abscissa [x] axis.

Definition at line 110 of file BarPlot.cs.

Referenced by Draw(), SuggestXAxis(), and SuggestYAxis().

object NPlot::BarPlot::abscissaData_ = null [private]
 

Definition at line 120 of file BarPlot.cs.

System.Drawing.Color NPlot::BarPlot::BorderColor [get, set]
 

The color of the pen used to draw lines in this plot.

Definition at line 221 of file BarPlot.cs.

System.Drawing.Pen NPlot::BarPlot::BorderPen [get, set]
 

The pen used to draw the plot.

Definition at line 204 of file BarPlot.cs.

System.Drawing.Pen NPlot::BarPlot::borderPen_ = new Pen(Color.Black) [private]
 

Definition at line 214 of file BarPlot.cs.

Referenced by Draw(), and DrawInLegend().

IRectangleBrush NPlot::BarPlot::FillBrush [get, set]
 

Set/Get the fill brush.

Definition at line 244 of file BarPlot.cs.

object NPlot::BarPlot::OrdinateDataBottom [get, set]
 

Gets or sets the data, or column name for the ordinate [y] axis.

Definition at line 93 of file BarPlot.cs.

Referenced by Draw(), SuggestXAxis(), and SuggestYAxis().

object NPlot::BarPlot::ordinateDataBottom_ = null [private]
 

Definition at line 103 of file BarPlot.cs.

object NPlot::BarPlot::OrdinateDataTop [get, set]
 

Gets or sets the data, or column name for the ordinate [y] axis.

Definition at line 76 of file BarPlot.cs.

Referenced by Draw(), SuggestXAxis(), and SuggestYAxis().

object NPlot::BarPlot::ordinateDataTop_ = null [private]
 

Definition at line 86 of file BarPlot.cs.

IRectangleBrush NPlot::BarPlot::rectangleBrush_ = new RectangleBrushes.Solid( Color.LightGray ) [private]
 

Definition at line 255 of file BarPlot.cs.

Referenced by Draw(), and DrawInLegend().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 01:04:07 2005 for NPlot by  doxygen 1.4.5