4950515253545556
else if (getModel() instanceof AndGate) figure = new AndGateFigure(); else if (getModel() instanceof XORGate) figure = new XOrGateFigure(); else figure = new GateFigure(); return figure; }