comparison artifacts/src/main/java/org/dive4elements/river/exports/CrossSectionGenerator.java @ 8316:c086b06b81e5

Make ChartArea and thus annotations sensible for logarithmic axes (plus some minor cleanup).
author "Tom Gottfried <tom@intevation.de>"
date Wed, 24 Sep 2014 13:29:34 +0200
parents e4606eae8ea5
children 0beb34d55630
comparison
equal deleted inserted replaced
8315:d4c501d2c098 8316:c086b06b81e5
174 Paint fillPaint = new Color(0, 255,0,60); 174 Paint fillPaint = new Color(0, 255,0,60);
175 Paint tranPaint = new Color(0, 0,0, 0); 175 Paint tranPaint = new Color(0, 0,0, 0);
176 176
177 // OPTMIMIZE: Pre-calculate positions 177 // OPTMIMIZE: Pre-calculate positions
178 ChartArea area = new ChartArea( 178 ChartArea area = new ChartArea(
179 plot.getDomainAxis(0).getRange(), 179 plot.getDomainAxis(0),
180 plot.getRangeAxis().getRange()); 180 plot.getRangeAxis());
181 181
182 for(RiverAnnotation fa : this.annotations) { 182 for(RiverAnnotation fa : this.annotations) {
183 183
184 // Access text styling, if any. 184 // Access text styling, if any.
185 ThemeDocument theme = fa.getTheme(); 185 ThemeDocument theme = fa.getTheme();

http://dive4elements.wald.intevation.org