Class SeriesView<TSeries, TSample>
Denotes a view that visualizes series data in a chart
Inheritance
System.Object
SeriesView<TSeries, TSample>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Azos.WinForms.dll
public abstract class SeriesView<TSeries, TSample> : SeriesView, INamed, IOrdered where TSeries : TimeSeries where TSample : class
Type Parameters
Name |
Description |
TSeries |
|
TSample |
|
Constructors
Declaration
protected SeriesView(string name, int order, string paneName = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Int32 |
order |
|
System.String |
paneName |
|
Properties
Declaration
protected virtual VScaleZoomAlign VScaleZoomAlignment { get; }
Property Value
Methods
Builds elements that render the data by adding drawable elements to the chart.
Returns how many samples could fit
Declaration
public override sealed int BuildElements(TimeSeriesChart chart, PlotPane pane, TimeSeries series, int maxSampleWidth)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
protected void CalcMinMaxScale(TimeSeries series, IEnumerable<TSample> data, out float minScale, out float maxScale)
Parameters
Type |
Name |
Description |
TimeSeries |
series |
|
System.Collections.Generic.IEnumerable<TSample> |
data |
|
System.Single |
minScale |
|
System.Single |
maxScale |
|
Declaration
protected abstract void DoCalcMinMaxScale(IEnumerable<TSample> data, out float minScale, out float maxScale)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TSample> |
data |
|
System.Single |
minScale |
|
System.Single |
maxScale |
|
Declaration
protected IEnumerable<TSample> GetDataPerScroll(TimeSeriesChart chart, TSeries cdata)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<TSample> |
|
Declaration
protected abstract Element MakeSampleElement(TimeSeriesChart chart, PlotPane pane, TSample sample, int x, float minScale, float maxScale)
Parameters
Type |
Name |
Description |
TimeSeriesChart |
chart |
|
PlotPane |
pane |
|
TSample |
sample |
|
System.Int32 |
x |
|
System.Single |
minScale |
|
System.Single |
maxScale |
|
Returns
Declaration
protected virtual Element MakeSeriesElement(TimeSeriesChart chart, PlotPane pane, IEnumerable<TSample> data, int xStart, float minScale, float maxScale, int maxSampleWidth, out int fitSamplesCount)
Parameters
Type |
Name |
Description |
TimeSeriesChart |
chart |
|
PlotPane |
pane |
|
System.Collections.Generic.IEnumerable<TSample> |
data |
|
System.Int32 |
xStart |
|
System.Single |
minScale |
|
System.Single |
maxScale |
|
System.Int32 |
maxSampleWidth |
|
System.Int32 |
fitSamplesCount |
|
Returns
Declaration
protected virtual Element MakeYLevelElement(TimeSeriesChart chart, PlotPane pane, TimeSeries.YLevel level, float minScale, float maxScale)
Parameters
Returns
Implements
Extension Methods