107108109110111112113114115116117
hLayer.highlighted.clear(); viewer.deselectAll(); // Record layout graph.recordLayout(); // Create updated graph PathwayHolder p = graph.getPathway(); // Update pathway components if update needed
426427428429430431432433434435436
assert graph.getName().equals(tab.getText()) : "graph name: " + graph.getName() + " tab name: " + tab.getText(); if (rememberLayout && graph.isMechanistic()) { graph.recordLayout(); } } boolean removed = openTabNames.remove(tab.getText());
5152535455565758596061
"Duplication is supported only in mechanistic views."); return; } original.recordLayout(); PathwayHolder p = original.getPathway(); BioPAXGraph graph = main.getRootGraph().excise(p); graph.setPathway(null);
8081828384858687888990
if (o instanceof BioPAXGraph) { BioPAXGraph graph = (BioPAXGraph) o; if (graph.isMechanistic()) { graph.recordLayout(); } } } BioPAXIOHandler exporter = new SimpleIOHandler(main.getOwlModel().getLevel());
8384858687888990
BioPAXGraph excised = graph.excise(cropto, true); excised.setName(graph.getName() + " cropped"); main.createNewTab(excised); new CoSELayoutAction(main).run(); excised.recordLayout(); } }