Skip to main content



      Home
Home » Eclipse Projects » GEF » Warning about using new features in GEF
Warning about using new features in GEF [message #7845] Wed, 05 June 2002 09:58 Go to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

ScrollingGraphicalViewer manages scrolling. This means it is unnecessary to
use a RootEditPart which contributes a ScrollPane figure. Do not use
GraphicalRootEditPart (or inherited) with the new scrolling viewer. The
only root which works with the viewer is the new FreeformRootEditPart. We
will add some more soon.

Overview does not work with the Scrolling viewer yet. This is because the
scrolling viewer uses SWT calls that copy a portion of the view during
scrolling. This copying would cause the overview Tab to create "cheese" on
the screen, since it isn't really supposed to scroll. We will provide an
Overview solution using native controls instead, which don't get copied.

FORGOTTEN FEATURE:
The concept of "Freeform" has been added to draw2d. A FreeForm figure is
one that can extend in 4 directions, based on its contents. The Logic
example now uses this, and, as a result, dragging part to the left or up
will extend the diagram in that direction. Previously the parts would just
get tucked away and occasionally lost. WARNING: the FreeFormViewport does
not calculate getPreferredSize() correctly. Therefore, you MUST configure
its ScrollPane or ScrollingGraphicalViewer to *always* display Scrollbars.
Failure to do this will result in an infinite loop during layout. This will
be fixed.
Re: Warning about using new features in GEF [message #8792 is a reply to message #7845] Mon, 10 June 2002 09:12 Go to previous message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

Hi!

"Randy Hudson" <none@ibm.com> schrieb im Newsbeitrag
news:adl4dg$43r$1@rogue.oti.com...

> FORGOTTEN FEATURE:
> The concept of "Freeform" has been added to draw2d. A FreeForm figure is
> one that can extend in 4 directions, based on its contents. The Logic
> example now uses this, and, as a result, dragging part to the left or up
> will extend the diagram in that direction. Previously the parts would
just
> get tucked away and occasionally lost. WARNING: the FreeFormViewport does
> not calculate getPreferredSize() correctly. Therefore, you MUST configure
> its ScrollPane or ScrollingGraphicalViewer to *always* display Scrollbars.
> Failure to do this will result in an infinite loop during layout. This
will
> be fixed.

Is it possible to implement an automatic scrolling when moving an EditPart
by dragging? The current implementation only updates ScrollBars when
dragging an EditPart to a new location outside of the current vissible area.

Cu, Gunnar
Previous Topic:Usage of Figure#revalidate and Figure#repaint
Next Topic:Overview causing a SWTError: No more handles
Goto Forum:
  


Current Time: Sat May 03 13:54:18 EDT 2025

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

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

Back to the top