Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Can I close compartment and maintain overall size of figure ?
Can I close compartment and maintain overall size of figure ? [message #78759] Sun, 19 November 2006 14:19 Go to next message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

Hey,

I am wondering whether I can use compartments in my figure.
I need the figure to stay the same size at all times.
So I was wondering if it was possible to have a compartment open/close and
change the rest of the figure
in a relative way so as to keep overall size the same ?

Thanks,

Alan.
Re: Can I close compartment and maintain overall size of figure ? [message #78955 is a reply to message #78759] Mon, 20 November 2006 16:14 Go to previous messageGo to next message
Eclipse UserFriend
Alan,

Yes, this should be possible. The circuit figure in the Logic Diagram
Example does not change size when the circuit compartment figure is
collapsed. I think you just need to set the preferred size in your
top-level figure, but if that doesn't work I suggest you put a
breakpoint in ConstrainedToolbarLayout.layout(IFigure) and then collapse
the compartment to see what happens. This layout manager will allocate
space to the children based on their preferred size.

Regards,
Cherie

Alan wrote:
> Hey,
>
> I am wondering whether I can use compartments in my figure.
> I need the figure to stay the same size at all times.
> So I was wondering if it was possible to have a compartment open/close and
> change the rest of the figure
> in a relative way so as to keep overall size the same ?
>
> Thanks,
>
> Alan.
>
>
Re: Can I close compartment and maintain overall size of figure ? [message #79544 is a reply to message #78955] Tue, 21 November 2006 13:56 Go to previous message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

Thanks very much I will do that

"Cherie Revells" <crevells@ca.ibm.com> wrote in message
news:ejt618$e28$1@utils.eclipse.org...
> Alan,
>
> Yes, this should be possible. The circuit figure in the Logic Diagram
> Example does not change size when the circuit compartment figure is
> collapsed. I think you just need to set the preferred size in your
> top-level figure, but if that doesn't work I suggest you put a breakpoint
> in ConstrainedToolbarLayout.layout(IFigure) and then collapse the
> compartment to see what happens. This layout manager will allocate space
> to the children based on their preferred size.
>
> Regards,
> Cherie
>
> Alan wrote:
>> Hey,
>>
>> I am wondering whether I can use compartments in my figure.
>> I need the figure to stay the same size at all times.
>> So I was wondering if it was possible to have a compartment open/close
>> and change the rest of the figure
>> in a relative way so as to keep overall size the same ?
>>
>> Thanks,
>>
>> Alan.
Previous Topic:DecoratorProvider configuration
Next Topic:planned maintenance releases?
Goto Forum:
  


Current Time: Wed May 14 17:52:36 EDT 2025

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

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

Back to the top