Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/CrossSectionGenerator.java @ 5864:f2e46a668fe6
River artifacts: Renamed FLYSAnnotation to RiverAnnotation.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:04:44 +0200 |
parents | 4897a58c8746 |
children | 73da40528cf2 |
comparison
equal
deleted
inserted
replaced
5863:4897a58c8746 | 5864:f2e46a668fe6 |
---|---|
29 import org.dive4elements.river.artifacts.geom.Lines; | 29 import org.dive4elements.river.artifacts.geom.Lines; |
30 import org.dive4elements.river.artifacts.model.CrossSectionFacet; | 30 import org.dive4elements.river.artifacts.model.CrossSectionFacet; |
31 import org.dive4elements.river.artifacts.model.FacetTypes; | 31 import org.dive4elements.river.artifacts.model.FacetTypes; |
32 import org.dive4elements.river.artifacts.model.HYKFactory; | 32 import org.dive4elements.river.artifacts.model.HYKFactory; |
33 import org.dive4elements.river.artifacts.resources.Resources; | 33 import org.dive4elements.river.artifacts.resources.Resources; |
34 import org.dive4elements.river.jfree.FLYSAnnotation; | 34 import org.dive4elements.river.jfree.RiverAnnotation; |
35 import org.dive4elements.river.jfree.StyledXYSeries; | 35 import org.dive4elements.river.jfree.StyledXYSeries; |
36 import org.dive4elements.river.model.FastCrossSectionLine; | 36 import org.dive4elements.river.model.FastCrossSectionLine; |
37 import org.dive4elements.river.themes.LineStyle; | 37 import org.dive4elements.river.themes.LineStyle; |
38 import org.dive4elements.river.themes.TextStyle; | 38 import org.dive4elements.river.themes.TextStyle; |
39 import org.dive4elements.river.themes.ThemeAccess; | 39 import org.dive4elements.river.themes.ThemeAccess; |
180 // OPTMIMIZE: Pre-calculate positions | 180 // OPTMIMIZE: Pre-calculate positions |
181 ChartArea area = new ChartArea( | 181 ChartArea area = new ChartArea( |
182 plot.getDomainAxis(0).getRange(), | 182 plot.getDomainAxis(0).getRange(), |
183 plot.getRangeAxis().getRange()); | 183 plot.getRangeAxis().getRange()); |
184 | 184 |
185 for(FLYSAnnotation fa : this.annotations) { | 185 for(RiverAnnotation fa : this.annotations) { |
186 | 186 |
187 // Access text styling, if any. | 187 // Access text styling, if any. |
188 Document theme = fa.getTheme(); | 188 Document theme = fa.getTheme(); |
189 TextStyle textStyle = null; | 189 TextStyle textStyle = null; |
190 // XXX: DEAD CODE // LineStyle lineStyle = null; | 190 // XXX: DEAD CODE // LineStyle lineStyle = null; |
403 return; | 403 return; |
404 } | 404 } |
405 | 405 |
406 // Actual Styling is done in XYChartGenerator. | 406 // Actual Styling is done in XYChartGenerator. |
407 if (visible) { | 407 if (visible) { |
408 addAnnotations(new FLYSAnnotation(seriesName, null, zones, theme)); | 408 addAnnotations(new RiverAnnotation(seriesName, null, zones, theme)); |
409 } | 409 } |
410 } | 410 } |
411 | 411 |
412 | 412 |
413 /** | 413 /** |