@Override
	public void mouseDragged(MouseEvent e) {
		if (this.isDrawing) {
			//graphics2d.fillArc(e.getX(), e.getY(), 8, 8, 0, 360);
			
			graphics2d.drawLine(this.x0, this.y0, e.getX(), e.getY());
			this.getView().repaint();
			
			this.x0 = e.getX();
			this.y0 = e.getY();
		}
		if (this.isSelecting) {
			int width = e.getX() - this.x0;
			int height = e.getY() - this.y0;
			this.getView().setSelectionBounds(this.x0, this.y0, width, height);
			this.getView().repaint();
			System.out.println("selecting more");
		}
		if (this.isMovingToolBar) {
			ToolBar tb = this.getView().getToolBar();
			int newX = tb.getX()+(e.getX()-this.x0);
			int newY = tb.getY()+(e.getY()-this.y0);
			this.getView().getToolBar().setLocation(newX, newY);
			
			this.x0 = e.getX();
			this.y0 = e.getY();
		}
		
		System.out.println("mouseDragged: "+e.getX()+","+e.getY());
	}