Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StickyAxisAnnotation.java @ 1167:f1c9bfb07ba7
Fix crash when StickyAxisAnnotation should be drawn without proper axis
information. User-directed issues remain ( flys/issue303 ).
flys-artifacts/trunk@2712 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 13 Sep 2011 06:30:10 +0000 |
parents | 4da9f058fed6 |
children | f708120cb7bc |
comparison
equal
deleted
inserted
replaced
1166:865ee1e19c62 | 1167:f1c9bfb07ba7 |
---|---|
229 PlotRenderingInfo info) { | 229 PlotRenderingInfo info) { |
230 | 230 |
231 if (info == null) | 231 if (info == null) |
232 return; | 232 return; |
233 | 233 |
234 if (domainAxis == null || rangeAxis == null | |
235 || domainAxis.getRange() == null | |
236 || rangeAxis.getRange() == null | |
237 ) { | |
238 logger.error("Annotation cannot be drawn (missing axis)."); | |
239 return; | |
240 } | |
241 | |
234 // Calculate the bounding box. | 242 // Calculate the bounding box. |
235 ChartRenderingInfo chartInfo = info.getOwner(); | 243 ChartRenderingInfo chartInfo = info.getOwner(); |
236 | 244 |
237 PlotOrientation orientation = plot.getOrientation(); | 245 PlotOrientation orientation = plot.getOrientation(); |
238 RectangleEdge domainEdge = Plot.resolveDomainAxisLocation( | 246 RectangleEdge domainEdge = Plot.resolveDomainAxisLocation( |