Skip to main content



      Home
Home » Eclipse Projects » GEF » Draw2d Figures Docking
Draw2d Figures Docking [message #198376] Tue, 11 October 2005 05:18 Go to next message
Eclipse UserFriend
Originally posted by: luca.nononono.no

Hi all,

I'm trying to build an editor based on GEF which should have two figures
docked to the vertical borders of the editing area. Other elements will be
added in the remaining central area.

I've tried implementing a figure which overrides the set/getBounds
functions to properly set the right size but with wrong results.

I think the best way to solve my problem would be using Layout Managers,
but don't know how to dock the two figures and have the others painted in
the "free" area.

Can you point out a way to solve this problem?

Thank you,

Luca
Re: Draw2d Figures Docking [message #198386 is a reply to message #198376] Tue, 11 October 2005 09:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

Hi Luca,

extend XYLayout, override layout() by copy/pasting the code , identify your
2 figures and layout them
to your needs. For the others, let the original code do the work.
(Thats only a solution using a layoutmanager...there are a lots more!)
Regards, Ingo

"Luca" <luca@nononono.no> wrote in message
news:a238a8aed076b9222c9f28d514a55ba4$1@www.eclipse.org...
> Hi all,
>
> I'm trying to build an editor based on GEF which should have two figures
> docked to the vertical borders of the editing area. Other elements will be
> added in the remaining central area.
>
> I've tried implementing a figure which overrides the set/getBounds
> functions to properly set the right size but with wrong results.
>
> I think the best way to solve my problem would be using Layout Managers,
> but don't know how to dock the two figures and have the others painted in
> the "free" area.
>
> Can you point out a way to solve this problem?
>
> Thank you,
>
> Luca
>
Re: Draw2d Figures Docking [message #198420 is a reply to message #198376] Tue, 11 October 2005 12:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Use the BorderLayout.

"Luca" <luca@nononono.no> wrote in message
news:a238a8aed076b9222c9f28d514a55ba4$1@www.eclipse.org...
> Hi all,
>
> I'm trying to build an editor based on GEF which should have two figures
> docked to the vertical borders of the editing area. Other elements will be
> added in the remaining central area.
>
> I've tried implementing a figure which overrides the set/getBounds
> functions to properly set the right size but with wrong results.
>
> I think the best way to solve my problem would be using Layout Managers,
> but don't know how to dock the two figures and have the others painted in
> the "free" area.
>
> Can you point out a way to solve this problem?
>
> Thank you,
>
> Luca
>
Re: Draw2d Figures Docking [message #199222 is a reply to message #198386] Fri, 14 October 2005 06:09 Go to previous message
Eclipse UserFriend
Originally posted by: luca.nonono.no

Hi Ingo,

thank you for your help, your hint works!

Luca
Previous Topic:How to programmatically close the editor?
Next Topic:thinner palette UI when docked
Goto Forum:
  


Current Time: Wed Mar 12 00:38:54 EDT 2025

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

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

Back to the top