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

A plot element that uses an Action to draw its contents. More...

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

Public Member Functions

 PlotElement (ICoordinateSystem< T > coordinateSystem, Action< Graphics, ICoordinateSystem< T > > plotAction)
 Create a new PlotElement<T> using the specified coordinate system and plot action. 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

Action< Graphics, ICoordinateSystem< T > > PlotAction [get, set]
 The action that is invoked when the plot element needs to be drawn. More...
 
ICoordinateSystem< T > CoordinateSystem [get, set]
 The coordinate system used to transform the points from data space to plot space. 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 uses an Action to draw its contents.

Template Parameters
TThe type of data to plot (e.g. double[]).

Definition at line 109 of file Plot.cs.

Constructor & Destructor Documentation

◆ PlotElement()

VectSharp.Plots.PlotElement< T >.PlotElement ( ICoordinateSystem< T >  coordinateSystem,
Action< Graphics, ICoordinateSystem< T > >  plotAction 
)

Create a new PlotElement<T> using the specified coordinate system and plot action.

Parameters
coordinateSystemThe coordinate system used to transform the points from data space to plot space.
plotActionThe action that is invoked when the plot element needs to be drawn.

Definition at line 127 of file Plot.cs.

Member Function Documentation

◆ Plot()

void VectSharp.Plots.PlotElement< 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 134 of file Plot.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 119 of file Plot.cs.

◆ PlotAction

Action<Graphics, ICoordinateSystem<T> > VectSharp.Plots.PlotElement< T >.PlotAction
getset

The action that is invoked when the plot element needs to be drawn.

Definition at line 114 of file Plot.cs.


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