drawing chart on non swing components

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mack

drawing chart on non swing components

Post by Mack » Tue Jun 11, 2002 3:20 pm

Hello

Is there anyway I can draw a jfreechart on a non-swing component. By possibly using the Graphics2D object?

Thak you

David Gilbert

Re: drawing chart on non swing components

Post by David Gilbert » Tue Jun 11, 2002 5:06 pm

JFreeChart is designed to use only the methods in Graphics2D. The ChartPanel class (formerly JFreeChartPanel) is provided only as a convenience for displaying charts in a Swing user interface...you are not required to use it.

One example using Graphics2D is documented in jfreechart2pdf-v2.pdf, a file you can download from the JFreeChart project page:

http://sourceforge.net/projects/jfreechart

This document describes how to generate charts in PDF format using JFreeChart and iText (a free class library for generating PDF files).

Regards,

DG.

Locked