NPlot::SequenceAdapter Class Reference

This class is responsible for interpreting the various ways you can specify data to plot objects using the DataSource, DataMember, ordinateData and AbscissaData properties. More...

List of all members.

Public Member Functions

 SequenceAdapter (object dataSource, string dataMember, object ordinateData, object abscissaData)
 Constructor.
Axis SuggestXAxis ()
 Returns an x-axis that is suitable for drawing the data.
Axis SuggestYAxis ()
 Returns a y-axis that is suitable for drawing the data.
void WriteData (System.Text.StringBuilder sb, RectangleD region, bool onlyInRegion)
 Writes data out as text.

Properties

int Count
 Returns the number of points.
PointD this [int i]
 Returns the ith point.

Private Attributes

AdapterUtils.IAxisSuggester XAxisSuggester_
AdapterUtils.IAxisSuggester YAxisSuggester_
AdapterUtils.ICounter counter_
AdapterUtils.IDataGetter xDataGetter_
AdapterUtils.IDataGetter yDataGetter_


Detailed Description

This class is responsible for interpreting the various ways you can specify data to plot objects using the DataSource, DataMember, ordinateData and AbscissaData properties.

It is a bridge that provides access to this data via a single interface.

Definition at line 65 of file SequenceAdapter.cs.


Constructor & Destructor Documentation

NPlot::SequenceAdapter::SequenceAdapter object  dataSource,
string  dataMember,
object  ordinateData,
object  abscissaData
[inline]
 

Constructor.

The data source specifiers must be specified here.

Parameters:
dataSource The source containing a list of values to plot.
dataMember The specific data member in a multimember data source to get data from.
ordinateData The source containing a list of values to plot on the ordinate axis, or a the name of the column to use for this data.
abscissaData The source containing a list of values to plot on the abscissa axis, or a the name of the column to use for this data.

Definition at line 80 of file SequenceAdapter.cs.

References counter_.


Member Function Documentation

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

Returns an x-axis that is suitable for drawing the data.

Returns:
A suitable x-axis.

Definition at line 277 of file SequenceAdapter.cs.

Referenced by NPlot::StepPlot::SuggestXAxis(), NPlot::PointPlot::SuggestXAxis(), NPlot::LinePlot::SuggestXAxis(), NPlot::HistogramPlot::SuggestXAxis(), and NPlot::BarPlot::SuggestXAxis().

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

Returns a y-axis that is suitable for drawing the data.

Returns:
A suitable y-axis.

Definition at line 287 of file SequenceAdapter.cs.

References NPlot::Axis::IncreaseRange().

Referenced by NPlot::StepPlot::SuggestYAxis(), NPlot::PointPlot::SuggestYAxis(), NPlot::LinePlot::SuggestYAxis(), NPlot::HistogramPlot::SuggestYAxis(), and NPlot::BarPlot::SuggestYAxis().

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

Writes data out as text.

Parameters:
sb StringBuilder 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.

Definition at line 302 of file SequenceAdapter.cs.

References Count, NPlot::RectangleD::Height, NPlot::RectangleD::Width, NPlot::RectangleD::X, and NPlot::RectangleD::Y.

Referenced by NPlot::BaseSequencePlot::WriteData().


Member Data Documentation

AdapterUtils.ICounter NPlot::SequenceAdapter::counter_ [private]
 

Definition at line 69 of file SequenceAdapter.cs.

Referenced by SequenceAdapter().

AdapterUtils.IAxisSuggester NPlot::SequenceAdapter::XAxisSuggester_ [private]
 

Definition at line 67 of file SequenceAdapter.cs.

AdapterUtils.IDataGetter NPlot::SequenceAdapter::xDataGetter_ [private]
 

Definition at line 70 of file SequenceAdapter.cs.

AdapterUtils.IAxisSuggester NPlot::SequenceAdapter::YAxisSuggester_ [private]
 

Definition at line 68 of file SequenceAdapter.cs.

AdapterUtils.IDataGetter NPlot::SequenceAdapter::yDataGetter_ [private]
 

Definition at line 71 of file SequenceAdapter.cs.


Property Documentation

int NPlot::SequenceAdapter::Count [get]
 

Returns the number of points.

Definition at line 253 of file SequenceAdapter.cs.

Referenced by NPlot::StepPlot::Draw(), NPlot::PointPlot::Draw(), NPlot::LabelPointPlot::Draw(), NPlot::HistogramPlot::Draw(), NPlot::FilledRegion::Draw(), NPlot::BarPlot::Draw(), NPlot::LinePlot::DrawLineOrShadow(), NPlot::HistogramPlot::StackedTo(), NPlot::StepPlot::SuggestXAxis(), NPlot::HistogramPlot::SuggestXAxis(), and WriteData().

PointD NPlot::SequenceAdapter::this[int i] [get]
 

Returns the ith point.

Definition at line 265 of file SequenceAdapter.cs.


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