BaseColumnRenderableSeries
An abstract base class which factors out many properties from the and StackedColumnRenderableSeries types.
Inherits: BaseRenderableSeries
Constructors
protected BaseColumnRenderableSeries()
baseColumnRenderableSeries = BaseColumnRenderableSeries()
Initializes a new instance of the BaseColumnRenderableSeries class.
Properties
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
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
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
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
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
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
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
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
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
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
public static readonly DependencyProperty DataPointWidthProperty
value = BaseColumnRenderableSeries.DataPointWidthProperty
Defines the UniformWidth DependencyProperty
public static readonly DependencyProperty FillBrushMappingModeProperty
value = BaseColumnRenderableSeries.FillBrushMappingModeProperty
Defines the FillBrushMappingMode DependencyProperty
public static readonly DependencyProperty FillBrushProperty
value = BaseColumnRenderableSeries.FillBrushProperty
Defines the FillBrush DependencyProperty
public static readonly DependencyProperty FillColorProperty
value = BaseColumnRenderableSeries.FillColorProperty
Defines the FillColor DependencyProperty
public static readonly DependencyProperty UniformWidthProperty
value = BaseColumnRenderableSeries.UniformWidthProperty
Defines the DataPointWidth DependencyProperty
protected double _minColumnWidth
value = baseColumnRenderableSeries._minColumnWidth
Minimum column width, used when UseUniformWidth is set
private double[] _precalculatedPoints
value = baseColumnRenderableSeries._precalculatedPoints
contains precalculated resampled X and Y coordinated for bars, also column widths [columnCenterX][Y1][Y2=zeroLine][width].....