Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrange and containers (Read 1293 times)
leendert.versluijs
YaBB Newbies
*
Offline



Posts: 20
Joined: Dec 3rd, 2008
Arrange and containers
Jan 28th, 2009 at 3:38pm
Print Post  
Which layout should be used in the following scenario:

DiagramElements:

Containers on diagram
Containers in containers
Nodes in containers
Nodes on diagram
Links between nodes

Rules:

Containers are resized to contain nodes
Nodes on diagram are not placed in container
Nodes are kept within same container

Kan you please tell me which layout i should use for this scenario?

Kind regards,

Leendert
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrange and containers
Reply #1 - Jan 28th, 2009 at 3:55pm
Print Post  
None of the layout classes will do that automatically. You can call Arrange recursively on the items in containers using the Arrange(DiagramItemCollection) method, starting from the bottommost nodes and the final Arrange being called on the topmost containers and nodes. Check this thread for some hints:

http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=120224899...

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint