VectSharp 2.6.1
A light library for C# vector graphics
All Classes Namespaces Functions Variables Enumerations Properties Events Pages
VectSharp.Plots.DataLine< T > Class Template Reference

A plot element that draws a line passing through a set of points. More...

Inheritance diagram for VectSharp.Plots.DataLine< T >:

Public Member Functions

 DataLine (IEnumerable< T > data, ICoordinateSystem< T > coordinateSystem)
 Create a new instance of the DataLine<T> class. More...
 
void Plot (Graphics target)
 Draw the plot element on the specified target &#160;Graphics.
Parameters
targetThe Graphics on which to draw.
More...
 
void Plot (Graphics target)
 Draw the plot element on the specified target &#160;Graphics. More...
 

Properties

IEnumerable< T > Data [get, set]
 The data points through which the line will pass. More...
 
bool Smooth [get, set]
 If this is false, straight line segments are used to join the data points. If this is true, a smooth spline passing through all of them is used instead. More...
 
ICoordinateSystem< T > CoordinateSystem [get, set]
 The coordinate system used to transform the points from data space to plot space. More...
 
PlotElementPresentationAttributes PresentationAttributes = new PlotElementPresentationAttributes() [get, set]
 Presentation attributes determining the appearance of the line. More...
 
string Tag [get, set]
 A tag to identify the labels in the plot. More...
 
- Properties inherited from VectSharp.Plots.IPlotElement
ICoordinateSystem CoordinateSystem [get]
 The coordinate system used to transform the points from data space to plot space. More...
 

Detailed Description

A plot element that draws a line passing through a set of points.

Template Parameters
TThe kind of data describing the data points (generally, IReadOnlyList<double>).

Definition at line 515 of file DataPoints.cs.

Constructor & Destructor Documentation

◆ DataLine()

VectSharp.Plots.DataLine< T >.DataLine ( IEnumerable< T >  data,
ICoordinateSystem< T >  coordinateSystem 
)

Create a new instance of the DataLine<T> class.

Parameters
dataThe data points through which the line will pass.
coordinateSystemThe coordinate system used to transform the points from data space to plot space.

Definition at line 549 of file DataPoints.cs.

Member Function Documentation

◆ Plot()

void VectSharp.Plots.DataLine< T >.Plot ( Graphics  target)

Draw the plot element on the specified target &#160;Graphics.

Parameters
targetThe Graphics on which to draw.

Implements VectSharp.Plots.IPlotElement.

Definition at line 556 of file DataPoints.cs.

Property Documentation

◆ CoordinateSystem

The coordinate system used to transform the points from data space to plot space.

Implements VectSharp.Plots.IPlotElement.

Definition at line 531 of file DataPoints.cs.

◆ Data

IEnumerable<T> VectSharp.Plots.DataLine< T >.Data
getset

The data points through which the line will pass.

Definition at line 520 of file DataPoints.cs.

◆ PresentationAttributes

Presentation attributes determining the appearance of the line.

Definition at line 537 of file DataPoints.cs.

◆ Smooth

bool VectSharp.Plots.DataLine< T >.Smooth
getset

If this is false, straight line segments are used to join the data points. If this is true, a smooth spline passing through all of them is used instead.

Definition at line 526 of file DataPoints.cs.

◆ Tag

string VectSharp.Plots.DataLine< T >.Tag
getset

A tag to identify the labels in the plot.

Definition at line 542 of file DataPoints.cs.


The documentation for this class was generated from the following file: