C# 클래스 HasK.Controls.Graph.ChartRectangle

On-chart rectangle
상속: ChartRectObject, IChartMouseMovableObject
파일 보기 프로젝트 열기: xHasKx/CSharp.Controls.Graph.Chart 1 사용 예제들

공개 메소드들

메소드 설명
ChartRectangle ( Chart chart, DPoint left_bottom, DSize size ) : System

Create the on-chart rectangle

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

Create the on-chart rectangle

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

메소드 상세

ChartRectangle() 공개 메소드

Create the on-chart rectangle
public ChartRectangle ( Chart chart, DPoint left_bottom, DSize size ) : System
chart Chart Chart for rectangle
left_bottom DPoint The left-bottom corner point
size DSize The size of rectangle
리턴 System

ChartRectangle() 공개 메소드

Create the on-chart rectangle
public ChartRectangle ( Chart chart, DPoint left_bottom, DSize size, Color color ) : System
chart Chart Chart for rectangle
left_bottom DPoint The left-bottom corner point
size DSize The size of rectangle
color Color The color of rectangle
리턴 System

Draw() 공개 메소드

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

GetRealRect() 공개 메소드

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
리턴 DRect

MoveTo() 공개 메소드

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
리턴 void