public override void onMouseDown(int x, int y) { initX = x; initY = y; rectObject = new DobRectangle( x, y, 0, 0, this.getPenClone() ); this.drawingToolBox.GetCanvas() .AddDrawingObject(this.rectObject); }
public override void onMouseUp(int x, int y) { this.rectObject.SetState(StaticState.GetInstance()); this.rectObject = null; }