private void selectNextItem() {
		int i = 0;
		boolean selectNext = true;
		while(i<elements.size() && (! elements.get(i).isSelected()) ) {
			i++;
		}
		if (i<elements.size()) {
			if (elements.get(i) instanceof AxesElement && ((AxesElement)elements.get(i)).isXSelected()) {
					((AxesElement)elements.get(i)).setSelected(true);
					selectNext = false;
			}
			else
				elements.get(i).setSelected(false);
		}
		
		if (i==elements.size()) {
			i=0;
		}

		if (selectNext)
			elements.get((i+1)%elements.size()).setSelected(true);
		repaint();
	}