comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java @ 4050:975f608dd254

Cleaned up iterating over maps. Removed some dead code.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 06 Oct 2012 12:27:01 +0200
parents 090fea205d1d
children acfd48384835
comparison
equal deleted inserted replaced
4049:8e66293c5369 4050:975f608dd254
22 import java.util.ArrayList; 22 import java.util.ArrayList;
23 import java.util.HashMap; 23 import java.util.HashMap;
24 import java.util.List; 24 import java.util.List;
25 import java.util.Locale; 25 import java.util.Locale;
26 import java.util.Map; 26 import java.util.Map;
27 import java.util.Set;
28 27
29 import org.apache.log4j.Logger; 28 import org.apache.log4j.Logger;
30 import org.jfree.chart.annotations.XYTextAnnotation; 29 import org.jfree.chart.annotations.XYTextAnnotation;
31 import org.jfree.data.time.Day; 30 import org.jfree.data.time.Day;
32 import org.jfree.data.time.RegularTimePeriod; 31 import org.jfree.data.time.RegularTimePeriod;
361 360
362 Locale locale = Resources.getLocale(context.getMeta()); 361 Locale locale = Resources.getLocale(context.getMeta());
363 NumberFormat nf = NumberFormat.getInstance(locale); 362 NumberFormat nf = NumberFormat.getInstance(locale);
364 363
365 List<XYTextAnnotation> textAnnos = new ArrayList<XYTextAnnotation>(); 364 List<XYTextAnnotation> textAnnos = new ArrayList<XYTextAnnotation>();
366 Set<Map.Entry<Integer, int[]>> entries = annoIdxMap.entrySet(); 365
367 366 for (int[] idxs: annoIdxMap.values()) {
368 for(Map.Entry<Integer, int[]> entry : entries) { 367
369 int[] idxs = entry.getValue();
370 double x = tsc.getXValue(idxs[0], idxs[1]); 368 double x = tsc.getXValue(idxs[0], idxs[1]);
371 369
372 XYTextAnnotation anno = new CollisionFreeXYTextAnnotation( 370 XYTextAnnotation anno = new CollisionFreeXYTextAnnotation(
373 nf.format(qwd.getQ()) + " m\u00B3/s", 371 nf.format(qwd.getQ()) + " m\u00B3/s",
374 x, 372 x,

http://dive4elements.wald.intevation.org