Search found 9 matches

by Zanton
Wed Aug 23, 2006 12:55 pm
Forum: JFreeChart
Topic: changing the chart background
Replies: 1
Views: 2061

changing the chart background

I'd like to put a picture in the background of the chart instead the default white one. Is it possible ?
by Zanton
Thu Aug 03, 2006 1:57 pm
Forum: JFreeChart
Topic: Changing color of one point
Replies: 1
Views: 2453

Changing color of one point

How can I change the color of one point in a XYSeries chart ?

Thanks for helping !
by Zanton
Tue Aug 01, 2006 10:49 am
Forum: JFreeChart
Topic: Copy of a chart : problem of refreshing ?
Replies: 6
Views: 5351

Yes I do :) I just edited my previous post to tell you it doesn't change anything graphie1 being static or not.
by Zanton
Tue Aug 01, 2006 10:43 am
Forum: JFreeChart
Topic: Copy of a chart : problem of refreshing ?
Replies: 6
Views: 5351

It is used in a static method of the class.

Edit: I just tried not making it static, but it doesn't change anything.
by Zanton
Tue Aug 01, 2006 9:15 am
Forum: JFreeChart
Topic: Copy of a chart : problem of refreshing ?
Replies: 6
Views: 5351

In fact, I put the chart in a JPanel and I'm cloning this JPanel. I have to say I'm not sure I perfectly cloned the JPanel. I show you the concerned part of the code : public class WinSDF extends JPanel implements Cloneable { private XYDataset data = GenerateSDF.createDataset(); private static int n...
by Zanton
Mon Jul 31, 2006 12:33 pm
Forum: JFreeChart
Topic: Copy of a chart : problem of refreshing ?
Replies: 6
Views: 5351

Copy of a chart : problem of refreshing ?

Here is my problem : I have a JTabbedPane with two tabs which have the same structure : a Jtable and under a JFreeChart (from XYDataset). The JTable are different but I'd like to have the same chart on the two tabs. I implemented the Cloneable interface to do it, and I have my chart on both tabs, bu...
by Zanton
Mon Jul 24, 2006 9:25 am
Forum: JFreeChart
Topic: CombinedDomainXYPlot : removing a chart and adding another
Replies: 0
Views: 1700

CombinedDomainXYPlot : removing a chart and adding another

Hello, I'm using a CombinedDomainXYPlot with 4 charts and I'd like to remove one of the chart and replace it by another when I click on a button. I thought I could do it by using the add and remove method, but it doesn't work, I'm getting an error :( Thanks for helping. Edit : found, I have just not...
by Zanton
Thu Jul 13, 2006 2:09 pm
Forum: JFreeChart
Topic: getting coordinates with XYSeries
Replies: 2
Views: 3883

Yes it works !
Thank you !

Edit : to what corresponds the Item obtained with getItem ? I thought it was the index of the (x,y) in the series but it seems not.
by Zanton
Thu Jul 13, 2006 1:22 pm
Forum: JFreeChart
Topic: getting coordinates with XYSeries
Replies: 2
Views: 3883

getting coordinates with XYSeries

I have a XYSeries chart and I want to get the coordinates of a point when I'm clicking on it. I implemented the MouseClicked() method and I use event.getTrigger().getX() and event.getTrigger().getY() to get the Java2D screen coordinates. I know I have yet to use the translateJava2DtoValue() (or mayb...