VectSharp 2.6.1
A light library for C# vector graphics
All Classes Namespaces Functions Variables Enumerations Properties Events Pages
VectSharp.Plots.ContinuousAxisTicks Class Reference

A plot element that draws equally spaced ticks on an axis. More...

Inheritance diagram for VectSharp.Plots.ContinuousAxisTicks:

Public Member Functions

 ContinuousAxisTicks (IReadOnlyList< double > startPoint, IReadOnlyList< double > endPoint, IContinuousCoordinateSystem coordinateSystem)
 Creates a new ContinuousAxisTicks instance. 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

IReadOnlyList< double > StartPoint [get, set]
 The starting point of the axis, expressed in data space coordinates. More...
 
IReadOnlyList< double > EndPoint [get, set]
 The ending point of the axis, expressed in data space coordinates. More...
 
double IntervalCount = 10 [get, set]
 The number of intervals between ticks. Note that the number of ticks will be one greater than this. More...
 
Func< int, double > SizeAbove = i => i % 2 == 0 ? 3 : 2 [get, set]
 The size of the ticks "above" the axis. What "above" means depends on the orientation of the axis. This should be set to a function accepting an int argument representing the index of the tick, and return a double representing the size of the tick in plot coordinates. More...
 
Func< int, double > SizeBelow = i => i % 2 == 0 ? 3 : 2 [get, set]
 The size of the ticks "below" the axis. What "below" means depends on the orientation of the axis. This should be set to a function accepting an int argument representing the index of the tick, and return a double representing the size of the tick in plot coordinates. More...
 
IContinuousCoordinateSystem 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 ticks. More...
 
string Tag [get, set]
 A tag to identify the ticks 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 equally spaced ticks on an axis.

Definition at line 167 of file Axes.cs.

Constructor & Destructor Documentation

◆ ContinuousAxisTicks()

VectSharp.Plots.ContinuousAxisTicks.ContinuousAxisTicks ( IReadOnlyList< double >  startPoint,
IReadOnlyList< double >  endPoint,
IContinuousCoordinateSystem  coordinateSystem 
)

Creates a new ContinuousAxisTicks instance.

Parameters
startPointThe starting point of the axis, expressed in data space coordinates.
endPointThe ending point of the axis, expressed in data space coordinates.
coordinateSystemThe coordinate system used to transform the points from data space to plot space.

Definition at line 220 of file Axes.cs.

Member Function Documentation

◆ Plot()

void VectSharp.Plots.ContinuousAxisTicks.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 228 of file Axes.cs.

Property Documentation

◆ CoordinateSystem

IContinuousCoordinateSystem VectSharp.Plots.ContinuousAxisTicks.CoordinateSystem
getset

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

Implements VectSharp.Plots.IPlotElement.

Definition at line 201 of file Axes.cs.

◆ EndPoint

IReadOnlyList<double> VectSharp.Plots.ContinuousAxisTicks.EndPoint
getset

The ending point of the axis, expressed in data space coordinates.

Definition at line 177 of file Axes.cs.

◆ IntervalCount

double VectSharp.Plots.ContinuousAxisTicks.IntervalCount = 10
getset

The number of intervals between ticks. Note that the number of ticks will be one greater than this.

Definition at line 182 of file Axes.cs.

◆ PresentationAttributes

PlotElementPresentationAttributes VectSharp.Plots.ContinuousAxisTicks.PresentationAttributes = new PlotElementPresentationAttributes()
getset

Presentation attributes determining the appearance of the ticks.

Definition at line 207 of file Axes.cs.

◆ SizeAbove

Func<int, double> VectSharp.Plots.ContinuousAxisTicks.SizeAbove = i => i % 2 == 0 ? 3 : 2
getset

The size of the ticks "above" the axis. What "above" means depends on the orientation of the axis. This should be set to a function accepting an int argument representing the index of the tick, and return a double representing the size of the tick in plot coordinates.

Definition at line 189 of file Axes.cs.

◆ SizeBelow

Func<int, double> VectSharp.Plots.ContinuousAxisTicks.SizeBelow = i => i % 2 == 0 ? 3 : 2
getset

The size of the ticks "below" the axis. What "below" means depends on the orientation of the axis. This should be set to a function accepting an int argument representing the index of the tick, and return a double representing the size of the tick in plot coordinates.

Definition at line 196 of file Axes.cs.

◆ StartPoint

IReadOnlyList<double> VectSharp.Plots.ContinuousAxisTicks.StartPoint
getset

The starting point of the axis, expressed in data space coordinates.

Definition at line 172 of file Axes.cs.

◆ Tag

string VectSharp.Plots.ContinuousAxisTicks.Tag
getset

A tag to identify the ticks in the plot.

Definition at line 212 of file Axes.cs.


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