I have a need to have some text formatted as a superscript in a legend label. Basically I want to do this for footnoting purposes.
Is this currently supported?
If not, how would I go about implementing this?
If it makes it easier, the superscript text could be at the end of the label.
Legend Superscripts
-
- Posts: 35
- Joined: Tue Mar 28, 2006 1:10 am
- Location: La Jolla
- Contact:
-
- Posts: 13
- Joined: Mon Aug 14, 2006 9:14 pm
-
- Posts: 13
- Joined: Mon Aug 14, 2006 9:14 pm
-
- Posts: 35
- Joined: Tue Mar 28, 2006 1:10 am
- Location: La Jolla
- Contact:
Yes
I'm sorry I didn't mention it, but I think the links lay out the problems with this approach. We decided, for our purposes, it was good enough. It looks like the amount of additional work to get uniform sizes and font independence is a lot, and we didn't consider it worth the cost. If we had had to include other characters, beyond the limited set this method supports, I think we'd have made the investment in a more general approach, which would have solved these problems as well. But this, warts and all, is the way we've gone about it; I hope it works for you, too.
-
- Posts: 13
- Joined: Mon Aug 14, 2006 9:14 pm
Thanks for the info.
Unfortunately this doesn't work for me so I'm back at square 1. I'm looking into other options. It might be interesting to see if I can change the code to use JLabels to display the text which would then allow me to use basic HTML.
I looked into AttributedString, but it is buggy when it comes to Superscripts and Subscripts.
Unfortunately this doesn't work for me so I'm back at square 1. I'm looking into other options. It might be interesting to see if I can change the code to use JLabels to display the text which would then allow me to use basic HTML.
I looked into AttributedString, but it is buggy when it comes to Superscripts and Subscripts.