Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node Movement In Pan Mode (Read 1485 times)
priyanka
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Sep 2nd, 2009
Node Movement In Pan Mode
May 2nd, 2013 at 10:51am
Print Post  
Hi,

I have set diagram.Behavior = Behavior. Pan.
My requirement is :
     1. Need to move nodes while in Pan mode
     2. Need to create links while in Pan mode.
     
How do I achieve this.

Please let know.


Thanks,
Priyanka
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Movement In Pan Mode
Reply #1 - May 2nd, 2013 at 11:30am
Print Post  
Hi,

You could switch Behavior value between Pan and DrawLinks from a MouseMove handler, depending on what's under the mouse pointer.

Alternatively, you could create a custom behavior class that's a composite of a PanBehavior and DrawLinksBehavior objects, and then delegate all Mouse* methods to one of the objects, depending on what was under the mouse pointer in MouseDown.

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