Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Nodes are too close to each other vertically
Nodes are too close to each other vertically [message #884388] Mon, 11 June 2012 00:56 Go to next message
Hassan M. is currently offline Hassan M.Friend
Messages: 9
Registered: September 2011
Location: Ohio
Junior Member
I've been having a problem with nodes overlapping, but solved it when I found this thread: eclipsezone.com/eclipse/forums/t105477.html. It offers an awesome solution, and the code that ended up working looks like this:

LayoutAlgorithm algorithm = new CompositeLayoutAlgorithm(
	0,
	new LayoutAlgorithm[]{
		new TreeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING),
		new HorizontalShift(LayoutStyles.NO_LAYOUT_NODE_RESIZING)
	}
);


This prevents nodes from overlapping. But it also brings nodes closer vertically so that they don't fill the window:

index.php/fa/10251/0/

So is there a way to get the nodes from compacting the way they do?

Thanks a ton for all the help you provide!
Re: Nodes are too close to each other vertically [message #899176 is a reply to message #884388] Mon, 30 July 2012 20:56 Go to previous message
Hassan M. is currently offline Hassan M.Friend
Messages: 9
Registered: September 2011
Location: Ohio
Junior Member
This is still a pending issue. Does anyone have an answer for me? Thanks in advance!
Previous Topic:ScrollPane and EditParts
Next Topic:Loop Connection
Goto Forum:
  


Current Time: Mon Nov 24 09:32:44 GMT 2014

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

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