FastBandRenderableSeries

StockSharp.Xaml.Charting.Visuals.RenderableSeries

A raster RenderableSeries type which displays two lines and shaded bands between them, where band-colors depend on whether one line is greater than the other For usage, bind to an XyyDataSeries and set the SeriesColor, Series1Color, BandUpColor and BandDownColor properties

Inherits: BaseRenderableSeries

Constructors

FastBandRenderableSeries
public FastBandRenderableSeries()
fastBandRenderableSeries = FastBandRenderableSeries()

Initializes a new instance of the FastBandRenderableSeries class.

Properties

BandDownColor
public Color BandDownColor { get; set; }
value = fastBandRenderableSeries.BandDownColor
fastBandRenderableSeries.BandDownColor = value

Gets or sets the Color of the shaded area when Y1 is less than Y0

BandUpColor
public Color BandUpColor { get; set; }
value = fastBandRenderableSeries.BandUpColor
fastBandRenderableSeries.BandUpColor = value

Gets or sets the Color of the shaded area when Y1 is greater than Y0

IsDigitalLine
public bool IsDigitalLine { get; set; }
value = fastBandRenderableSeries.IsDigitalLine
fastBandRenderableSeries.IsDigitalLine = value

Gets or sets a value indicating whether this line series is a digital (step) line

RolloverMarker1
public FrameworkElement RolloverMarker1 { get; private set; }
value = fastBandRenderableSeries.RolloverMarker1
fastBandRenderableSeries.RolloverMarker1 = value

Gets or sets the RolloverMarker for one of the series

Series0StrokeDashArray
public double[] Series0StrokeDashArray { get; set; }
value = fastBandRenderableSeries.Series0StrokeDashArray
fastBandRenderableSeries.Series0StrokeDashArray = value

Gets or sets a StrokeDashArray property, used to define a dashed line. See the MSDN Documentation for StrokeDashArray as this property attempts to mimic the same behaviour

Series1Color
public Color Series1Color { get; set; }
value = fastBandRenderableSeries.Series1Color
fastBandRenderableSeries.Series1Color = value

Gets or sets the SeriesColor of the Y1 line. For the Y0 line, use SeriesColor

Series1StrokeDashArray
public double[] Series1StrokeDashArray { get; set; }
value = fastBandRenderableSeries.Series1StrokeDashArray
fastBandRenderableSeries.Series1StrokeDashArray = value

Gets or sets a StrokeDashArray property, used to define a dashed line. See the MSDN Documentation for StrokeDashArray as this property attempts to mimic the same behaviour

Methods

CreateBandPolygons
protected virtual IList<Polygon> CreateBandPolygons(IRenderContext2D renderContext, IRenderPassData renderPassData, IPointSeries yPointSeries, IBrush2D yBrush, IPointSeries y1PointSeries, IBrush2D y1Brush)
result = fastBandRenderableSeries.CreateBandPolygons(renderContext, renderPassData, yPointSeries, yBrush, y1PointSeries, y1Brush)

Creates the band polygons given two IPointSeries inputs

renderContext
The render context.
renderPassData
The render pass data.
yPointSeries
The y point series.
yBrush
The y brush.
y1PointSeries
The y1 point series.
y1Brush
The y1 brush.
CreateRolloverMarker
protected override void CreateRolloverMarker()
fastBandRenderableSeries.CreateRolloverMarker()

Creates a RolloverMarker from the RolloverMarkerTemplate property

GetIsValidForDrawing
protected override bool GetIsValidForDrawing()
result = fastBandRenderableSeries.GetIsValidForDrawing()

Gets a value indicating whether this BaseRenderableSeries is valid for drawing.

InternalDraw
protected override void InternalDraw(IRenderContext2D renderContext, IRenderPassData renderPassData)
fastBandRenderableSeries.InternalDraw(renderContext, renderPassData)

Draws the series using the IRenderContext2D and the IRenderPassData passed in

renderContext
The render context. This is a graphics object which has methods to draw lines, quads and polygons to the screen
renderPassData
The render pass data. Contains a resampled IPointSeries, the IndexRange of points on the screen and the current YAxis and XAxis ICoordinateCalculator to convert data-points to screen points
NearestHitResult
protected override HitTestInfo NearestHitResult(Point rawPoint, double hitTestRadius, SearchMode searchMode, bool considerYCoordinateForDistanceCalculation)
result = fastBandRenderableSeries.NearestHitResult(rawPoint, hitTestRadius, searchMode, considerYCoordinateForDistanceCalculation)

Called by Boolean) to get the nearest (non-interpolated) HitTestInfo to the mouse point

rawPoint
The mouse point
hitTestRadius
The radius (in pixels) to use when determining if the is over a data-point
searchMode
The search mode.
considerYCoordinateForDistanceCalculation
if set to true then perform a true euclidean distance to find the nearest hit result.

Returns: The HitTestInfo result

OnDataSeriesDependencyPropertyChanged
protected override void OnDataSeriesDependencyPropertyChanged(IDataSeries oldDataSeries, IDataSeries newDataSeries)
fastBandRenderableSeries.OnDataSeriesDependencyPropertyChanged(oldDataSeries, newDataSeries)

Called when the DataSeries property changes - i.e. a new IDataSeries has been set

oldDataSeries
The old IDataSeries
newDataSeries
The new IDataSeries

Fields

BandDownColorProperty
public static readonly DependencyProperty BandDownColorProperty
value = FastBandRenderableSeries.BandDownColorProperty

Defines the BandDownColor DependencyProperty

BandUpColorProperty
public static readonly DependencyProperty BandUpColorProperty
value = FastBandRenderableSeries.BandUpColorProperty

Defines the BandUpColor DependencyProperty

IsDigitalLineProperty
public static readonly DependencyProperty IsDigitalLineProperty
value = FastBandRenderableSeries.IsDigitalLineProperty

Defines the IsDigitalLine DependencyProperty

Series0StrokeDashArrayProperty
public static readonly DependencyProperty Series0StrokeDashArrayProperty
value = FastBandRenderableSeries.Series0StrokeDashArrayProperty

Defines the StrokeDashArray DependencyProperty

Series1ColorProperty
public static readonly DependencyProperty Series1ColorProperty
value = FastBandRenderableSeries.Series1ColorProperty

Defines the Series1Color DependencyProperty

Series1StrokeDashArrayProperty
public static readonly DependencyProperty Series1StrokeDashArrayProperty
value = FastBandRenderableSeries.Series1StrokeDashArrayProperty

Defines the StrokeDashArray DependencyProperty