Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StickyAxisAnnotation.java @ 1711:f708120cb7bc
Fix flys/issue363 (W-INFO/ Abflusskurve, Extremwert-Rendering).
flys-artifacts/trunk@2975 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 17 Oct 2011 08:45:26 +0000 |
parents | f1c9bfb07ba7 |
children | 6cdc7a77d3d4 |
comparison
equal
deleted
inserted
replaced
1710:055f32a5388a | 1711:f708120cb7bc |
---|---|
275 anchorX = anchorY; | 275 anchorX = anchorY; |
276 anchorY = tempAnchor; | 276 anchorY = tempAnchor; |
277 } | 277 } |
278 | 278 |
279 // Always draw the small line at axis. | 279 // Always draw the small line at axis. |
280 g2.setStroke(getOutlineStroke()); | |
281 g2.setPaint(getPaint()); | |
280 drawAxisMark(g2, dataArea, domainAxis, rangeAxis, domainEdge, | 282 drawAxisMark(g2, dataArea, domainAxis, rangeAxis, domainEdge, |
281 rangeEdge, orientation); | 283 rangeEdge, orientation); |
282 | 284 |
283 g2.setFont(getFont()); | 285 g2.setFont(getFont()); |
284 Shape hotspot = TextUtilities.calculateRotatedStringBounds( | 286 Shape hotspot = TextUtilities.calculateRotatedStringBounds( |
299 } | 301 } |
300 } | 302 } |
301 | 303 |
302 // Actuall drawing. | 304 // Actuall drawing. |
303 if (getBackgroundPaint() != null) { | 305 if (getBackgroundPaint() != null) { |
304 g2.setPaint(getBackgroundPaint()); | 306 g2.setPaint(getBackgroundPaint()); |
305 g2.fill(hotspot); | 307 g2.fill(hotspot); |
306 } | 308 } |
307 g2.setPaint(getPaint()); | 309 g2.setPaint(getPaint()); |
308 TextUtilities.drawRotatedString(getText(), g2, anchorX, anchorY, | 310 TextUtilities.drawRotatedString(getText(), g2, anchorX, anchorY, |
309 getTextAnchor(), getRotationAngle(), getRotationAnchor()); | 311 getTextAnchor(), getRotationAngle(), getRotationAnchor()); |
316 | 318 |
317 // Add info that we have drawn this Annotation. | 319 // Add info that we have drawn this Annotation. |
318 addEntity(info, hotspot, rendererIndex, getToolTipText(), getURL()); | 320 addEntity(info, hotspot, rendererIndex, getToolTipText(), getURL()); |
319 } | 321 } |
320 } | 322 } |
321 | 323 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |
322 |