Skip to main content



      Home
Home » Eclipse Projects » GEF » size of a view
size of a view [message #181085] Thu, 12 May 2005 05:33 Go to next message
Eclipse UserFriend
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 #181192 is a reply to message #181085] Thu, 12 May 2005 22:36 Go to previous messageGo to next message
Eclipse UserFriend
getControl().getBounds()

"Jim Molk" <test321@test321.com> wrote in message
news:cbde5a352a9ab64b24faa432c519c0c1$1@www.eclipse.org...
> 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 05:30 Go to previous messageGo to next message
Eclipse UserFriend
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 #181394 is a reply to message #181242] Sun, 15 May 2005 23:10 Go to previous messageGo to next message
Eclipse UserFriend
You shouldn't really be getting the control's size at all, really. What are
you trying to do?

"Jim Molk" <jmolk@kmml.ro> wrote in message
news:bc70d94960c9b688f18e8dc5201f7170$1@www.eclipse.org...
> 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 09:51 Go to previous message
Eclipse UserFriend
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 ?
Previous Topic:"Special selecting" of an editPart
Next Topic:any method for getting a driagram?
Goto Forum:
  


Current Time: Tue Jul 08 18:15:54 EDT 2025

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

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

Back to the top