Method | Description | |
---|---|---|
Draw ( |
draw a rectangle
|
|
OnMouseDown ( System e ) : void |
record the location point where mouse clicked
|
|
OnMouseMove ( System graphic, System e ) : void |
draw a line from end point of tool to the location where mouse move
|
Method | Description | |
---|---|---|
DrawRect ( |
draw rectangle use the given two points p1 and p2
|
public Draw ( |
||
graphic | Graphics object, use to draw geometry | |
return | void |
public OnMouseDown ( System e ) : void | ||
e | System | mouse event args |
return | void |
public OnMouseMove ( System graphic, System e ) : void | ||
graphic | System | graphic object,used to draw geometry |
e | System | mouse event args |
return | void |