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
Afficher le fichier Open project: AngeloCresta/winforms-datavisualization-net5

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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.
Résultat void

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void

DrawMarker() protected méthode

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.
Résultat void

FastPointChart() public méthode

Default constructor
public FastPointChart ( ) : System.Collections
Résultat System.Collections

GetImage() public méthode

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.
Résultat System.Drawing.Image

GetLegendImageStyle() public méthode

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

GetYValue() public méthode

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.
Résultat double

Paint() public méthode

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.
Résultat void