C# Class TpTrayUtility.Components.Primitive

Inheritance: IPrimitive
Show file Open project: TargetProcess/Tp.TrayUtility Class Usage Examples

Public Methods

Method Description
CanUndo ( ) : bool
CreationMouseDownHandler ( PointF point ) : void
CreationMouseMoveHandler ( PointF pointF ) : void
CreationMouseUpHandler ( PointF point ) : void
Draw ( Graphics g, float zoom, PointF offset, PointF zoomPosition ) : void
Draw ( Graphics g, float zoom, PointF offset, PointF zoomPosition, Point tbOffset ) : void
GeneratePropertyControl ( ) : PropertyControlBase
GetCursor ( PointF point ) : Cursor
GetZoomBoundRect ( float zoom ) : Rectangle
MouseDoubleClickHandler ( PointF point ) : void
MoveBy ( float dx, float dy ) : void
OnFormResize ( ) : void
OnResize ( bool lastMove ) : void
SetColor ( Color fore, Color back ) : void
ShapeToolLost ( ) : void
SpecialPoints ( ) : List
UpdatePropertyFromStaticData ( ) : void
UpdateSpecialPoint ( int id, PointF position ) : void
isPointIn ( PointF point ) : bool
isResizeble ( ) : bool
isValid ( ) : bool

Method Details

CanUndo() public abstract method

public abstract CanUndo ( ) : bool
return bool

CreationMouseDownHandler() public abstract method

public abstract CreationMouseDownHandler ( PointF point ) : void
point System.Drawing.PointF
return void

CreationMouseMoveHandler() public abstract method

public abstract CreationMouseMoveHandler ( PointF pointF ) : void
pointF System.Drawing.PointF
return void

CreationMouseUpHandler() public abstract method

public abstract CreationMouseUpHandler ( PointF point ) : void
point System.Drawing.PointF
return void

Draw() public abstract method

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

Draw() public method

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

GeneratePropertyControl() public abstract method

public abstract GeneratePropertyControl ( ) : PropertyControlBase
return PropertyControlBase

GetCursor() public abstract method

public abstract GetCursor ( PointF point ) : Cursor
point System.Drawing.PointF
return System.Windows.Forms.Cursor

GetZoomBoundRect() public method

public GetZoomBoundRect ( float zoom ) : Rectangle
zoom float
return System.Drawing.Rectangle

MouseDoubleClickHandler() public abstract method

public abstract MouseDoubleClickHandler ( PointF point ) : void
point System.Drawing.PointF
return void

MoveBy() public abstract method

public abstract MoveBy ( float dx, float dy ) : void
dx float
dy float
return void

OnFormResize() public method

public OnFormResize ( ) : void
return void

OnResize() public abstract method

public abstract OnResize ( bool lastMove ) : void
lastMove bool
return void

SetColor() public abstract method

public abstract SetColor ( Color fore, Color back ) : void
fore System.Drawing.Color
back System.Drawing.Color
return void

ShapeToolLost() public abstract method

public abstract ShapeToolLost ( ) : void
return void

SpecialPoints() public abstract method

public abstract SpecialPoints ( ) : List
return List

UpdatePropertyFromStaticData() public abstract method

public abstract UpdatePropertyFromStaticData ( ) : void
return void

UpdateSpecialPoint() public abstract method

public abstract UpdateSpecialPoint ( int id, PointF position ) : void
id int
position System.Drawing.PointF
return void

isPointIn() public abstract method

public abstract isPointIn ( PointF point ) : bool
point System.Drawing.PointF
return bool

isResizeble() public abstract method

public abstract isResizeble ( ) : bool
return bool

isValid() public abstract method

public abstract isValid ( ) : bool
return bool