Hi David,
please give some hints, what would be a prefered solution for showing multiple selections rectangles
without having to redraw all the underlying series.
There are up to 100 series in a plot with up to 100.000 items each.
So if the selection rectangle is drawn in the series renderer, it is very slow,
because for each change of selection, all items for all series have to be redrawn.
Is there any layering or annotation or whatever to do this?
regards
markus
Layer for selection of curve elements (selectionrectangles)
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: Layer for selection of curve elements (selectionrectangl
I haven´t really understood what you want to achieve.
"Selection rectangles" sounds like the default seelction mechanism that is implemented in the ChartPanel class and delegates mouse operations to the underlying plots once a mouse operation is consideredto be finished. But there is only one selection rectangle possible at a time, regardless of the size of the dataset. And the series are not "redrawn" when the mouse operation is still in progress. If the mouse operation is complete and the plot is zoomed, then all visible items need to be redrawn.
Do you want to select items and then highlight the selected items in the renderer by e.g. a different outline stroke?
What version of JFree dou you use?
"Selection rectangles" sounds like the default seelction mechanism that is implemented in the ChartPanel class and delegates mouse operations to the underlying plots once a mouse operation is consideredto be finished. But there is only one selection rectangle possible at a time, regardless of the size of the dataset. And the series are not "redrawn" when the mouse operation is still in progress. If the mouse operation is complete and the plot is zoomed, then all visible items need to be redrawn.
Do you want to select items and then highlight the selected items in the renderer by e.g. a different outline stroke?
What version of JFree dou you use?
Re: Layer for selection of curve elements (selectionrectangl
yes thats exactly what i want..
"select items and then highlight the selected items in the renderer by e.g. a different outline stroke"
using jfreechart 1.0.19...
regards markus
"select items and then highlight the selected items in the renderer by e.g. a different outline stroke"
using jfreechart 1.0.19...
regards markus
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: Layer for selection of curve elements (selectionrectangl
And where exactly do you need help?
A special "item selection" is not possible with JFree 1.0.19. it should be possible with the new FSE.
Do you just need to speed up the rendering after the selection state of an item has been changed? In that case, I suggest to look at the SamplingXYLineAndShapeRenderer that I wrote a couple of years ago.
Or do you need help with implementing an"item selection mechanism"?
A special "item selection" is not possible with JFree 1.0.19. it should be possible with the new FSE.
Do you just need to speed up the rendering after the selection state of an item has been changed? In that case, I suggest to look at the SamplingXYLineAndShapeRenderer that I wrote a couple of years ago.
Or do you need help with implementing an"item selection mechanism"?
Re: Layer for selection of curve elements (selectionrectangl
Thanks, yes
i'll have to speed up the rendering after the selection state of an item has been changed
I first will have a look at the SamplingXYLineAndShapeRenderer ...
thanks
i'll have to speed up the rendering after the selection state of an item has been changed
I first will have a look at the SamplingXYLineAndShapeRenderer ...
thanks