Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Possible to change location of a child in a flowlayout?
Possible to change location of a child in a flowlayout? [message #164700] Thu, 20 January 2005 10:32 Go to next message
Eclipse UserFriend
Originally posted by: marlu942.student.liu.se

Hi fellow GEFers,

I have a figure with a FlowLayout as layout manager.
I would now like to change the location for one of its children in order
to simulate that the child has a margin.

Is it feasible or do I have to use XYLayout in order to manipulate location?

Regards,
Marcus Ludvigson
Re: Possible to change location of a child in a flowlayout? [message #164723 is a reply to message #164700] Thu, 20 January 2005 14:25 Go to previous messageGo to next message
Brian Fernandes is currently offline Brian FernandesFriend
Messages: 68
Registered: July 2009
Member
Marcus,

I don't think you'd get too much control over individual children.

If you change the order of your children, the location will change, but
I'm guessing you need something more specific?

I don't really know what you wish to achieve, I guess you can override the
FlowLayout to do your own thing, or you can place the desired child in a
proxy parent which has XYLayout and place that proxy in the your
FlowLayout.

Hope this helps,
Brian.

Marcus Ludvigson wrote:

> Hi fellow GEFers,

> I have a figure with a FlowLayout as layout manager.
> I would now like to change the location for one of its children in order
> to simulate that the child has a margin.

> Is it feasible or do I have to use XYLayout in order to manipulate location?

> Regards,
> Marcus Ludvigson
Re: Possible to change location of a child in a flowlayout? [message #164811 is a reply to message #164723] Thu, 20 January 2005 18:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marlu942.student.liu.se

Brian,

I'm building a GUI-editor with support for a Docking Layout-type that I
simulated using FlowLayout/ToolbarLayout. But then came margins as the
next development item. I just love incremental development :-).

I changed layout manager to DelegatingLayout so that each child can
handle each own layout. Easier to slip while coding, but necessary for
my needs.

Thanks for your reply,
Marcus Ludvigson

Brian Fernandes wrote:
> Marcus,
>
> I don't think you'd get too much control over individual children.
>
> If you change the order of your children, the location will change, but
> I'm guessing you need something more specific?
>
> I don't really know what you wish to achieve, I guess you can override
> the FlowLayout to do your own thing, or you can place the desired child
> in a proxy parent which has XYLayout and place that proxy in the your
> FlowLayout.
>
> Hope this helps,
> Brian.
>
> Marcus Ludvigson wrote:
>
>> Hi fellow GEFers,
>
>
>> I have a figure with a FlowLayout as layout manager.
>> I would now like to change the location for one of its children in
>> order to simulate that the child has a margin.
>
>
>> Is it feasible or do I have to use XYLayout in order to manipulate
>> location?
>
>
>> Regards,
>> Marcus Ludvigson
>
>
>
Re: Possible to change location of a child in a flowlayout? [message #165095 is a reply to message #164700] Fri, 21 January 2005 19:55 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

"Marcus Ludvigson" <marlu942@student.liu.se> wrote in message
news:cso1cp$of8$1@www.eclipse.org...
> Hi fellow GEFers,
>
> I have a figure with a FlowLayout as layout manager.
> I would now like to change the location for one of its children in order
> to simulate that the child has a margin.

What about using a MarginBorder? Another possibility is enhance FlowLayout
to handle some constraint object, and submit a patch to us :-)

> Is it feasible or do I have to use XYLayout in order to manipulate
> location?
>
> Regards,
> Marcus Ludvigson
Previous Topic:reduce extent of ScalableFreeformRootEditPart
Next Topic:Handling REQ_OPEN requests
Goto Forum:
  


Current Time: Thu Mar 28 09:35:34 GMT 2024

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

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

Back to the top