|
|
|
|
|
|
iReport
 
Forums >  iReport Discussion/Help >  Sample chart themes  >
   
Go to bottom
  • Page:
  •  1 
iReport Discussion/Help Topic:
#69598
Sample chart themes 01/13/2010 16:48  

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.

Thanks -

Code:
chartthemes\build\classes

	jasperreports_extension.properties
	jasperreports.properties
	AllCharts.properties
	BarChartCustomizer.class
	ChartThemesApp.class
	
chartthemes\build\classes\net\sf\jasperreports\chartthemes

	ChartThemeMapBundle.class
	
chartthemes\build\classes\net\sf\jasperreports\chartthemes\spring

	AegeanChartTheme.class
	ChartThemesConstants$1.class
	ChartThemesConstants$2.class
	ChartThemesConstants$3.class
	ChartThemesConstants.class
	ChartThemesUtilities.class
	EyeCandySixtiesChartTheme.class
	GenericChartTheme.class
	GradientBarRenderer3D.class
	GradientXYBubbleRenderer.class
	ScaledDialPointer.class
	ScaledDialRange.class
	ScaledDialScale.class
	ScaledDialValueIndicator.class
	SquareXYAreaRenderer.class	
	
chartthemes\build\classes\net\sf\jasperreports\chartthemes\spring\beans

	aegeanChartPropertiesBean.xml
	chartConstantsBean.xml
	chartThemesBeans.xml
	defaultChartPropertiesBean.xml
	defaultChartTypePropertiesBean.xml
	
chartthemes\lib

	castor-1.2.jar
	
chartthemes\src

	AllCharts.properties
	BarChartCustomizer.java
	ChartThemesApp.java
	jasperreports.properties
	jasperreports_extension.properties

chartthemes\src\net\sf\jasperreports\chartthemes

	ChartThemeMapBundle.java    
	
chartthemes\src\net\sf\jasperreports\chartthemes\spring
	
	AegeanChartTheme.java
	ChartThemesConstants.java
	ChartThemesUtilities.java
	EyeCandySixtiesChartTheme.java
	GenericChartTheme.java
	ScaledDialPointer.java
	ScaledDialRange.java
	ScaledDialScale.java
	ScaledDialValueIndicator.java

chartthemes\src\net\sf\jasperreports\chartthemes\spring\beans

	aegeanChartPropertiesBean.xml
	chartConstantsBean.xml
	chartThemesBeans.xml
	defaultChartPropertiesBean.xml
	defaultChartTypePropertiesBean.xml
	eyeCandySixtiesChartPropertiesBean.xml
	
chartthemes\target

	jasperreports-chart-themes-3.5.1.jar
	
chartthemes\target\classes

	jasperreports-extension.properties
	
chartthemes\target\classes\net\sf\jasperreports\chartthemes\spring

AegeanChartTheme.class
	ChartThemesConstants$1.class
	ChartThemesConstants$2.class
	ChartThemesConstants$3.class
	ChartThemesConstants.class
	ChartThemesUtilities.class
	EyeCandySixtiesChartTheme.class
	GenericChartTheme.class
	GradientBarRenderer3D.class
	GradientXYBubbleRenderer.class
	ScaledDialPointer.class
	ScaledDialRange.class
	ScaledDialScale.class
	ScaledDialValueIndicator.class
	SquareXYAreaRenderer.class

chartthemes\target\classes\net\sf\jasperreports\chartthemes\spring\beans

	aegeanChartPropertiesBean.xml
	chartConstantsBean.xml
	chartThemesBeans.xml
	defaultChartPropertiesBean.xml
	defaultChartTypePropertiesBean.xml
	eyeCandySixtiesChartPropertiesBean.xml
	
chartthemes\target\maven-archiver

	pom.properties
pmccall
user photo
Project Roles
Posts: 13
graphgraph
Karma: 0
graphgraph
 
#69602
RE:Sample chart themes 01/13/2010 17:05  

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.

I hope this helps.

lshannon
user photo
Project Roles
Posts: 183
graphgraph
Karma: 10
graphgraph
 
#69613
RE:Sample chart themes 01/13/2010 18:04  

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 -

pmccall
user photo
Project Roles
Posts: 13
graphgraph
Karma: 0
graphgraph
 
#69614
RE:Sample chart themes 01/13/2010 18:13  

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.

http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/config.reference.html#net.sf.jasperreports.chart.theme

lshannon
user photo
Project Roles
Posts: 183
graphgraph
Karma: 10
graphgraph
 
#69618
RE:Sample chart themes 01/13/2010 20:05  

I found that setting, but it doesn't help me understand the usage of the specific Eye Candy Sixties files -

eyeCandySixtiesChartPropertiesBean.xml
EyeCandySixtiesChartTheme.java / .class
EyeCandySixtiesSettingsFactory.java / .class

Or the files which have mention of Eye Candy Sixties within them -

There *IS* an eye.candy.sixties.jrctx file, but it doesn't seem to have any relevance to the theme itself

pmccall
user photo
Project Roles
Posts: 13
graphgraph
Karma: 0
graphgraph
 
#69666
RE:Sample chart themes 01/14/2010 17:47  

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.

I hope this helps.

 



Post Edited by lshannon at 01/14/2010 18:03
lshannon
user photo
Project Roles
Posts: 183
graphgraph
Karma: 10
graphgraph
 
Go to top
  • Page:
  • 1
 
 
JasperForge Quotes
"JasperReports is really good!"
 
Founding Member, Open Solutions Alliance       Hot Jasper Projects on SOURCEFORGE.NET       Powered by EssentiaESP