public static AbstractUIItem createItem(FeatureType t, Panel panel)
	{
		switch(t) {
		case Constant:
			return new ConstantUIItem(panel);
		case Sink:
			return new SinkUIItem(panel);
		case Source:
			return new SourceUIItem(panel);
		case Saddle:
			return new SaddleUIItem(panel);
		case Center:
			return new CenterUIItem(panel);
		case Focus:
			return new FocusUIItem(panel);
		case ConvergingElement:
			return new ConvergingElementUIItem(panel);
		case DivergingElement:
			return new DivergingElementUIItem(panel);
		case Generic:
			return new GenericUIItem(panel);
		}
		assert false : "Unhandled type: " + t;
		return null;
	}