Skip to main content

[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>




          "Gaud, Aurelie (CAP, CMF)" <Aurelie.Gaud@xxxxxxxxxxxxx>
          Sent by: gef-dev-admin@xxxxxxxxxxx

          06/21/2002 03:44 AM
          Please respond to gef-dev



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

GIF image

GIF image


Back to the top