comparison artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixLongitudinalSectionGenerator.java @ 6905:1b35b2ddfc28

Artifacts: Introduce ThemeDocument & make stuff compileable again. THIS BREAKS THE SYSTEM! TODO: Move ThemeUtils into ThemeDocument.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 22 Aug 2013 23:31:38 +0200
parents b02f3a948858
children e0311aa32efb
comparison
equal deleted inserted replaced
6904:d710bd3df387 6905:1b35b2ddfc28
25 import org.dive4elements.river.exports.process.Processor; 25 import org.dive4elements.river.exports.process.Processor;
26 import org.dive4elements.river.exports.process.WOutProcessor; 26 import org.dive4elements.river.exports.process.WOutProcessor;
27 import org.dive4elements.river.jfree.RiverAnnotation; 27 import org.dive4elements.river.jfree.RiverAnnotation;
28 import org.dive4elements.river.jfree.StyledAreaSeriesCollection; 28 import org.dive4elements.river.jfree.StyledAreaSeriesCollection;
29 import org.dive4elements.river.jfree.StyledXYSeries; 29 import org.dive4elements.river.jfree.StyledXYSeries;
30 import org.dive4elements.river.themes.ThemeDocument;
30 import org.dive4elements.river.utils.DataUtil; 31 import org.dive4elements.river.utils.DataUtil;
31 import org.dive4elements.river.utils.KMIndex; 32 import org.dive4elements.river.utils.KMIndex;
32 import org.dive4elements.river.utils.RiverUtils; 33 import org.dive4elements.river.utils.RiverUtils;
33 import org.jfree.chart.plot.Marker; 34 import org.jfree.chart.plot.Marker;
34 import org.jfree.chart.plot.ValueMarker; 35 import org.jfree.chart.plot.ValueMarker;
35 import org.jfree.data.xy.XYSeries; 36 import org.jfree.data.xy.XYSeries;
36 import org.w3c.dom.Document;
37 37
38 public class FixLongitudinalSectionGenerator 38 public class FixLongitudinalSectionGenerator
39 extends FixChartGenerator 39 extends FixChartGenerator
40 implements FacetTypes 40 implements FacetTypes
41 { 41 {
79 idx = c; 79 idx = c;
80 } 80 }
81 } 81 }
82 82
83 @Override 83 @Override
84 public void doOut(ArtifactAndFacet aaf, Document doc, boolean visible) { 84 public void doOut(ArtifactAndFacet aaf, ThemeDocument doc, boolean visible) {
85 String name = aaf.getFacetName(); 85 String name = aaf.getFacetName();
86 logger.debug("FixLongitudinalSectionGenerator: doOut: " + name); 86 logger.debug("FixLongitudinalSectionGenerator: doOut: " + name);
87 87
88 Processor processor = new KMIndexProcessor(); 88 Processor processor = new KMIndexProcessor();
89 Processor wProcessor = new WOutProcessor(); 89 Processor wProcessor = new WOutProcessor();
134 * @param visible The visibility of the curve. 134 * @param visible The visibility of the curve.
135 */ 135 */
136 protected void doQOut( 136 protected void doQOut(
137 WQKms wqkms, 137 WQKms wqkms,
138 ArtifactAndFacet aandf, 138 ArtifactAndFacet aandf,
139 Document theme, 139 ThemeDocument theme,
140 boolean visible 140 boolean visible
141 ) { 141 ) {
142 logger.debug("LongitudinalSectionGenerator.doQOut"); 142 logger.debug("LongitudinalSectionGenerator.doQOut");
143 143
144 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme); 144 XYSeries series = new StyledXYSeries(aandf.getFacetDescription(), theme);
182 } 182 }
183 183
184 @SuppressWarnings("unchecked") 184 @SuppressWarnings("unchecked")
185 protected void doSectorAverageDeviationOut( 185 protected void doSectorAverageDeviationOut(
186 ArtifactAndFacet aaf, 186 ArtifactAndFacet aaf,
187 Document doc, 187 ThemeDocument doc,
188 boolean visible) 188 boolean visible)
189 { 189 {
190 logger.debug("doSectorAverageOut" + aaf.getFacet().getIndex()); 190 logger.debug("doSectorAverageOut" + aaf.getFacet().getIndex());
191 191
192 int index = aaf.getFacet().getIndex(); 192 int index = aaf.getFacet().getIndex();
228 228
229 229
230 @SuppressWarnings("unchecked") 230 @SuppressWarnings("unchecked")
231 protected void doReferenceDeviationOut( 231 protected void doReferenceDeviationOut(
232 ArtifactAndFacet aaf, 232 ArtifactAndFacet aaf,
233 Document doc, 233 ThemeDocument doc,
234 boolean visible) 234 boolean visible)
235 { 235 {
236 logger.debug("doReferenceOut"); 236 logger.debug("doReferenceOut");
237 237
238 KMIndex<double[]> kms = 238 KMIndex<double[]> kms =

http://dive4elements.wald.intevation.org