comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java @ 344:44adf8918155

Fade out range axis gridlines in charts if there are more than one axis. gnv-artifacts/trunk@411 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 11 Dec 2009 09:42:54 +0000
parents e964a3d8f7bc
children 4ac3c1c1c060
comparison
equal deleted inserted replaced
343:2e43542e6a11 344:44adf8918155
67 chart.addSubtitle(new TextTitle(labels.getSubtitle())); 67 chart.addSubtitle(new TextTitle(labels.getSubtitle()));
68 68
69 theme.apply(chart); 69 theme.apply(chart);
70 initData(); 70 initData();
71 71
72 adjustPlot((XYPlot)chart.getPlot());
73
72 return chart; 74 return chart;
73 } 75 }
74 76
75 77
76 protected void initChart() { 78 protected void initChart() {
147 } 149 }
148 plot.setRenderer(idx, renderer); 150 plot.setRenderer(idx, renderer);
149 } 151 }
150 152
151 153
154 protected void adjustPlot(XYPlot plot) {
155 if (plot.getRangeAxisCount() > 1)
156 plot.setRangeGridlinesVisible(false);
157 }
158
159
152 protected void localizeRangeAxis(Axis axis, Locale locale) { 160 protected void localizeRangeAxis(Axis axis, Locale locale) {
153 if (locale == null) 161 if (locale == null)
154 return; 162 return;
155 163
156 log.debug( 164 log.debug(

http://dive4elements.wald.intevation.org