Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » To slow scrolling with ScrollPane
To slow scrolling with ScrollPane [message #224257] Thu, 12 October 2006 20:18 Go to next message
Eclipse UserFriend
Originally posted by: zdam.gmx.ch

Hello !

I have been using draw2d library (not gef) and ScrollPane. The figure
presented in this ScrollPane is a kind of diagram with some Rectangles
and Connections and the scrolling is ok, but for big diagram it is very
slowly. Without the connections everything is enough fast. How can it be
done, that the scrolling goes fast also with connections used ?
The solution with scrolling some kind of an image is not applicable,
because the user can do some modifications on the diagram, so the bounds
of figures are set and Rectangles change the positions.

Thanks in advance,
Zeljko
To slow scrolling because ShortestPathConnectionRouter [message #224298 is a reply to message #224257] Fri, 13 October 2006 09:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zdam.gmx.ch

I have seen, that the scrolling is slow because of usage of
ShortestPathConnectionRouter. How it is possible to disable the process of
revalidation in ShortestPathConnectionRouter during the scrolling ?

Zeljko
Re: To slow scrolling because ShortestPathConnectionRouter [message #225047 is a reply to message #224298] Tue, 24 October 2006 15:56 Go to previous message
Eclipse UserFriend
Originally posted by: none.ibm.com

Please refer to the Logic example for the "hack" which ignores figure moved
events that occur as a result of scrolling or zooming.

Basically, I think your anchor needs to check which figure moved, and if it
is the viewport or zoomed layer or something, just pretend it never
happened.

Ideally, a Connection would only listen to the path of figures that goes
from the connection to an anchor's owner figure (if it has one). But, no one
has time to implement this special form of ancestor notification. You can
just use the workaround above.

"Zeljko" <zdam@gmx.ch> wrote in message
news:51d5677abea7d33e16ee1d9d2ff37aa9$1@www.eclipse.org...
>I have seen, that the scrolling is slow because of usage of
>ShortestPathConnectionRouter. How it is possible to disable the process of
>revalidation in ShortestPathConnectionRouter during the scrolling ?
>
> Zeljko
>
Previous Topic:FigureCanvas Transparency (regression in 3.2?)
Next Topic:suggestions for 3.3
Goto Forum:
  


Current Time: Mon Oct 18 23:16:34 GMT 2021

Powered by FUDForum. Page generated in 0.02137 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top