C# Class TpTrayUtility.Components.ShapeBoxControl

显示文件 Open project: TargetProcess/Tp.TrayUtility Class Usage Examples

Public Methods

Method Description
Draw ( Graphics g, PointF offset, float zoom ) : void
DrawPointsOnly ( Graphics g ) : void
GeneratePoints ( ) : void
GetCursor ( PointF point, int dragPointID ) : Cursor
GetPoint ( PointF coords ) : int
MovePoint ( int id, PointF point ) : void
ShapeBoxControl ( Primitive prim ) : System

Private Methods

Method Description
Distance ( PointF p, PointF c ) : double
MoveBy ( float dx, float dy ) : void
PointIn ( PointF point ) : bool

Method Details

Draw() public method

public Draw ( Graphics g, PointF offset, float zoom ) : void
g System.Drawing.Graphics
offset System.Drawing.PointF
zoom float
return void

DrawPointsOnly() public method

public DrawPointsOnly ( Graphics g ) : void
g System.Drawing.Graphics
return void

GeneratePoints() public method

public GeneratePoints ( ) : void
return void

GetCursor() public method

public GetCursor ( PointF point, int dragPointID ) : Cursor
point System.Drawing.PointF
dragPointID int
return System.Windows.Forms.Cursor

GetPoint() public method

public GetPoint ( PointF coords ) : int
coords System.Drawing.PointF
return int

MovePoint() public method

public MovePoint ( int id, PointF point ) : void
id int
point System.Drawing.PointF
return void

ShapeBoxControl() public method

public ShapeBoxControl ( Primitive prim ) : System
prim Primitive
return System