Layer for selection of curve elements (selectionrectangles)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
olbrich
Posts: 19
Joined: Fri Dec 27, 2013 9:39 am
antibot: No, of course not.

Layer for selection of curve elements (selectionrectangles)

Post by olbrich » Fri May 22, 2015 2:02 pm

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

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Layer for selection of curve elements (selectionrectangl

Post by paradoxoff » Sat May 23, 2015 9:31 am

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?

olbrich
Posts: 19
Joined: Fri Dec 27, 2013 9:39 am
antibot: No, of course not.

Re: Layer for selection of curve elements (selectionrectangl

Post by olbrich » Sun May 24, 2015 7:16 am

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

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Layer for selection of curve elements (selectionrectangl

Post by paradoxoff » Tue May 26, 2015 11:52 am

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"?

olbrich
Posts: 19
Joined: Fri Dec 27, 2013 9:39 am
antibot: No, of course not.

Re: Layer for selection of curve elements (selectionrectangl

Post by olbrich » Tue May 26, 2015 1:13 pm

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

Locked