Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
2182:5ff481ab24a1 | 2183:a79d5cd26083 |
---|---|
1180 // The 'Sticky' Annotations (at axis, with line and text). | 1180 // The 'Sticky' Annotations (at axis, with line and text). |
1181 for (StickyAxisAnnotation sta: fa.getAxisTextAnnotations()) { | 1181 for (StickyAxisAnnotation sta: fa.getAxisTextAnnotations()) { |
1182 addStickyAnnotation(sta, plot, area, lineStyle, textStyle); | 1182 addStickyAnnotation(sta, plot, area, lineStyle, textStyle); |
1183 } | 1183 } |
1184 | 1184 |
1185 // The not yet implemented other Text Annotations. | 1185 // Other Text Annotations. |
1186 for (XYTextAnnotation ta: fa.getTextAnnotations()) { | 1186 for (XYTextAnnotation ta: fa.getTextAnnotations()) { |
1187 // TODO implement, one we have textannotations | 1187 plot.getRenderer().addAnnotation(ta, org.jfree.ui.Layer.FOREGROUND); |
1188 } | 1188 } |
1189 | 1189 |
1190 // Hyks. | 1190 // Hyks. |
1191 for (HYKFactory.Zone zone: fa.getBoxes()) { | 1191 for (HYKFactory.Zone zone: fa.getBoxes()) { |
1192 // For each zone, create a box to fill with color, a box to draw | 1192 // For each zone, create a box to fill with color, a box to draw |
1458 ){ | 1458 ){ |
1459 logger.debug("doAnnotations"); | 1459 logger.debug("doAnnotations"); |
1460 | 1460 |
1461 // Add all annotations to our annotation pool. | 1461 // Add all annotations to our annotation pool. |
1462 annotations.setTheme(theme); | 1462 annotations.setTheme(theme); |
1463 annotations.setLabel(facet.getDescription()); | 1463 if (facet != null) |
1464 annotations.setLabel(facet.getDescription()); | |
1464 addAnnotations(annotations, visible); | 1465 addAnnotations(annotations, visible); |
1465 } | 1466 } |
1466 | 1467 |
1467 | 1468 |
1468 /** | 1469 /** |