private void rescale(Collection segStrings) { // System.out.println("Rescaled: scaleFactor = " + scaleFactor); CollectionUtil.apply(segStrings, new CollectionUtil.Function() { public Object execute(Object obj) { SegmentString ss = (SegmentString) obj; rescale(ss.getCoordinates()); return null; } } ); }
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()); } } ); }
private void rescale(Collection segStrings) { // System.out.println("Rescaled: scaleFactor = " + scaleFactor); CollectionUtil.apply(segStrings, new CollectionUtil.Function() { public Object execute(Object obj) { SegmentString ss = (SegmentString) obj; rescale(ss.getCoordinates()); return null; } } ); }