Skip to main content



      Home
Home » Eclipse Projects » GEF » Editor Size
Editor Size [message #232603] Tue, 03 April 2007 10:03 Go to next message
Eclipse UserFriend
Originally posted by: michele.l.evinco.it

is it possible get the editor dimension ?

Michele
Re: Editor Size [message #232611 is a reply to message #232603] Tue, 03 April 2007 12:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michel

getBounds() is the method you are looking for.
getGraphicalViewer().getControl().getBounds() should do it.

Cheers...
Anthony

"michele" <michele.l@evinco.it> wrote in message
news:eutmsv$qhi$1@build.eclipse.org...
> is it possible get the editor dimension ?
>
> Michele
Re: Editor Size [message #232637 is a reply to message #232611] Wed, 04 April 2007 03:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michele.l.evinco.it

I've still try this but return a bounds with all values to 0.
i do this in initializeGraphicalViewer method of GraphicalEditor because
i want create an editPart with the editor's dimension on the open of the
editor.
Michele
Anthony Hunter wrote:
> Hi Michel
>
> getBounds() is the method you are looking for.
> getGraphicalViewer().getControl().getBounds() should do it.
>
> Cheers...
> Anthony
>
> "michele" <michele.l@evinco.it> wrote in message
> news:eutmsv$qhi$1@build.eclipse.org...
>
>>is it possible get the editor dimension ?
>>
>>Michele
>
>
>
Re: Editor Size [message #232782 is a reply to message #232637] Mon, 09 April 2007 05:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: keyanema.rediffmail.com

What about the getClientArea() ? Is this the required method?
Re: Editor Size [message #232954 is a reply to message #232637] Fri, 13 April 2007 15:00 Go to previous message
Eclipse UserFriend
Hi,

Is this some kind of frame you're trying to create to fit all your
editparts in?
Try not to create this editpart when editor is created but rather when
editparts are created... make it the first child of the diagram editpart
perhaps. Once this is done you can set the layout manager that would
calculate bounds for your frame as a max between union of all editparts
bounds on the diagram and viewer control's viewport.
Hope this helps.

Cheers,
Alex
Previous Topic:Layout
Next Topic:Gradients on rounded rectangles
Goto Forum:
  


Current Time: Wed Jul 02 14:51:12 EDT 2025

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

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

Back to the top