Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/DefaultHistogram.java @ 1107:86ca3c10523f
Adjust the format of axes labels in histograms corresponding the specified locale (issue316).
gnv-artifacts/trunk@1238 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 29 Jun 2010 07:37:36 +0000 |
parents | bb2679624c6a |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
1106:8ce8979f51df | 1107:86ca3c10523f |
---|---|
1 package de.intevation.gnv.chart; | 1 package de.intevation.gnv.chart; |
2 | 2 |
3 import java.util.Locale; | |
3 import java.util.Map; | 4 import java.util.Map; |
4 | 5 |
5 import org.apache.log4j.Logger; | 6 import org.apache.log4j.Logger; |
6 | 7 |
7 import org.jfree.chart.ChartTheme; | 8 import org.jfree.chart.ChartTheme; |
75 public DefaultHistogram( | 76 public DefaultHistogram( |
76 ChartLabels labels, Object[] data, ChartTheme theme, Map requestParameter | 77 ChartLabels labels, Object[] data, ChartTheme theme, Map requestParameter |
77 ) { | 78 ) { |
78 super(labels, data, theme); | 79 super(labels, data, theme); |
79 this.requestParameter = requestParameter; | 80 this.requestParameter = requestParameter; |
81 this.locale = (Locale) requestParameter.get("locale"); | |
80 } | 82 } |
81 | 83 |
82 | 84 |
83 @Override | 85 @Override |
84 protected void applyDatasets() { | 86 protected void applyDatasets() { |