/** * Lock agent postions. */ protected void lockAgents() { // lock positions of all vertices for initializing only new vertices for(Iterator it = graph.getVertices().iterator(); it.hasNext();) { layout.lock(it.next(), true); } }
/** * Unlock agent positions */ protected void unlockAgents() { // unlock all vertices again for(Iterator it = graph.getVertices().iterator(); it.hasNext();) { layout.lock(it.next(), false); } }