public int labelIndex(final Label label) {
		final Integer i = (Integer) labels.get(label);

		if (i != null) {
			return i.intValue();
		}

		throw new IllegalArgumentException("Label " + label + " not found");
	}