Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » auto resize of compartment
auto resize of compartment [message #159069] Thu, 08 November 2007 17:32 Go to next message
Eclipse UserFriend
Originally posted by: rq.nospam.com

In my application we are using ShapeCompartmentEditPart which contains a
ShapeNodeEditPart (fills the compartment). Inside that we are adding all
other types of nodes (figures). I want to resize the compartment everytime
somebody adds a child figure, drags a child figure out of compartment
bounds etc. to show all the child figure all the time. currently while
resizing the compartment or dragging the children out of bounds is
creating a scrollbar effect which is not very visible. also currently when
a child goes out of bounds of compartment all its connection to other
figures disappears. So I want to resize the compartment all the time so
that it shows all the child figures. any suggestions will be appreciated.
Re: auto resize of compartment [message #159077 is a reply to message #159069] Thu, 08 November 2007 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rq.nospan.com

Here ShapeNodeEditPart (rectangle figure, stack layout) is the parent of
ShapeCompartmentEditPart (resizable compartment figure).


>>In my application we are using ShapeCompartmentEditPart which contains a
ShapeNodeEditPart (fills the compartment). Inside that we are adding all other
types of nodes (figures). I want to resize the compartment everytime somebody
adds a child figure, drags a child figure out of compartment bounds etc. to
show all the child figure all the time. currently while resizing the
compartment or dragging the children out of bounds is creating a scrollbar
effect which is not very visible. also currently when a child goes out of
bounds of compartment all its connection to other figures disappears. So I
want to resize the compartment all the time so that it shows all the child
figures. any suggestions will be appreciated.
Re: auto resize of compartment [message #159113 is a reply to message #159077] Thu, 08 November 2007 21:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rq.nospam.com

Also I have seen some solution of overriding the paintFigure method, but
that will not work in my case as in my case all the nodes added in the
compartment are not of fixed size so while overriding paintFigure method
for compartment figure i need to calculate the actual size of all the
child figures which I dont think is possible.

--------------------------

>>>Here ShapeNodeEditPart (rectangle figure, stack layout) is the parent of
>>>ShapeCompartmentEditPart (resizable compartment figure).

---------------------------

>>>>In my application we are using ShapeCompartmentEditPart which contains a

ShapeNodeEditPart (fills the compartment). Inside that we are adding all
other types of nodes (figures). I want to resize the compartment everytime
somebody adds a child figure, drags a child figure out of compartment
bounds etc. to show all the child figure all the time. currently while
resizing the compartment or dragging the children out of bounds is
creating a scrollbar effect which is not very visible. also currently when
a child goes out of bounds of compartment all its connection to other
figures disappears. So I want to resize the compartment all the time so
that it shows all the child figures. any suggestions will be appreciated.
Re: auto resize of compartment [message #159464 is a reply to message #159113] Sat, 10 November 2007 19:12 Go to previous message
Eclipse UserFriend
Originally posted by: Sam.sam.org

You might rightclick the node and choose format->autosize. then additions
and deletes of attributes will be reflected in nodes size automatically.

"r q" <rq@nospam.com> schrieb im Newsbeitrag
news:7cb6f0aec3cbd3ca203419846573f969$1@www.eclipse.org...
>
> Also I have seen some solution of overriding the paintFigure method, but
> that will not work in my case as in my case all the nodes added in the
> compartment are not of fixed size so while overriding paintFigure method
> for compartment figure i need to calculate the actual size of all the
> child figures which I dont think is possible.
>
> --------------------------
>
>>>>Here ShapeNodeEditPart (rectangle figure, stack layout) is the parent of
>>>>ShapeCompartmentEditPart (resizable compartment figure).
>
> ---------------------------
>
>>>>>In my application we are using ShapeCompartmentEditPart which contains
>>>>>a
>
> ShapeNodeEditPart (fills the compartment). Inside that we are adding all
> other types of nodes (figures). I want to resize the compartment everytime
> somebody adds a child figure, drags a child figure out of compartment
> bounds etc. to show all the child figure all the time. currently while
> resizing the compartment or dragging the children out of bounds is
> creating a scrollbar effect which is not very visible. also currently when
> a child goes out of bounds of compartment all its connection to other
> figures disappears. So I want to resize the compartment all the time so
> that it shows all the child figures. any suggestions will be appreciated.
>
>
Previous Topic:announce posts
Next Topic:Memory Leak... Urgent... Please Help
Goto Forum:
  


Current Time: Fri Apr 19 02:02:19 GMT 2024

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

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

Back to the top