public static Map<GraphNode,Point2D> translateNodes(Collection<GraphNode> moveNodes,Map<GraphNode,Point2D> positions,Translater translater){
  Map<GraphNode,Point2D> result=Maps.newHashMapWithExpectedSize(moveNodes.size());
  for (  GraphNode node : moveNodes) {
    Point2D location=translateNode(node,positions,translater);
    if (null == location) {
      continue;
    }
    result.put(node,translater.translate(location));
  }
  return result;
}

public static Map < GraphNode , Point2D > translateNodes ( Collection < GraphNode > moveNodes , Map < GraphNode , Point2D > positions , Translater translater ) { Map < GraphNode , Point2D > result = Maps . newHashMapWithExpectedSize ( moveNodes . size ( ) ) ; for ( GraphNode node : moveNodes ) { Point2D location = translateNode ( node , positions , translater ) ; if ( null == location ) { continue ; } result . put ( node , translater . translate ( location ) ) ; } return result ; }
compute positions of movenodes using the supplied translator . a new map of node positions is provided . move nodes without a position are omitted from the result .
