BaseColumnRenderableSeries

StockSharp.Xaml.Charting.Visuals.RenderableSeries

An abstract base class which factors out many properties from the and StackedColumnRenderableSeries types.

Inherits: BaseRenderableSeries

Constructors

BaseColumnRenderableSeries
protected BaseColumnRenderableSeries()
baseColumnRenderableSeries = BaseColumnRenderableSeries()

Initializes a new instance of the BaseColumnRenderableSeries class.

Properties

DataPointWidth
public virtual double DataPointWidth { get; set; }
value = baseColumnRenderableSeries.DataPointWidth
baseColumnRenderableSeries.DataPointWidth = value

Gets or sets the DataPointWidth, a value between 0.0 and 1.0 which defines the fraction of available space each column should occupy

FillBrush
public Brush FillBrush { get; set; }
value = baseColumnRenderableSeries.FillBrush
baseColumnRenderableSeries.FillBrush = value

Gets or sets the Fill Brush for columns. The column outline is specified by SeriesColor

FillBrushMappingMode
public TextureMappingMode FillBrushMappingMode { get; set; }
value = baseColumnRenderableSeries.FillBrushMappingMode
baseColumnRenderableSeries.FillBrushMappingMode = value

Gets or sets a TextureMappingMode which defines how columns are filled when a gradient FillBrush is used. If PerScreen, then a single texture is shared across multiple columns If PerPrimitive, then a texture is created and scaled per-column fill area

FillColor
public Color FillColor { get; set; }
value = baseColumnRenderableSeries.FillColor
baseColumnRenderableSeries.FillColor = value

Gets or sets the Fill Color for columns. The column outline is specified by SeriesColor

UseUniformWidth
public bool UseUniformWidth { get; set; }
value = baseColumnRenderableSeries.UseUniformWidth
baseColumnRenderableSeries.UseUniformWidth = value

Gets or sets the DataPointWidth, a value between 0.0 and 1.0 which defines the fraction of available space each column should occupy

ZeroLineY
public double ZeroLineY { get; set; }
value = baseColumnRenderableSeries.ZeroLineY
baseColumnRenderableSeries.ZeroLineY = value

Gets or sets the value which determines the zero line in Y direction. Used to set the bottom of an area

Methods

GetColumnCenterTopAndBottom
protected virtual bool GetColumnCenterTopAndBottom(int dataPointIndex, IRenderPassData renderPassData, int zeroY, double xCenter, double yTop, double yBottom)
result = baseColumnRenderableSeries.GetColumnCenterTopAndBottom(dataPointIndex, renderPassData, zeroY, xCenter, yTop, yBottom)

When overrided in a derived class, returns the extents of a column as pixel coordinates

dataPointIndex
The index to the IPointSeries for this column
renderPassData
The IRenderPassData valid for the current render pass
zeroY
The pixel coordinate of zero in the Y-direction
xCenter
[out] The X-Axis pixel coordinate
yTop
[out] The Left-edge Y-Axis pixel coordinate
yBottom
[out] The Right-edge Y-Axis pixel coordinate
GetColumnWidth
protected virtual double GetColumnWidth(IPointSeries points, IRenderPassData renderPassData)
result = baseColumnRenderableSeries.GetColumnWidth(points, renderPassData)

When overriden in a derived class, computes the width of the columns, which depends on the input data, any spacing and the current viewport dimensions

points
The IPointSeries containing resampled data to render
renderPassData
The IRenderPassData containing information about the current render pass

Returns: The width of the column

HitTest
public override HitTestInfo HitTest(Point rawPoint, double hitTestRadius, bool interpolate)
result = baseColumnRenderableSeries.HitTest(rawPoint, hitTestRadius, interpolate)

Performs a hit-test at the specific mouse point (X,Y coordinate on the parent UltrachartSurface), returning a HitTestInfo struct with the results

rawPoint
The mouse point on the parent UltrachartSurface
hitTestRadius
The radius in pixels to determine whether a mouse is over a data-point
interpolate
If true, use interpolation to perform a hit-test between data-points, or on the area if a , or

Returns: A HitTestInfo struct with the results

InternalDraw
protected override void InternalDraw(IRenderContext2D renderContext, IRenderPassData renderPassData)
baseColumnRenderableSeries.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

Fields

DataPointWidthProperty
public static readonly DependencyProperty DataPointWidthProperty
value = BaseColumnRenderableSeries.DataPointWidthProperty

Defines the UniformWidth DependencyProperty

FillBrushMappingModeProperty
public static readonly DependencyProperty FillBrushMappingModeProperty
value = BaseColumnRenderableSeries.FillBrushMappingModeProperty

Defines the FillBrushMappingMode DependencyProperty

FillBrushProperty
public static readonly DependencyProperty FillBrushProperty
value = BaseColumnRenderableSeries.FillBrushProperty

Defines the FillBrush DependencyProperty

FillColorProperty
public static readonly DependencyProperty FillColorProperty
value = BaseColumnRenderableSeries.FillColorProperty

Defines the FillColor DependencyProperty

UniformWidthProperty
public static readonly DependencyProperty UniformWidthProperty
value = BaseColumnRenderableSeries.UniformWidthProperty

Defines the DataPointWidth DependencyProperty

_minColumnWidth
protected double _minColumnWidth
value = baseColumnRenderableSeries._minColumnWidth

Minimum column width, used when UseUniformWidth is set

_precalculatedPoints
private double[] _precalculatedPoints
value = baseColumnRenderableSeries._precalculatedPoints

contains precalculated resampled X and Y coordinated for bars, also column widths [columnCenterX][Y1][Y2=zeroLine][width].....