Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Zest] Maintaining order of leaves in SpaceTreeLayout
[Zest] Maintaining order of leaves in SpaceTreeLayout [message #1005293] Thu, 24 January 2013 19:46 Go to next message
Jonathan Jekeli is currently offline Jonathan JekeliFriend
Messages: 10
Registered: October 2012
Junior Member
Is it possible to maintain the order of nodes in a SpaceTreeLayout? Currently, it seems like every time I refresh the graph, a new ordering of leaves occur. For example, if I have:

1
/ \
2 3

Then add node 4 as a child of 3, I will get:

1
/ \
3 2
|
4

Is there any way to prevent this and ensure the same ordering every time?

Thanks!

Re: [Zest] Maintaining order of leaves in SpaceTreeLayout [message #1008026 is a reply to message #1005293] Fri, 08 February 2013 15:04 Go to previous message
Zoltan Ujhelyi is currently offline Zoltan UjhelyiFriend
Messages: 392
Registered: July 2015
Senior Member
Hi,

have you tried adding a comparator using GraphViewer#setComparer or GraphViewer#setComparator. Most layout algorithms respect the order they get their nodes in.

Cheers,
Zoltán
Previous Topic: table-style graph
Next Topic:Draw2D & GEF: qualified associations
Goto Forum:
  


Current Time: Tue Mar 19 10:54:42 GMT 2024

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

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

Back to the top