C# 클래스 mtManipulation.DrawingObject

Drawing object is a rectangle that demonstrates gestures
파일 보기 프로젝트 열기: RIT-Tool-Time/Cascade

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
RangeFromCenter ( Point location ) : double

메소드 상세

DrawingObject() 공개 메소드

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

Move() 공개 메소드

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

Paint() 공개 메소드

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

ResetObject() 공개 메소드

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

Rotate() 공개 메소드

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

ShiftColor() 공개 메소드

Change the frame color
public ShiftColor ( ) : void
리턴 void

TogleDrawDiagonals() 공개 메소드

Start or stop X drawing
public TogleDrawDiagonals ( ) : void
리턴 void

Zoom() 공개 메소드

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