Search found 24 matches

by Alexander
Thu Mar 31, 2005 9:41 am
Forum: JFreeChart
Topic: High Performance Apps
Replies: 43
Views: 104746

Hi, I've got one remark, you use a boolean bAddEntity for adding entities. Instead of setting that boolean where you do it, you could set it only if the line is realy drawn. This way an entity only is added if it realy is needed. if (state.workingLine.intersects(dataArea)) { // Set boolean bAddEntit...
by Alexander
Thu Mar 31, 2005 7:36 am
Forum: JFreeChart
Topic: Clicking on lines
Replies: 0
Views: 2098

Clicking on lines

Hi all, Several days ago someone posted a question about clicking on lines. I did some more research and came up with the following: Graphics2D has a method hit(Rectangle, Shape, boolean) that checks if Reactangle intersects with Shape. What I did for now is to get the EntityCollection of a chart an...
by Alexander
Wed Mar 23, 2005 10:01 am
Forum: JFreeChart
Topic: High Performance Apps
Replies: 43
Views: 104746

You left out the drawing of the entities completely? You could, for a start, use a boolean, so that an entity only is created if a line is drawn (like I do in the XYLineAndShapeRenderer).

Alexander
by Alexander
Tue Mar 22, 2005 10:13 am
Forum: JFreeChart
Topic: Click on a line
Replies: 11
Views: 14774

Hi all,

Can someone reply to this, if this is a correct way to solve this problem?

TiA,

Alexander
by Alexander
Fri Mar 18, 2005 10:24 am
Forum: JFreeChart
Topic: Click on a line
Replies: 11
Views: 14774

Hi all, I am working on something to make it possible to detect line clicks on XY chart. What I came up with is the following: Edit the XYLineAndShapeRenderer to create polygons for every line, create something like a XYEntityItem, add this "XYLineItem" to a List, make this List available to the out...
by Alexander
Wed Mar 16, 2005 10:14 am
Forum: JFreeChart
Topic: High Performance Apps
Replies: 43
Views: 104746

Hi, Thx for the code, will look into it a little more. Looks like I will have to change it so it doesn't use a TimeSeries anymore. I also tried to draw everything in at once using drawPolyline, but this gave some strange behaviour. If I resized my screen to become larger, at one point (something abo...
by Alexander
Tue Mar 15, 2005 9:51 am
Forum: JFreeChart
Topic: High Performance Apps
Replies: 43
Views: 104746

Hi, thx for the hints. Looking at the LineAndShape renderer I see that you use 2 separate passes for drawing the shapes and the lines, is there a reason to do it that way? Doing the drawing/creating of lines and shapes in one step makes much more sense, now it has to calculate the position for every...
by Alexander
Mon Mar 14, 2005 8:15 pm
Forum: JFreeChart
Topic: High Performance Apps
Replies: 43
Views: 104746

Great to hear that!

I will finalize my code some time this week, if you are interested I'm willing to post it here so you can use it.

I really need a very fast chart component, so if you have any more suggestions I'd like to hear it. I don't mind hacking in the jfreechart code.

Alexander
by Alexander
Mon Mar 14, 2005 4:19 pm
Forum: JFreeChart
Topic: Click on a line
Replies: 11
Views: 14774

Hi,

Did you get this working? I also need to be able to determine if a click was on a line.

TiA,

Alexander
by Alexander
Mon Mar 14, 2005 1:02 pm
Forum: JFreeChart
Topic: High Performance Apps
Replies: 43
Views: 104746

Hi,

This is kinda off topic for this forum, but are you using sax or dom? Sax is faster as dom. Besides that, what parser do you use? Might be some parser that is faster, but I don't remember which ones are fast/slow.

Also take a look at the properties of the parser, enable/disable validation etc.
by Alexander
Mon Mar 14, 2005 11:04 am
Forum: JFreeChart
Topic: High Performance Apps
Replies: 43
Views: 104746

Hi, I do have the same problem, but need to be able to show much more datapoints. I did look at the jfreechart code myself, and came up with some adjustments for XY charts. I do not know what type of chart you want to use. But in case of XY charts the following might help: In StandardXYItemRenderer ...
by Alexander
Thu Mar 10, 2005 8:25 am
Forum: JFreeChart
Topic: Added : dynamic data, zooming, adjust, move...
Replies: 50
Views: 92640

Hi all,

Just wondering, did anyone get a reply to this thread? I'm also interested in this code, but wondering if someone ever got a reply.

Alexander
by Alexander
Tue Mar 08, 2005 3:35 pm
Forum: JFreeChart
Topic: Pan/Scroll
Replies: 2
Views: 5551

Hi, In an older release there was an example of panning a XY chart. That example doesn't work with the 1.0.0rc, but the way it works is simple. And I think it can also be used on the gantt chart you want. What the example does is add a mouselistener and a mousemotionlistener to the chart panel. Usin...
by Alexander
Fri Mar 04, 2005 10:10 am
Forum: JFreeChart
Topic: Another dynamic data solution
Replies: 6
Views: 11310

Hi,

Same here, and besides only showing, we also need zooming/panning on these large datasets.

Alexander
by Alexander
Thu Mar 03, 2005 9:46 am
Forum: JFreeChart
Topic: Performance XYLine renderer and generalpath
Replies: 1
Views: 3322

Hi again,

It looks like JFreeChart is using a Line2D to draw the lines. So I need to do something else to get better performance. Does someone know of some ways to get better performance?

TiA