diff flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2411:7e0be3e5dfaa

Fix flys/issue490 (text for manual points). flys-artifacts/trunk@4041 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 13 Feb 2012 14:41:45 +0000
parents 4e82bcd07550
children b5f5af53a526
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Fri Feb 10 17:28:28 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Mon Feb 13 14:41:45 2012 +0000
@@ -396,7 +396,7 @@
     private void recoverEmptyPlot(XYPlot plot) {
         if (plot.getRangeAxis() == null) {
             logger.debug("debug: No range axis");
-            plot.setRangeAxis(createYAxis(0));
+            plot.setRangeAxis(createYAxis(0, null));
         }
     }
 
@@ -828,7 +828,7 @@
                 addStickyAnnotation(sta, plot, area, lineStyle, textStyle);
             }
 
-            // Other Text Annotations.
+            // Other Text Annotations (e.g. labels of manual points).
             for (XYTextAnnotation ta: fa.getTextAnnotations()) {
                 // Style the text.
                 if (textStyle != null) {
@@ -986,6 +986,7 @@
         Document theme,
         boolean visible
     ){
+        // Running into trouble here.
         logger.debug("doAnnotations");
         if (aandf == null) {
             logger.warn(
@@ -1043,7 +1044,7 @@
         FLYSAnnotation annotations = new FLYSAnnotation(null, null, null, theme);
         annotations.setTextAnnotations(xy);
 
-        doAnnotations(annotations, null, theme, visible);
+        doAnnotations(annotations, aandf, theme, visible);
         addAxisSeries(series, axisIndex, visible);
     }
 

http://dive4elements.wald.intevation.org