@Override
	public GUIEvent updateMouse(PointerEvent event) {

		mx = event.getX();
		my = event.getY();		

		//TODO Change to colision
		if((mx>startScreenX)&&(my>startScreenY&&(my<colorToolBarY))) {

			switch(mode) {

			case RECTANGULAR_MARK:
				rectangularMarkModeEvent(event);
				break;

			case PAINT_CAN:
				paintCanModeEvent(event);
				break;

			case ERASER:
				eraserModeEvent(event);
				break;

			case DROPPER:
				dropperModeEvent(event);
				break;

				//TODO Just for now
			case PAINT_BRUSH:
			case PENCIL:
				pencilModeEvent(event);
				break;

			case DRAW_LINE:		
			case DRAW_RECT:
			case DRAW_OVAL:
			case DRAW_ROUND:
				//rectModeEvent(event);
				tool.handleEvent(event);

				break;
				
			}

		}

		if(event.onButtonDown(MouseButton.MOUSE_WHEEL_UP)||event.onButtonDown(MouseButton.MOUSE_WHEEL_DOWN)) {
			zoom-=event.getAmount();
		}

		return GUIEvent.NONE;
	}