Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StickyAxisAnnotation.java @ 1089:e298c4d28927
Improved mainvalues rendering.
flys-artifacts/trunk@2592 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 26 Aug 2011 11:15:24 +0000 |
parents | 07878836ee0d |
children | 4da9f058fed6 |
comparison
equal
deleted
inserted
replaced
1088:1f5b92531f72 | 1089:e298c4d28927 |
---|---|
59 * @deprecated | 59 * @deprecated |
60 */ | 60 */ |
61 public StickyAxisAnnotation(String text, float x, float y) { | 61 public StickyAxisAnnotation(String text, float x, float y) { |
62 super(text, x, y); | 62 super(text, x, y); |
63 setStickyAxis(SimpleAxis.X_AXIS); | 63 setStickyAxis(SimpleAxis.X_AXIS); |
64 } | |
65 | |
66 | |
67 /** | |
68 * Constructor with implicit sticky x-axis. | |
69 * @param text the text to display. | |
70 * @param pos the position at which to draw the text and mark. | |
71 */ | |
72 public StickyAxisAnnotation(String text, float pos) { | |
73 this(text, pos, pos, SimpleAxis.X_AXIS); | |
64 } | 74 } |
65 | 75 |
66 | 76 |
67 /** | 77 /** |
68 * Constructor with given explicit axis. | 78 * Constructor with given explicit axis. |
288 } | 298 } |
289 g2.setPaint(getPaint()); | 299 g2.setPaint(getPaint()); |
290 TextUtilities.drawRotatedString(getText(), g2, anchorX, anchorY, | 300 TextUtilities.drawRotatedString(getText(), g2, anchorX, anchorY, |
291 getTextAnchor(), getRotationAngle(), getRotationAnchor()); | 301 getTextAnchor(), getRotationAngle(), getRotationAnchor()); |
292 // Draw outline. | 302 // Draw outline. |
293 if (false) { | 303 if (true) { |
294 g2.setStroke(getOutlineStroke()); | 304 g2.setStroke(getOutlineStroke()); |
295 g2.setPaint(getOutlinePaint()); | 305 g2.setPaint(getOutlinePaint()); |
296 g2.draw(hotspot); | 306 g2.draw(hotspot); |
297 } | 307 } |
298 | 308 |