private Collection scale(Collection segStrings) { // System.out.println("Scaled: scaleFactor = " + scaleFactor); return CollectionUtil.transform(segStrings, new CollectionUtil.Function() { public Object execute(Object obj) { SegmentString ss = (SegmentString) obj; return new NodedSegmentString(scale(ss.getCoordinates()), ss.getData()); } } ); }
private Collection scale(Collection segStrings) { // System.out.println("Scaled: scaleFactor = " + scaleFactor); return CollectionUtil.transform(segStrings, new CollectionUtil.Function() { public Object execute(Object obj) { SegmentString ss = (SegmentString) obj; return new NodedSegmentString(scale(ss.getCoordinates()), ss.getData()); } } ); }