BaseColumnRenderableSeries
An abstract base class which factors out many properties from the and StackedColumnRenderableSeries types.
Inherits: BaseRenderableSeries
Constructors
BaseColumnRenderableSeries()
Initializes a new instance of the BaseColumnRenderableSeries class.
Properties
DataPointWidth : double
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 : Brush
Gets or sets the Fill Brush for columns. The column outline is specified by SeriesColor
FillBrushMappingMode : TextureMappingMode
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 : Color
Gets or sets the Fill Color for columns. The column outline is specified by SeriesColor
UseUniformWidth : bool
Gets or sets the DataPointWidth, a value between 0.0 and 1.0 which defines the fraction of available space each column should occupy
Methods
GetColumnCenterTopAndBottom(int, IRenderPassData, int, double, double, double) : bool
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(IPointSeries, IRenderPassData) : double
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(Point, double, bool) : HitTestInfo
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(IRenderContext2D, IRenderPassData)
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 : DependencyProperty
Defines the UniformWidth DependencyProperty
FillBrushMappingModeProperty : DependencyProperty
Defines the FillBrushMappingMode DependencyProperty
FillBrushProperty : DependencyProperty
Defines the FillBrush DependencyProperty
FillColorProperty : DependencyProperty
Defines the FillColor DependencyProperty
UniformWidthProperty : DependencyProperty
Defines the DataPointWidth DependencyProperty
_minColumnWidth : double
Minimum column width, used when UseUniformWidth is set
_precalculatedPoints : double[]
contains precalculated resampled X and Y coordinated for bars, also column widths [columnCenterX][Y1][Y2=zeroLine][width].....