Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Full-width child figures in a ScalableRootEditPart.
Full-width child figures in a ScalableRootEditPart. [message #237796] Thu, 09 August 2007 09:16 Go to next message
Marian Schedenig is currently offline Marian SchedenigFriend
Messages: 25
Registered: July 2009
Junior Member
Hi!

In my GEF editor, I have a few figures which should always have the same
width as the editor area (the RootFigure instance). If the user resizes
the window, I want my figures to adapt to the current width. However, I
also have a number of figures with a fixed width, so there is a minimum
size my RootFigure should have - if the editor window is too small,
scrollbars should appear. From what I know, I have to use
ScalableRootEditPart to get the correct scrolling behaviour.

In the figure of the edit part corresponding to my root model, I have a
custom layout manager which should handle these things. So far I've
figured out that the manager could simply ask the root figure (the
Draw2D RootFigure instance mentioned above) for its width and use that.
My problem is that the layout gets, of course, only called when the
layer bounds change - and thanks to ScalableRootEditPart, the bounds
will stretch when the window size increases, but they will stay the same
if the window size is reduced. Therefore, my layout's getPreferredSize()
method is never called, and therefore, my "full width figures" never get
the chance to inform their parent that their width should be reduced as
well.

Any hints how I could get the desired behaviour?

Thx,
Marian.
Re: Full-width child figures in a ScalableRootEditPart. [message #723908 is a reply to message #237796] Fri, 09 September 2011 20:31 Go to previous message
karthick9686@gmail.com Missing nameFriend
Messages: 41
Registered: July 2011
Member
i am also having the same problem . i have the figures which should expand to the ScalableRootEditPart . if you have found the solution please post it .
Previous Topic:adding layers to scalablerooteditpart
Next Topic:Markers for each EditPart?
Goto Forum:
  


Current Time: Sat Apr 20 02:50:39 GMT 2024

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

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

Back to the top