[gef-dev] draw2d : preferred size ?? [message #11181] |
Tue, 25 June 2002 14:29 |
Eclipse User |
|
|
|
Originally posted by: aurelie.gaud.gecapital.com
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 ?
(I try panel.getPreferedSize, getBounds,...)
Thanks in advance
Aur
|
|
|
Powered by
FUDForum. Page generated in 0.02996 seconds