comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 1116:05e4ef0f9489

Improved stub for CrossSections (including Factory and Facet). flys-artifacts/trunk@2623 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 31 Aug 2011 12:23:05 +0000
parents 5b38cdf65307
children 111794adf285
comparison
equal deleted inserted replaced
1115:eaf32c767bac 1116:05e4ef0f9489
6 import org.jfree.chart.axis.NumberAxis; 6 import org.jfree.chart.axis.NumberAxis;
7 import org.jfree.chart.axis.ValueAxis; 7 import org.jfree.chart.axis.ValueAxis;
8 import org.jfree.chart.plot.XYPlot; 8 import org.jfree.chart.plot.XYPlot;
9 import org.jfree.chart.title.TextTitle; 9 import org.jfree.chart.title.TextTitle;
10 import org.jfree.data.Range; 10 import org.jfree.data.Range;
11 import org.jfree.data.xy.XYSeries;
11 12
12 import org.w3c.dom.Document; 13 import org.w3c.dom.Document;
13 14
14 import de.intevation.artifacts.Artifact; 15 import de.intevation.artifacts.Artifact;
15 16
145 xaxis.setInverted(true); 146 xaxis.setInverted(true);
146 } 147 }
147 } 148 }
148 149
149 150
151 /**
152 * Let one facet do its job.
153 */
150 public void doOut(Artifact artifact, Facet facet, Document attr) { 154 public void doOut(Artifact artifact, Facet facet, Document attr) {
151 String name = facet.getName(); 155 String name = facet.getName();
152 156
153 logger.debug("CrossSectionGenerator.doOut: " + name); 157 logger.debug("CrossSectionGenerator.doOut: " + name);
154 158
173 } 177 }
174 } 178 }
175 179
176 180
177 /** 181 /**
178 * Register annotations available for the diagram. 182 * Do cross sections out.
179 * 183 *
180 * @param o list of annotations (data of facet). 184 * @param theme Theme for the data series.
181 * @param theme yet ignored.
182 */ 185 */
183 protected void doCrossSectionOut(Object o, Document theme) { 186 protected void doCrossSectionOut(Object o, Document theme) {
184 logger.debug("LongitudinalSectionGenerator.doCrossSectionOut"); 187 logger.debug("CrossSectionGenerator.doCrossSectionOut");
185 188
186 /*Object[] args = new Object[] {getRiverName()}; 189 XYSeries series = new StyledXYSeries("bogus", theme);
187 String label = msg(I18N_ANNOTATIONS_LABEL, "", args); 190 // Add increadibly sophisticated values.
188 pseudoAnnotationData.addSeries(new StyledXYSeries(label, theme));*/ 191 series.add(4, 4);
192 series.add(5, 14);
193 addFirstAxisSeries(series);
189 } 194 }
190 195
191 196
192 /** 197 /**
193 * Get name of series (displayed in legend). 198 * Get name of series (displayed in legend).

http://dive4elements.wald.intevation.org