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:[Zest] How to reveal a graph node
Next Topic:[Zest] Layout Algorithms aren't working for me in Zest 2
Goto Forum:
  


Current Time: Thu Nov 27 09:59:55 GMT 2014

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

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