public void particleMoved(Object id, double x, double y, double z) { //for (LayoutListener listener : listeners) // listener.nodeMoved((String) id, x, y, z); Object xyz[] = new Object[3]; xyz[0] = x; xyz[1] = y; xyz[2] = z; sendNodeAttributeChanged(getLayoutAlgorithmName(), (String) id, "xyz", xyz, xyz); // System.out.printf("particle %s moved : %f;%f;%f\n", id, x, y, z); }
public void particleMoved(Object id, double x, double y, double z) { //for (LayoutListener listener : listeners) // listener.nodeMoved((String) id, x, y, z); Object xyz[] = new Object[3]; xyz[0] = x; xyz[1] = y; xyz[2] = z; sendNodeAttributeChanged(getLayoutAlgorithmName(), (String) id, "xyz", xyz, xyz); // System.out.printf("particle %s moved : %f;%f;%f\n", id, x, y, z); }