auto resize of compartment [message #159069] |
Thu, 08 November 2007 17:32 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02393 seconds