behavior of abstractXYDataset

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
hugues
Posts: 18
Joined: Tue Jul 04, 2006 8:59 am
Contact:

behavior of abstractXYDataset

Post by hugues » Thu Sep 14, 2006 5:12 pm

Hello,
i am using a class that extends abstractXYDataset and I thought it was working like this :
call to getSeriesCount to see how many series we have
then for each series getItemCount(int series) to see how many points we have in the series
then for each point getXValue and getYValue.

but what I see is that :
- getItemCount is called more than once for a serie.
- the class get a point from serie 1 then from serie 2 then serie 1 again then serie 3.
Is that correct ?
With that, I have performance probleme because I do things in getItemCount.

thanks for answering. Hugues
SAMTECH, Integrating CAE towards Professional Solutions : www.samcef.com

hugues
Posts: 18
Joined: Tue Jul 04, 2006 8:59 am
Contact:

Post by hugues » Fri Sep 15, 2006 10:18 am

The problem seems to be on my side :oops:
SAMTECH, Integrating CAE towards Professional Solutions : www.samcef.com

Locked