Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Events to handle node selection (Read 3950 times)
raghavkashi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Dec 23rd, 2008
Events to handle node selection
Dec 23rd, 2008 at 8:24pm
Print Post  
Hi,

I am looking for a hook point / event which will inform me a shapeNode is selected/deselected or created/deleted.

Where can I find such events defined?

Thanks
Raghav
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Events to handle node selection
Reply #1 - Dec 23rd, 2008 at 9:07pm
Print Post  
The events are listed here:
DiagramListener Methods

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
raghavkashi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Dec 23rd, 2008
Re: Events to handle node selection
Reply #2 - Dec 23rd, 2008 at 9:13pm
Print Post  
Thanks Stoyan. Where can I find methods for expanding or collapsing a node and its linked nodes?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Events to handle node selection
Reply #3 - Dec 23rd, 2008 at 9:21pm
Print Post  
  
Back to top
 
IP Logged
 
raghavkashi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Dec 23rd, 2008
Re: Events to handle node selection
Reply #4 - Dec 23rd, 2008 at 9:24pm
Print Post  
I have a flowchart where there are links defined between multiple nodes. But there is always a master node which will be connected to its children nodes. Now I would like to expand or collapse everything w.r.t this master node. This is to avoid view cluttering on the diagram view.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Events to handle node selection
Reply #5 - Dec 24th, 2008 at 10:05am
Print Post  
If the master node is the root of a tree that contains the child nodes, call setExpanded(false) on it. If your groups are more complex than that, you could call setVisible(false) on each item in the group.

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