diff 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
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java	Wed Aug 31 12:20:23 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java	Wed Aug 31 12:23:05 2011 +0000
@@ -8,6 +8,7 @@
 import org.jfree.chart.plot.XYPlot;
 import org.jfree.chart.title.TextTitle;
 import org.jfree.data.Range;
+import org.jfree.data.xy.XYSeries;
 
 import org.w3c.dom.Document;
 
@@ -147,6 +148,9 @@
     }
 
 
+    /**
+     * Let one facet do its job.
+     */
     public void doOut(Artifact artifact, Facet facet, Document attr) {
         String name = facet.getName();
 
@@ -175,17 +179,18 @@
 
 
     /**
-     * Register annotations available for the diagram.
+     * Do cross sections out.
      *
-     * @param o     list of annotations (data of facet).
-     * @param theme yet ignored.
+     * @param theme Theme for the data series.
      */
     protected void doCrossSectionOut(Object o, Document theme) {
-        logger.debug("LongitudinalSectionGenerator.doCrossSectionOut");
+        logger.debug("CrossSectionGenerator.doCrossSectionOut");
 
-        /*Object[] args = new Object[] {getRiverName()};
-        String label = msg(I18N_ANNOTATIONS_LABEL, "", args);
-        pseudoAnnotationData.addSeries(new StyledXYSeries(label, theme));*/
+        XYSeries series = new StyledXYSeries("bogus", theme);
+        // Add increadibly sophisticated values.
+        series.add(4, 4);
+        series.add(5, 14);
+        addFirstAxisSeries(series);
     }
 
 

http://dive4elements.wald.intevation.org