CategoryMarker with vertical text
-
- Posts: 15
- Joined: Wed Nov 07, 2007 6:20 pm
CategoryMarker with vertical text
Is it possible to create a CategoryMarker with the label displayed vertically?
-
- Posts: 15
- Joined: Wed Nov 07, 2007 6:20 pm
Re: CategoryMarker with vertical text
I figured it out.
You have to do it in the font itself:
categoryMarker.setLabelFont(categoryMarker.getLabelFont().deriveFont(AffineTransform.getRotateInstance(Math.PI / -2.0)));
You have to do it in the font itself:
categoryMarker.setLabelFont(categoryMarker.getLabelFont().deriveFont(AffineTransform.getRotateInstance(Math.PI / -2.0)));