Skip to main content



      Home
Home » Archived » Visual Editor (VE) » ve gridBagLayout mechanism
ve gridBagLayout mechanism [message #91845] Fri, 20 May 2005 07:43 Go to next message
Eclipse UserFriend
Originally posted by: tom_edwards.gmx.net

Hi there!
I'm interested in the gridbaglayout mechanism that is used in the visual
editor for layouting figures.
In my project I would like implement a gef editor which allows to layout
draw2d components based on a gridBagLayout. what I have are
abstractGraphicalEditPart subclasses for all model objects. the figures
that correspond to these editPart classes can access gridBagConstraint
values which were calculated from an algorithm. what I would like to do is
to layout these figures according to their gridBagConstraints in the gef
editor.
how can I achieve this (since there is no such draw2d layout available)?
how is this done in the visual editor for the swing components? is it
possible to reuse some of the visual editor functionality for my problem.
Thanks for any help. Tom
Re: ve gridBagLayout mechanism [message #92006 is a reply to message #91845] Mon, 23 May 2005 13:06 Go to previous message
Eclipse UserFriend
Tom Edwards wrote:
> Hi there!
> I'm interested in the gridbaglayout mechanism that is used in the visual
> editor for layouting figures. In my project I would like implement a gef
> editor which allows to layout draw2d components based on a
> gridBagLayout. what I have are abstractGraphicalEditPart subclasses for
> all model objects. the figures that correspond to these editPart classes
> can access gridBagConstraint values which were calculated from an
> algorithm. what I would like to do is to layout these figures according
> to their gridBagConstraints in the gef editor.
> how can I achieve this (since there is no such draw2d layout available)?
> how is this done in the visual editor for the swing components? is it
> possible to reuse some of the visual editor functionality for my problem.
> Thanks for any help. Tom
>

The Visual editor does not implement the GridBagLayout per se. The laying-out is done by the Swing or SWT layout
managers.
VE provide specialized GridBagLayout feedbacks, layout setting dialog, and conversion policies.

btw. GridBag is quite a complicated layout. There simpler layouts out there that are more intuitive, like this one
http://www.jgoodies.com/freeware/forms/,
Re: ve gridBagLayout mechanism [message #607823 is a reply to message #91845] Mon, 23 May 2005 13:06 Go to previous message
Eclipse UserFriend
Tom Edwards wrote:
> Hi there!
> I'm interested in the gridbaglayout mechanism that is used in the visual
> editor for layouting figures. In my project I would like implement a gef
> editor which allows to layout draw2d components based on a
> gridBagLayout. what I have are abstractGraphicalEditPart subclasses for
> all model objects. the figures that correspond to these editPart classes
> can access gridBagConstraint values which were calculated from an
> algorithm. what I would like to do is to layout these figures according
> to their gridBagConstraints in the gef editor.
> how can I achieve this (since there is no such draw2d layout available)?
> how is this done in the visual editor for the swing components? is it
> possible to reuse some of the visual editor functionality for my problem.
> Thanks for any help. Tom
>

The Visual editor does not implement the GridBagLayout per se. The laying-out is done by the Swing or SWT layout
managers.
VE provide specialized GridBagLayout feedbacks, layout setting dialog, and conversion policies.

btw. GridBag is quite a complicated layout. There simpler layouts out there that are more intuitive, like this one
http://www.jgoodies.com/freeware/forms/,
Previous Topic:Need help with a design view cache/reload problem
Next Topic:VE activation
Goto Forum:
  


Current Time: Wed Jun 25 02:09:20 EDT 2025

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

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

Back to the top