Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeWQCurveGenerator.java @ 4257:1dfe3e1d304e
Added i18n strings for historical discharge wq chart.
author | Ingo Weinzierl <weinzierl.ingo@googlemail.com> |
---|---|
date | Thu, 25 Oct 2012 15:00:11 +0200 |
parents | 448cbd8708d5 |
children | 8b4988815974 |
comparison
equal
deleted
inserted
replaced
4256:9a1a3406deb5 | 4257:1dfe3e1d304e |
---|---|
28 public static final String I18N_CHART_SUBTITLE = "chart.historical.discharge.wq.subtitle"; | 28 public static final String I18N_CHART_SUBTITLE = "chart.historical.discharge.wq.subtitle"; |
29 | 29 |
30 public static final String I18N_XAXIS_LABEL = "chart.historical.discharge.wq.xaxis.label"; | 30 public static final String I18N_XAXIS_LABEL = "chart.historical.discharge.wq.xaxis.label"; |
31 | 31 |
32 public static final String I18N_YAXIS_LABEL = "chart.historical.discharge.wq.yaxis.label"; | 32 public static final String I18N_YAXIS_LABEL = "chart.historical.discharge.wq.yaxis.label"; |
33 | |
34 public static final String I18N_YAXIS_SECOND_LABEL = "chart.historical.discharge.wq.yaxis.second.label"; | |
35 | 33 |
36 public static enum YAXIS { | 34 public static enum YAXIS { |
37 W(0); | 35 W(0); |
38 | 36 |
39 protected int idx; | 37 protected int idx; |
84 | 82 |
85 @Override | 83 @Override |
86 protected String getDefaultYAxisLabel(int pos) { | 84 protected String getDefaultYAxisLabel(int pos) { |
87 if (pos == 0) { | 85 if (pos == 0) { |
88 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL); | 86 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL); |
89 } | |
90 else if (pos == 1) { | |
91 return msg(I18N_YAXIS_SECOND_LABEL, I18N_YAXIS_SECOND_LABEL); | |
92 } | 87 } |
93 else { | 88 else { |
94 return "NO TITLE FOR Y AXIS: " + pos; | 89 return "NO TITLE FOR Y AXIS: " + pos; |
95 } | 90 } |
96 } | 91 } |
143 logger.debug("doHistoricalDischargeOutW(): description = " + desc); | 138 logger.debug("doHistoricalDischargeOutW(): description = " + desc); |
144 | 139 |
145 // addAxisDataset(series, YAXIS.W.idx, visible); | 140 // addAxisDataset(series, YAXIS.W.idx, visible); |
146 } | 141 } |
147 | 142 |
148 protected void doHistoricalDischargeCurveOut(FLYSArtifact artifact, Object data, | 143 protected void doHistoricalDischargeCurveOut(FLYSArtifact artifact, |
149 String desc, Document theme, boolean visible) { | 144 Object data, String desc, Document theme, boolean visible) { |
150 XYSeries series = new StyledXYSeries(desc, theme); | 145 XYSeries series = new StyledXYSeries(desc, theme); |
151 StyledSeriesBuilder.addPointsQW(series, (WQKms) data); | 146 StyledSeriesBuilder.addPointsQW(series, (WQKms) data); |
152 | 147 |
153 addAxisSeries(series, YAXIS.W.idx, visible); | 148 addAxisSeries(series, YAXIS.W.idx, visible); |
154 } | 149 } |