public void stateChanged(ChangeEvent e) { for(V v : vertexMap.keySet()) { Point3f p = VisualizationViewer.this.layout.transform(v); Vector3f pv = new Vector3f(p.getX(), p.getY(), p.getZ()); Transform3D tx = new Transform3D(); tx.setTranslation(pv); vertexMap.get(v).setTransform(tx); } for(E edge : graph.getEdges()) { Pair<V> endpoints = graph.getEndpoints(edge); V start = endpoints.getFirst(); V end = endpoints.getSecond(); EdgeGroup eg = edgeMap.get(edge); eg.setEndpoints(layout.transform(start), layout.transform(end)); } }});
final int NUM_D = cand_d.size(); for (Node orig : cand_o.keySet()) for (Node dest : cand_d.keySet()) if (!forbidRoutesNotTraversingADistributionCenter.getBoolean()) netPlan.addRoute(d, 0.0, 0.0, Arrays.asList (getLink(orig, dest)), null); for (Node dc : cand_a.keySet()) netPlan.addRoute(d, 0.0, 0.0, Arrays.asList (getLink (orig , dc) , getLink(dc , dest)), null);