[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [gef-dev] draw2d : preferred size ??
|
This is a newsgroup question, but I believe the answer is somewhere in Control.computeSize(int, int), which you would have to implement on your Control by asking the panel its preferred size. Post any other problems to the newsgroup.
![]()
"Gaud, Aurelie (CAP, CMF)" <Aurelie.Gaud@xxxxxxxxxxxxx>
![]()
| ![]()
| ![]()
To: gef-dev@xxxxxxxxxxx
cc:
Subject: [gef-dev] draw2d : preferred size ??
|
Hi,
We begin development with SWT/Draw2d.
We need to present in our application a graphic view of a network.
the window which represents the diferent queueManagers has been realized
with draw2d:
detailWindowShell = new Shell();
lws = new LightweightSystem(detailWindowShell);
lws.setContents(panel);
Every QueueManager is a RectangleFigure and some arrows (PolylineConnection)
link them.
We would like this window to be resized to its preferred size according to
the number of elements (RectangleFigure and PolylineConnection) it
contains.
Is there any method that would be better to use ?
(the method "pack()" doesnt work!)
Thanks in advance
Aurélie GAUD
_______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/gef-dev

