Title and subtitles in same line

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Sianis
Posts: 4
Joined: Tue Aug 11, 2009 11:35 am
antibot: No, of course not.

Title and subtitles in same line

Post by Sianis » Thu Aug 13, 2009 10:24 am

Is it possible that the title and subtitles be in same line and not below?

Or can I create title contains different fonts and paint?

Thanks for your help!

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Title and subtitles in same line

Post by paradoxoff » Thu Aug 13, 2009 9:41 pm

AFAIK, AttributedStrings are not supported by Titles.
You can create a BlockContainer with a FlowArrangement, add the titles that you want to the BlockContainer, use that BlockContainer to create a CompositeTitle, and add the CompositeTitle to the chart.

Sianis
Posts: 4
Joined: Tue Aug 11, 2009 11:35 am
antibot: No, of course not.

Re: Title and subtitles in same line

Post by Sianis » Fri Aug 14, 2009 9:10 am

Thank you!

Works great!

Locked