David, I have got a question about the automatic redraw of the graph at certain ponts. Bear with me while I explain what I am doing and the problem that I am seeing. First I am using version 0.9.1 with JDK1.4.
I am using the scatter plot with a lot of extensions that I have been adding to it the plot to make it interactive. I have written code that allows the user to select a point or draw a region on the graph to select multiple points. This all work great. Most of the time. There are two instances that I am having problems with.
One is when the user start to draw the region and then moves the mouse outside of the drawing region of the graph. I can track the mouse ok, but if user is outside the graph for a second then the whole graph is readrawn. I can not determine the source of the request to redraw the graph. This does not happen in the zoom rectangle functionality that you implemented. What is firing this redraw request? Is there an event somewhere that is doing this?
The second one is a lot harder for me to locate. It only happens intermittently and in a non-reproducalbe manner. The way that I allow the user to select the custom region is to track where the user moves the mouse and draw lines between the points that the mouse dragged method gives me. This gives it the appearance that they are drawing a continuous line. Works great.
But the user will be drawing the circles and then for no apparent reason, the ability for the application to show the lines on the graph disappears. The lines are still there, or at least I have all the points from the line, cause the circle is completed and gets drawn. But up to that point there is no lines to indicate that the circle is being completed.
These problems are very weird and have a lot to do with what I have added on, but I thought that you might be able to poitn me in the correct location.
thanks
kmd
Redraw of Graph
Re: Redraw of Graph
Hi Keith,
I'm not sure where the problem is coming from. Making interactive GUIs work is complex...anyone else have any ideas?
Regards,
DG.
I'm not sure where the problem is coming from. Making interactive GUIs work is complex...anyone else have any ideas?
Regards,
DG.