View Full Version : source hacking

07-02-2002, 09:10 AM

I want to display a gob of data in diffrent ways in diffrent groups.
For example, in group one, I want to show column 3,4,8
and in group two I want to show column 1,2 with some fancy color.

Is this possible? If not, where would be a good place to start hacking?
And how much work would it be? Im on a tight schedule...
I suppose the easiest solution would be to have several items-tags
and then add a new parameter to the group tag, specifing what item
tag it should use.

I'm not too keen of spending 1000$ on a java reporting system which will only be slightly better than JFreereport.

Oh, and JFreeChart is great :-)

Thomas "Turbofish" Hellstr

07-03-2002, 03:49 PM

yes, it is possible, and not much hacking is required. There exists a function called ElementVisibilitySwitchFunction, which triggers the visibility of an report element (here a rectangle-shape-element) for every other line.

All you have to do is to change the behaviour of this function to fit you needs. You can access the groups using the ReportEvent given in every callback method of the Function.

Elements for an Band can be retrieved with Band.getElement("name"); and
the elements visibility is triggerd using Element.setVisible (boolean).

Have more fun,
said Thomas

I can't resist, I have to quote my fortune programm :)
"Real programmers disdain structured programming. Structured programming is for compulsive neurotics who were preaturely toilet-trained. They wear neckties and carefully line up pencils on otherwise clear desks."