C# Class HasK.Controls.Graph.ChartEllipse

On-chart ellipse
Inheritance: ChartRectObject, IChartMouseMovableObject
Afficher le fichier Open project: xHasKx/CSharp.Controls.Graph.Chart Class Usage Examples

Méthodes publiques

Méthode Description
ChartEllipse ( Chart chart, DPoint left_bottom, DSize size ) : System

Create the on-chart ellipse

ChartEllipse ( Chart chart, DPoint left_bottom, DSize size, Color color ) : System

Create the on-chart ellipse

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

MoveTo ( DPoint point ) : void

This method will be called by chart when mouse was moved on chart

Method Details

ChartEllipse() public méthode

Create the on-chart ellipse
public ChartEllipse ( Chart chart, DPoint left_bottom, DSize size ) : System
chart Chart Chart for ellipse
left_bottom DPoint The left-bottom corner point
size DSize The size of ellipse
Résultat System

ChartEllipse() public méthode

Create the on-chart ellipse
public ChartEllipse ( Chart chart, DPoint left_bottom, DSize size, Color color ) : System
chart Chart Chart for ellipse
left_bottom DPoint The left-bottom corner point
size DSize The size of ellipse
color Color The color of ellipse
Résultat System

Draw() public méthode

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

GetRealRect() public méthode

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
Résultat DRect

MoveTo() public méthode

This method will be called by chart when mouse was moved on chart
public MoveTo ( DPoint point ) : void
point DPoint Stores the point of mouse cursor tied to grid
Résultat void