Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Resize the editor-view
Resize the editor-view [message #237661] Mon, 06 August 2007 17:55 Go to next message
René is currently offline RenéFriend
Messages: 45
Registered: July 2009
Member
Hello,

I have a editor to paint diagrams (mostly like the shapes editor
example). Now I want to insert a graphic in the background of the
editor. The insert itself works fine but i can t adapt the editor size
to the graphic size (the graphic is cut).

To solve these problem I had tried to set the figure bounds up to the
image bounds and call
setLayoutConstraint(this,getFigure(),getFigure().getBounds() ) from the
diagram EditPart. But without any effect. Im wondering why this way
works for the movement of the components of the diagram. When I move
someone outside the editorview, the editor changes his size and add
scrollbars. I know why this don t work for the graphic.

I hope you can understand my problem.

Best regards
René
Re: Resize the editor-view [message #237731 is a reply to message #237661] Tue, 07 August 2007 18:30 Go to previous messageGo to next message
René is currently offline RenéFriend
Messages: 45
Registered: July 2009
Member
I found a solution for my problem.
I create a image figure for the background graphic and add it to the
root-figure of the diagram. Now i can call
getLayoutManager().setConstraint(...) from the root-figure or with
setLayoutConstraint(...) from the editpart of this figure. This works.

But now the problem is that the image figure masked all the other
components of my diagram. How can I solve this?

Thanks for any hint....


regards
René


René schrieb:
> Hello,
>
> I have a editor to paint diagrams (mostly like the shapes editor
> example). Now I want to insert a graphic in the background of the
> editor. The insert itself works fine but i can t adapt the editor size
> to the graphic size (the graphic is cut).
>
> To solve these problem I had tried to set the figure bounds up to the
> image bounds and call
> setLayoutConstraint(this,getFigure(),getFigure().getBounds() ) from the
> diagram EditPart. But without any effect. Im wondering why this way
> works for the movement of the components of the diagram. When I move
> someone outside the editorview, the editor changes his size and add
> scrollbars. I know why this don t work for the graphic.
>
> I hope you can understand my problem.
>
> Best regards
> René
Re: Resize the editor-view [message #238035 is a reply to message #237731] Mon, 20 August 2007 22:43 Go to previous message
Eclipse UserFriend
Originally posted by: aczerwonka.3esi.com

"Ren
Previous Topic:Paint Polyline iterative
Next Topic:PropertyPage and the use of FileDialog
Goto Forum:
  


Current Time: Sat Apr 27 03:18:11 GMT 2024

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

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

Back to the top