Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Increase size of Zest graph
Increase size of Zest graph [message #501899] Fri, 04 December 2009 11:29 Go to next message
Marko Tomljenovic is currently offline Marko TomljenovicFriend
Messages: 62
Registered: July 2009
Member
Hello all,
I am facing the following problem.
I have a view that contains a GraphViewer.
When I create a graph the layouter uses the available space of the view to layout all elements.

What I would like to do now is to manually increase the size of the graph.

I can increase the size of the graph using
viewer.getGraphControl().setSize()
but then the scrollbars are not shown any more.

Is there another way to resize the graph?

Greets Marko
Re: Increase size of Zest graph [message #729665 is a reply to message #501899] Mon, 26 September 2011 18:03 Go to previous message
Martin BurgerFriend
Messages: 21
Registered: July 2009
Junior Member
I think you have to call

GraphViewer.getGraphControl().setPreferredSize(int width, int height)

before calling

GraphViewer.applyLayout()
Previous Topic:GEF/Draw2D installation on Mac OS Snow Leopard
Next Topic:Newly created connection doesn't use the anchor that is provided
Goto Forum:
  


Current Time: Sun Oct 22 04:58:34 GMT 2017

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

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