Assigning URLs to a TextTopic string

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
avanidhar
Posts: 16
Joined: Wed Jun 11, 2008 10:47 pm

Assigning URLs to a TextTopic string

Post by avanidhar » Mon Jul 07, 2008 3:32 pm

Hi,

I am working on a charting application where i need to link a piece of text from my Subtitle to a separate page. I was thinking of creating an imagemap and then assigning the URL using servlets. But i am not able to obtain the title or subtitle text from the chart to do so.
Can anyone guide me as to how i can create a URL from the Subtitle text?

Thanks

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Jul 08, 2008 3:35 pm

If you call setURLText() on the TextTitle object that you are using for your subtitle, then the ImageMapUtilities class should create a link for it in the HTML image map.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked