comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java @ 2692:32b1e28edb15

Removed unused code. flys-artifacts/trunk@4396 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Sun, 13 May 2012 21:39:55 +0000
parents a7a4d3b2e2b0
children 0ca00d547f35
comparison
equal deleted inserted replaced
2691:a7a4d3b2e2b0 2692:32b1e28edb15
44 } 44 }
45 45
46 private static Logger logger = 46 private static Logger logger =
47 Logger.getLogger(DurationCurveGenerator.class); 47 Logger.getLogger(DurationCurveGenerator.class);
48 48
49 public static final String I18N_DURATION_W =
50 "chart.duration.curve.curve.w";
51
52 public static final String I18N_DURATION_Q =
53 "chart.duration.curve.curve.q";
54
55 public static final String I18N_CHART_TITLE = 49 public static final String I18N_CHART_TITLE =
56 "chart.duration.curve.title"; 50 "chart.duration.curve.title";
57 51
58 public static final String I18N_CHART_SUBTITLE = 52 public static final String I18N_CHART_SUBTITLE =
59 "chart.duration.curve.subtitle"; 53 "chart.duration.curve.subtitle";
290 284
291 addAxisSeries(series, YAXIS.Q.idx, visible); 285 addAxisSeries(series, YAXIS.Q.idx, visible);
292 } 286 }
293 287
294 288
295 /**
296 * Creates an i18ed name for a (w or q) duration curve facet.
297 * @param river rivername, included in facet name.
298 * @param type either DURATION_W, DURATION_Q
299 */
300 protected String getSeriesName(String river, String type) {
301 // TODO include km in duration curves facet name.
302 Object[] args = new Object[] { river };
303
304 if (type == null || type.length() == 0) {
305 logger.warn("No duration curve type given.");
306 return "n/a";
307 }
308 else if (type.equals(DURATION_W)) {
309 return Resources.getMsg(
310 context.getMeta(),
311 I18N_DURATION_W,
312 "W",
313 args);
314 }
315 else if (type.equals(DURATION_Q)) {
316 return Resources.getMsg(
317 context.getMeta(),
318 I18N_DURATION_Q,
319 "W",
320 args);
321 }
322
323 logger.warn("Could not determine chart curve type: " + type);
324 return type;
325 }
326
327
328 @Override 289 @Override
329 protected YAxisWalker getYAxisWalker() { 290 protected YAxisWalker getYAxisWalker() {
330 return new YAxisWalker() { 291 return new YAxisWalker() {
331 @Override 292 @Override
332 public int length() { 293 public int length() {

http://dive4elements.wald.intevation.org