Hi,
Im using XYPointerAnnotations to mark some points on a graph to the user.
I would like to make the label on the XYPointerAnnotation printed vertically. The setAngle method sets the angle for the arrow, but I cannot find a method to set the angle of the label.
I have tried using a seperate XYTextAnnotation, but it is hard to keep it grouped with the pointer when the user zooms in.
Any help would be appreciated.
Ian
Rotate label text on XYPointerAnnotation
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I took a look at the drawing code, and it doesn't do any rotation on the text, so you'd need to modify that. The XYPointerAnnotation class does inherit the text rotation settings from XYTextAnnotation, but doesn't use them. I guess that could be considered a bug. I hope to come back to this.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

