NPlot::LinePlot Class Reference

Encapsulates functionality for plotting data as a line chart. More...

Inheritance diagram for NPlot::LinePlot:

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

Public Member Functions

 LinePlot ()
 Default constructor.
 LinePlot (object dataSource)
 Constructor.
 LinePlot (object ordinateData, object abscissaData)
 Constructor.
void DrawLineOrShadow (Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis, bool drawShadow)
 Draws the line plot on a GDI+ surface against the provided x and y axes.
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.

Properties

bool Shadow
 If true, draw a shadow under the line.
bool shadow_ = false
Color ShadowColor
 Color of line shadow if drawn.
Color shadowColor_ = Color.FromArgb(100,100,100)
Point ShadowOffset
 Offset of shadow line from primary line.
Point shadowOffset_ = new Point( 1, 1 )
System.Drawing.Pen Pen
 The pen used to draw the plot.
System.Drawing.Pen pen_ = new Pen(Color.Black)
System.Drawing.Color Color
 The color of the pen used to draw lines in this plot.

Detailed Description

Encapsulates functionality for plotting data as a line chart.

Definition at line 62 of file LinePlot.cs.


Constructor & Destructor Documentation

NPlot::LinePlot::LinePlot  )  [inline]
 

Default constructor.

Definition at line 68 of file LinePlot.cs.

NPlot::LinePlot::LinePlot object  dataSource  )  [inline]
 

Constructor.

Parameters:
dataSource The data source to associate with this plot

Definition at line 77 of file LinePlot.cs.

NPlot::LinePlot::LinePlot object  ordinateData,
object  abscissaData
[inline]
 

Constructor.

Parameters:
ordinateData the ordinate data to associate with this plot.
abscissaData the abscissa data to associate with this plot.

Definition at line 88 of file LinePlot.cs.


Member Function Documentation

void NPlot::LinePlot::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 190 of file LinePlot.cs.

References shadow_.

virtual void NPlot::LinePlot::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 283 of file LinePlot.cs.

References pen_.

void NPlot::LinePlot::DrawLineOrShadow Graphics  g,
PhysicalAxis  xAxis,
PhysicalAxis  yAxis,
bool  drawShadow
[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.
drawShadow If true draw the shadow for the line. If false, draw line.

Definition at line 102 of file LinePlot.cs.

References NPlot::BaseSequencePlot::AbscissaData, NPlot::SequenceAdapter::Count, NPlot::ISequencePlot::DataMember, NPlot::ISequencePlot::DataSource, NPlot::BaseSequencePlot::OrdinateData, Pen, ShadowOffset, and NPlot::ITransform2D::Transform().

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

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

Returns:
A suitable x-axis.

Implements NPlot::IPlot.

Definition at line 205 of file LinePlot.cs.

References NPlot::BaseSequencePlot::AbscissaData, NPlot::ISequencePlot::DataMember, NPlot::ISequencePlot::DataSource, NPlot::BaseSequencePlot::OrdinateData, and NPlot::SequenceAdapter::SuggestXAxis().

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

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

Returns:
A suitable y-axis.

Implements NPlot::IPlot.

Definition at line 218 of file LinePlot.cs.

References NPlot::BaseSequencePlot::AbscissaData, NPlot::ISequencePlot::DataMember, NPlot::ISequencePlot::DataSource, NPlot::BaseSequencePlot::OrdinateData, and NPlot::SequenceAdapter::SuggestYAxis().


Property Documentation

System.Drawing.Color NPlot::LinePlot::Color [get, set]
 

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

Definition at line 311 of file LinePlot.cs.

System.Drawing.Pen NPlot::LinePlot::Pen [get, set]
 

The pen used to draw the plot.

Definition at line 294 of file LinePlot.cs.

Referenced by DrawLineOrShadow().

System.Drawing.Pen NPlot::LinePlot::pen_ = new Pen(Color.Black) [private]
 

Definition at line 304 of file LinePlot.cs.

Referenced by DrawInLegend().

bool NPlot::LinePlot::Shadow [get, set]
 

If true, draw a shadow under the line.

Definition at line 231 of file LinePlot.cs.

bool NPlot::LinePlot::shadow_ = false [private]
 

Definition at line 241 of file LinePlot.cs.

Referenced by Draw().

Color NPlot::LinePlot::ShadowColor [get, set]
 

Color of line shadow if drawn.

Use Shadow method to turn shadow on and off.

Definition at line 248 of file LinePlot.cs.

Color NPlot::LinePlot::shadowColor_ = Color.FromArgb(100,100,100) [private]
 

Definition at line 258 of file LinePlot.cs.

Point NPlot::LinePlot::ShadowOffset [get, set]
 

Offset of shadow line from primary line.

Definition at line 265 of file LinePlot.cs.

Referenced by DrawLineOrShadow().

Point NPlot::LinePlot::shadowOffset_ = new Point( 1, 1 ) [private]
 

Definition at line 275 of file LinePlot.cs.


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