Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java @ 8723:686d8876edf9
(issue1754) Fix Radius calculation for filtered (smoothed) facets
To know the acutal extend of the Domain axis shown we need
to know all data in the diagram as the acutal extend is
the data point needed to calculate a Radius confusingly configured
in zoom-scales we have to add all data first and
then add the real filtered facets in a postprocessing step.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 29 Apr 2015 11:56:04 +0200 |
parents | 0d3d018fc632 |
children | bbf6cf555e89 |
comparison
equal
deleted
inserted
replaced
8722:a83d519155ab | 8723:686d8876edf9 |
---|---|
164 } else { | 164 } else { |
165 log.debug("setInvertedFromConfig no domain axis found?"); | 165 log.debug("setInvertedFromConfig no domain axis found?"); |
166 } | 166 } |
167 } | 167 } |
168 | 168 |
169 protected void postProcess() { | |
170 return; | |
171 } | |
172 | |
169 /** | 173 /** |
170 * Generate the chart anew (including localized axis and all). | 174 * Generate the chart anew (including localized axis and all). |
171 */ | 175 */ |
172 @Override | 176 @Override |
173 public JFreeChart generateChart() { | 177 public JFreeChart generateChart() { |
174 log.debug("DiagramGenerator.generateChart"); | 178 log.debug("DiagramGenerator.generateChart"); |
179 | |
180 postProcess(); | |
175 | 181 |
176 JFreeChart chart = ChartFactory.createXYLineChart( | 182 JFreeChart chart = ChartFactory.createXYLineChart( |
177 getChartTitle(), | 183 getChartTitle(), |
178 "", | 184 "", |
179 "", | 185 "", |