size of a view [message #181085] |
Thu, 12 May 2005 09:33 |
Eclipse User |
|
|
|
Originally posted by: test321.test321.com
Hi
How can i know the width and the height of a view ? i get my main view
with getGraphicalViewer() of class GraphicalEditorWithPalette and i
haven't found any methods that return its size.
thanxs for help!
Jim
|
|
|
|
Re: size of a view [message #181242 is a reply to message #181192] |
Fri, 13 May 2005 09:30 |
Eclipse User |
|
|
|
Originally posted by: jmolk.kmml.ro
Thanxs,but when shall i call this function ? if i call it in grapical
functions of my application (like getFigure(),refreshVisuals()....) it
returns Rectangle {0, 0, 0, 0} and if i call it later (like when i click
somewhere),it returns the correct bounds...is there a function called when
gef has finished displaying all components ?
Thanxs for help
|
|
|
|
Re: size of a view [message #181471 is a reply to message #181394] |
Mon, 16 May 2005 13:51 |
Eclipse User |
|
|
|
Originally posted by: none.none.ro
I try to have an imageFigure that always fits the widht of my main view.
As the image has to be scaled to the right size,i need to know the initial
size of the view and when this view get expanded or shrinked...have you
got a better idea to do this ?
|
|
|
Powered by
FUDForum. Page generated in 0.05139 seconds