C# Class System.Windows.Forms.DataVisualization.Charting.ChartTypes.FastPointChart

FastPointChart class implements a simplified point chart drawing algorithm which is optimized for the performance.
Inheritance: IChartType
Show file Open project: AngeloCresta/winforms-datavisualization-net5

Private Properties

Property Type Description

Public Methods

Method Description
AddSmartLabelMarkerPositions ( CommonElements common, ChartArea area, Series series, ArrayList list ) : void

Adds markers position to the list. Used to check SmartLabelStyle overlapping.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FastPointChart ( ) : System.Collections

Default constructor

GetImage ( System.Windows.Forms.DataVisualization.Charting.ChartTypes.ChartTypeRegistry registry ) : Image

Gets chart type image.

GetLegendImageStyle ( Series series ) : LegendImageStyle

How to draw series/points in legend: Filled rectangle, Line or Marker

GetYValue ( CommonElements common, ChartArea area, Series series, DataPoint point, int pointIndex, int yValueIndex ) : double

Helper function, which returns the Y value of the location.

Paint ( ChartGraphics graph, CommonElements common, ChartArea area, Series seriesToDraw ) : void

Paint FastPoint Chart.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

DrawMarker ( ChartGraphics graph, DataPoint point, int pointIndex, PointF location, MarkerStyle markerStyle, int markerSize, Brush brush, Pen borderPen ) : void

Draws a marker that represents a data point in FastPoint series.

Method Details

AddSmartLabelMarkerPositions() public method

Adds markers position to the list. Used to check SmartLabelStyle overlapping.
public AddSmartLabelMarkerPositions ( CommonElements common, ChartArea area, Series series, ArrayList list ) : void
common CommonElements Common chart elements.
area ChartArea Chart area.
series Series Series values to be used.
list ArrayList List to add to.
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

DrawMarker() protected method

Draws a marker that represents a data point in FastPoint series.
protected DrawMarker ( ChartGraphics graph, DataPoint point, int pointIndex, PointF location, MarkerStyle markerStyle, int markerSize, Brush brush, Pen borderPen ) : void
graph ChartGraphics Chart graphics used to draw the marker.
point DataPoint Series data point drawn.
pointIndex int Data point index in the series.
location PointF Marker location in pixels.
markerStyle MarkerStyle Marker style.
markerSize int Marker size in pixels.
brush Brush Brush used to fill marker shape.
borderPen Pen Marker border pen.
return void

FastPointChart() public method

Default constructor
public FastPointChart ( ) : System.Collections
return System.Collections

GetImage() public method

Gets chart type image.
public GetImage ( System.Windows.Forms.DataVisualization.Charting.ChartTypes.ChartTypeRegistry registry ) : Image
registry System.Windows.Forms.DataVisualization.Charting.ChartTypes.ChartTypeRegistry Chart types registry object.
return System.Drawing.Image

GetLegendImageStyle() public method

How to draw series/points in legend: Filled rectangle, Line or Marker
public GetLegendImageStyle ( Series series ) : LegendImageStyle
series Series Legend item series.
return LegendImageStyle

GetYValue() public method

Helper function, which returns the Y value of the location.
public GetYValue ( CommonElements common, ChartArea area, Series series, DataPoint point, int pointIndex, int yValueIndex ) : double
common CommonElements Chart common elements.
area ChartArea Chart area the series belongs to.
series Series Sereis of the location.
point DataPoint Point object.
pointIndex int Index of the location.
yValueIndex int Index of the Y value to get.
return double

Paint() public method

Paint FastPoint Chart.
public Paint ( ChartGraphics graph, CommonElements common, ChartArea area, Series seriesToDraw ) : void
graph ChartGraphics The Chart Graphics object.
common CommonElements The Common elements object.
area ChartArea Chart area for this chart.
seriesToDraw Series Chart series to draw.
return void