@Override
	public void mouseMoved(MouseEvent e)
	{
		positionMouse = new Point2D.Float(e.getX() - offset, e.getY() - offset);
		if (selectedObject != null)
		{
			DragDirection cursorDir = selectedObject.isInsideBorder(positionMouse);
			if (cursorDir == DragDirection.EAST)
			{
				this.setCursor(Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR));
			}
			else if (cursorDir == DragDirection.WEST)
			{
				this.setCursor(Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR));
			}
			else if (cursorDir == DragDirection.NORTH)
			{
				this.setCursor(Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR));
			}
			else if (cursorDir == DragDirection.SOUTH)
			{
				this.setCursor(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));
			}
			else if (cursorDir == DragDirection.SOUTHEAST || cursorDir == DragDirection.NORTHWEST)
			{
				this.setCursor(Cursor.getPredefinedCursor(Cursor.NW_RESIZE_CURSOR));
			}
			else if (cursorDir == DragDirection.SOUTHWEST || cursorDir == DragDirection.NORTHEAST)
			{
				this.setCursor(Cursor.getPredefinedCursor(Cursor.NE_RESIZE_CURSOR));
			}
			else
			{
				this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
			}
		}
	}