Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to get source and destination node info ? (Read 2430 times)
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
how to get source and destination node info ?
Feb 9th, 2009 at 8:09am
Print Post  
Hi,
   
  When a link is created or deleted, how to get the source and target node information for that link.

Thank you.
  
Back to top
 
IP Logged
 
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
Re: how to get source and destination node info ?
Reply #1 - Feb 9th, 2009 at 8:52am
Print Post  
I got it, but want to know how to iterate all the nodes of graph ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to get source and destination node info ?
Reply #2 - Feb 9th, 2009 at 9:30am
Print Post  
Hi,

Handle the linkCreated and linkDeleted events defined in DiagramListener and call e.getLink().getOrigin() / getDestination().

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint