/** * Override forceMove so that if someone moves a node, we can re-layout * everything. * @param picked the vertex whose location is to be set * @param x the x coordinate of the location to set * @param y the y coordinate of the location to set */ @Override public void setLocation(V picked, double x, double y) { Point2D coord = apply(picked); coord.setLocation(x,y); stoppingIncrements = false; }
continue; SpringLayout.SpringVertexData vd = springVertexData.getUnchecked(v); Point2D xyd = apply(v);
@Override public void setSize(Dimension size) { super.setSize(size); for(V v : getGraph().getVertices()) { initializeLocation(v,apply(v),getSize()); } }