Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Placing child figure at fixed relative position
Placing child figure at fixed relative position [message #226063] Sun, 05 November 2006 11:31 Go to next message
Andreas Walter is currently offline Andreas WalterFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

I wonder how I can place a child figure at a fixed position and
with a fixed size relative to the position and size of its parent
figure. Since I'm quite new to GEF/Draw2d, any help on this question-
which is not too hard, I suppose - would be appreciated.

Thanks in advance,
Andreas
Re: Placing child figure at fixed relative position [message #226083 is a reply to message #226063] Sun, 05 November 2006 19:02 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi Andreas,

I'd suggest you to take a look at the GEF layout manager classes - they
are in charge of laying out children figures for the parent figure. Also
you could take a look at layout managers in GMF open source project - they
are derived by extending GEF's layout managers.

Good starting points would be:
1) take a look at the Figure class see how layout manager is used
2) take a look at the LayoutManager interface and classes derived from it

Cheers,
Alex
Re: Placing child figure at fixed relative position [message #226097 is a reply to message #226063] Mon, 06 November 2006 05:59 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

The parent figure should return true for useLocalCoordinates(). The
CircuitFigure in the logic editor is an example of what you want to do.

"Andreas Walter" <awaltx@gmx.de> wrote in message
news:eiki3g$cvd$1@utils.eclipse.org...
> Hi,
>
> I wonder how I can place a child figure at a fixed position and
> with a fixed size relative to the position and size of its parent figure.
> Since I'm quite new to GEF/Draw2d, any help on this question-
> which is not too hard, I suppose - would be appreciated.
>
> Thanks in advance,
> Andreas
Previous Topic:Moving children figures
Next Topic:How to implement Container and Layout Policy
Goto Forum:
  


Current Time: Tue Apr 23 17:30:59 GMT 2024

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

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

Back to the top