Printing CrosshirOverlay to PDF

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
cwells
Posts: 2
Joined: Thu Dec 08, 2011 9:09 pm
antibot: No, of course not.

Printing CrosshirOverlay to PDF

Post by cwells » Tue Dec 13, 2011 6:59 pm

I have successfully implemented the Developer guide technique of printing charts to PDF files. However I have started using the Overlay Crosshair mechanism, which I really like, but unlike the built in Crosshair mechanics of XYplot the overlay Crosshairs are added onto a layer on top of the chart and so the chart.draw(g2, r2D) method suggested in the Developer's Guide doesn't pass the CrossHairOverlay into the PDFTemplate.

Can someone give me a few tips on what to add and where to get this working? Should I implement something in JFreeChart.draw (where it seems like all the piece-parts are cobbled together Background/Titles/Plot), or should I tackle this somewhere else?

I am relatively new to Java but I am willing to take a crack at it if someone can point me in the right direction. Thank you in advance for your help.

Locked