C# Class mtManipulation.DrawingObject

Drawing object is a rectangle that demonstrates gestures
Exibir arquivo Open project: RIT-Tool-Time/Cascade

Public Methods

Method Description
DrawingObject ( Size clientSize ) : System

Create new instance of the rectangle.

Move ( Size size ) : void

Translate the rectangle

Paint ( Graphics graphics ) : void

Draw the rectangle by applying rotation and scaling factors

ResetObject ( Size clientSize ) : void

Set the default state for the drawing object

Rotate ( double angle, Point center ) : void

Rotate the rectangle

ShiftColor ( ) : void

Change the frame color

TogleDrawDiagonals ( ) : void

Start or stop X drawing

Zoom ( double zoomFactor, Point center ) : void

Change the rectangle size

Private Methods

Method Description
RangeFromCenter ( Point location ) : double

Method Details

DrawingObject() public method

Create new instance of the rectangle.
public DrawingObject ( Size clientSize ) : System
clientSize System.Drawing.Size The form size
return System

Move() public method

Translate the rectangle
public Move ( Size size ) : void
size System.Drawing.Size The translation amount
return void

Paint() public method

Draw the rectangle by applying rotation and scaling factors
public Paint ( Graphics graphics ) : void
graphics System.Drawing.Graphics
return void

ResetObject() public method

Set the default state for the drawing object
public ResetObject ( Size clientSize ) : void
clientSize System.Drawing.Size
return void

Rotate() public method

Rotate the rectangle
public Rotate ( double angle, Point center ) : void
angle double The relative angle
center Point Rotation center point
return void

ShiftColor() public method

Change the frame color
public ShiftColor ( ) : void
return void

TogleDrawDiagonals() public method

Start or stop X drawing
public TogleDrawDiagonals ( ) : void
return void

Zoom() public method

Change the rectangle size
public Zoom ( double zoomFactor, Point center ) : void
zoomFactor double scaling factor
center Point the zoom center point
return void