}
else if(typeService instanceof IInterfaceService) {
IInterfaceService<?, ?> srv =
(IInterfaceService<?, ?>)typeService;
selectedElementService = srv;
displayedFigure = new InterfaceFigure(srv);
}
else {
displayedFigure = null;
}
figureSystem.setContents(displayedFigure);