264265266267268269270271272273274
{ controller.getVisualization().addLock(t); } }); t.addTask(new Task("delete metalayer") { public void run() { deleteBackground(); }
272273274275276277278279280281282
{ deleteBackground(); } }); t.addTask(new Task("analysis") { public void run() { secondAnalysis(); }
280281282283284285286287288289290
{ secondAnalysis(); } }); t.addTask(new Task("color edges") { public void run() { controller.preUpdateAll(); colorEdges();
295296297298299300301302303304305
controller.updateAll(t); IRootComponent activeRoot = controller.getMappingModel().getRootComponent(); if (activeRoot.getBackgroundModel() != null) { t.addTask(new Task("calculate metalayer") { public void run() { calculateBackground(); }
303304305306307308309310311312313
{ calculateBackground(); } }); t.addTask(new Task("draw metalayer") { public void run() { insertBackground(); }
311312313314315316317318319320321
{ insertBackground(); } }); } t.addTask(new Task("wait") { public void run() { controller.getVisualization().removeLock(t); }
336337338339340341342343344345346
} else { final SequencedTask t = Tasks.createSequencedTask("expand or shrink the pathway"); t.addTask(new Task("wait") { public void run() { controller.getVisualization().addLock(t); }
344345346347348349350351352353354
{ controller.getVisualization().addLock(t); } }); t.addTask(new Task("search for pathway to expand") { public void run() { selectedNodeID = searchForNodeID(); }
352353354355356357358359360361362
{ selectedNodeID = searchForNodeID(); } }); t.addTask(new Task("shrink or expand the pathway") { public void run() { final SequencedTask tt = Tasks.createSequencedTask("shrink the pathway");
361362363364365366367368369370371
final SequencedTask tt = Tasks.createSequencedTask("shrink the pathway"); if (listExpandPath.contains(actPath)) { tt.addTask(new Task("shrink") { public void run() { shrinkPathway(); }