public override void onMouseDown(int x, int y) { this.selectedObject = this.drawingToolBox.GetCanvas().GetDrawingObjectAt(x, y, false); if (this.selectedObject != null) { this.selectedObject.SetState(MovingState.GetInstance()); this.selectedObject.setMoveStart(x, y); } }
public void onObservedMove() { this.SetState(MovingState.GetInstance()); this.updateConnectLine(); }