else if (modelPart instanceof XORGate)
figure = new XOrGateFeedbackFigure();
else if (modelPart instanceof GroundOutput)
figure = new GroundFeedbackFigure();
else if (modelPart instanceof LiveOutput)
figure = new LiveOutputFeedbackFigure();
else if (modelPart instanceof AndGate)
figure = new AndGateFeedbackFigure();
else {
figure = new RectangleFigure();
((RectangleFigure)figure).setXOR(true);