Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2183:a79d5cd26083
Render labels of manual points in a very primitive manner.
flys-artifacts/trunk@3787 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 27 Jan 2012 11:01:13 +0000 |
parents | 105097966111 |
children | fc86fcfe503e |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Fri Jan 27 10:45:34 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Fri Jan 27 11:01:13 2012 +0000 @@ -1182,9 +1182,9 @@ addStickyAnnotation(sta, plot, area, lineStyle, textStyle); } - // The not yet implemented other Text Annotations. + // Other Text Annotations. for (XYTextAnnotation ta: fa.getTextAnnotations()) { - // TODO implement, one we have textannotations + plot.getRenderer().addAnnotation(ta, org.jfree.ui.Layer.FOREGROUND); } // Hyks. @@ -1460,7 +1460,8 @@ // Add all annotations to our annotation pool. annotations.setTheme(theme); - annotations.setLabel(facet.getDescription()); + if (facet != null) + annotations.setLabel(facet.getDescription()); addAnnotations(annotations, visible); }