Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [gef-dev] draw2d : preferred size ??
[gef-dev] draw2d : preferred size ?? [message #11181] Tue, 25 June 2002 14:29
Eclipse UserFriend
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
Previous Topic:first connection
Next Topic:Enabling undo feature
Goto Forum:
  


Current Time: Sun Dec 22 06:33:23 GMT 2024

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

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

Back to the top