|To slow scrolling with ScrollPane [message #224257]
||Thu, 12 October 2006 20:18
Originally posted by: zdam.gmx.ch|
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,
|Re: To slow scrolling because ShortestPathConnectionRouter [message #225047 is a reply to message #224298]
||Tue, 24 October 2006 15:56
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
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" <email@example.com> wrote in message
>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 ?
Powered by FUDForum
. Page generated in 0.02137 seconds