FigureCanvas and layouts [message #246183] |
Wed, 12 November 2008 14:03 |
Eclipse User |
|
|
|
Originally posted by: victor.conesa.justinmind.com
Hello All,
I'd like to synchronize the FigureCanvas bounds with the layout of the root
figure specially with the FlowLayout. I'd like that, when the FigureCanvas
size is decreased, the FlowLayout apply the wrap system on the figures and
not to show the scrollbars.
I've been surfing through the gef source code and didn't found any option to
configure the FigureCanvas that way. Is there any option to do so?
Thanks in advance!
|
|
|
|
Re: FigureCanvas and layouts [message #246205 is a reply to message #246183] |
Mon, 17 November 2008 05:16 |
Eclipse User |
|
|
|
Originally posted by: shady_86.sify.com
put a control listener to your viewers control which is the canvas.
now in the controlResized method call getClientArea() of the canvas.
This will return you a rectangle which you can use to set the size of your diagram edit part and further its children by maintaining the size ratio.
So the scroll bar will never be visible and the figures will wrapped..,
|
|
|
Powered by
FUDForum. Page generated in 0.02731 seconds