We're trying to create a chart theme similar to the Eye Candy Sixties theme supplied with 3.5.2
There are many, many files in the demo which reference this theme, and I can't get a handle on how these files interact, or even if some of them are only required only for the demo build.
Can anyone give me an overview on how the pieces fit together? I'm attaching the directory structure of all the chart theme files I've identified.
When I am working with Chart Themes I export them to a jar (version 3.7 of iReport has a feature for this). Then I add the jar to the iReport classpath for designing and testing. When it is time to deploy I make sure the jar goes into the application classpath with all the other jars.
Thanks, but this theme isn't like the those created using the theme editor. It's got its own class/xml files and is mentioned in several others. I can't figure out what's needed -
I was just looking at the JasperReports reference. There is a setting for the chart theme. This could be part of the missing puzzle you are looking for. This could be set in the jasperreports.properties file (in the classes folder of a web application) or within the report definition itself as a property.
OK. I have done some more research. It seems chart themes is more of an extension of JasperReports, rather than part of the core.
If you look in JasperServer there is a jar file called jasperreports-chart-themes-x.jar. Within that jar are the classes and xml files you are mentioning. iReport contains something similar in its classpath. These classes/xml files are required for JasperReports to be able to make use of the JRCTX file. The pom file included in the samples generates these jars so you can add them to you own app if you plan to use themes.
Once these files have been deployed to the classpath you can add a JRCTX to the classpath. You will also need to set the appropriate properties files referencing your theme. I notice the new version of iReport 3.7 creates this file for you when you export your them to a jar.