C# Class HasK.Controls.Graph.ChartPoint

Simple square point on chart with specified color and size
Inheritance: ChartRectObject
Mostra file Open project: xHasKx/CSharp.Controls.Graph.Chart Class Usage Examples

Public Methods

Method Description
ChartPoint ( Chart chart ) : System

Create simple square point on chart

ChartPoint ( Chart chart, DPoint center ) : System

Create simple square point on chart

ChartPoint ( Chart chart, DPoint center, Color color ) : System

Create simple square point on chart

ChartPoint ( Chart chart, DPoint center, Color color, DSize size ) : System

Create simple square point on chart

Draw ( Graphics g ) : void

Chart will calls this method to draw object

GetRealRect ( Graphics g, double view_scale ) : DRect

Chart will calls this method to determine visible bounds of object with given view scale and graphics

GetScreenRect ( Graphics g, double view_scale ) : RectangleF

Gets the rectangle of object in screen coordinates

Method Details

ChartPoint() public method

Create simple square point on chart
public ChartPoint ( Chart chart ) : System
chart Chart Chart for point
return System

ChartPoint() public method

Create simple square point on chart
public ChartPoint ( Chart chart, DPoint center ) : System
chart Chart Chart for point
center DPoint The center position of this point, in real coordinates
return System

ChartPoint() public method

Create simple square point on chart
public ChartPoint ( Chart chart, DPoint center, Color color ) : System
chart Chart Chart for point
center DPoint The center position of this point, in real coordinates
color Color The color of this point
return System

ChartPoint() public method

Create simple square point on chart
public ChartPoint ( Chart chart, DPoint center, Color color, DSize size ) : System
chart Chart Chart for point
center DPoint The center position of this point, in real coordinates
color Color The color of this point
size DSize The size of this point, in screen coordinates
return System

Draw() public method

Chart will calls this method to draw object
public Draw ( Graphics g ) : void
g System.Drawing.Graphics Graphics, which should be used for drawing
return void

GetRealRect() public method

Chart will calls this method to determine visible bounds of object with given view scale and graphics
public GetRealRect ( Graphics g, double view_scale ) : DRect
g System.Drawing.Graphics Current Graphics object, use it for MeasureStringWidth or something else
view_scale double Current view scale of chart
return DRect

GetScreenRect() public method

Gets the rectangle of object in screen coordinates
public GetScreenRect ( Graphics g, double view_scale ) : RectangleF
g System.Drawing.Graphics Current Graphics object, use it for MeasureStringWidth or something else
view_scale double Current view scale of chart
return System.Drawing.RectangleF