C# Class mtManipulation.DrawingObject

Drawing object is a rectangle that demonstrates gestures
Afficher le fichier Open project: RIT-Tool-Time/Cascade

Méthodes publiques

Méthode 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

Méthode Description
RangeFromCenter ( Point location ) : double

Method Details

DrawingObject() public méthode

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

Move() public méthode

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

Paint() public méthode

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

ResetObject() public méthode

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

Rotate() public méthode

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

ShiftColor() public méthode

Change the frame color
public ShiftColor ( ) : void
Résultat void

TogleDrawDiagonals() public méthode

Start or stop X drawing
public TogleDrawDiagonals ( ) : void
Résultat void

Zoom() public méthode

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