comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/QWSeriesCollection.java @ 3173:0cf647fe2a96

FixA: Finished I18N for km chart service. flys-artifacts/trunk@4786 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 25 Jun 2012 16:28:26 +0000
parents 79e7bba0f593
children 04d090d06d3f
comparison
equal deleted inserted replaced
3172:36806f6e23fb 3173:0cf647fe2a96
211 shape, // line 211 shape, // line
212 stroke, // line stroke 212 stroke, // line stroke
213 Color.white); 213 Color.white);
214 } 214 }
215 215
216 public void addLegendItems(LegendItemCollection lic) { 216 public void addLegendItems(
217 LegendItemCollection lic,
218 ShapeRenderer.LabelGenerator lg
219 ) {
217 for (ShapeRenderer.Entry entry: knownShapes.keySet()) { 220 for (ShapeRenderer.Entry entry: knownShapes.keySet()) {
218 // TODO: i18n
219 String label = entry.getFilled()
220 ? "gemessene Werte"
221 : "interpolierte Werte";
222 lic.add(legendItem( 221 lic.add(legendItem(
223 label, 222 lg.createLabel(entry),
224 entry.getPaint(), 223 entry.getPaint(),
225 entry.getShape(), 224 entry.getShape(),
226 entry.getFilled())); 225 entry.getFilled()));
227 } 226 }
228 } 227 }

http://dive4elements.wald.intevation.org