mager
11-13-2007, 01:11 AM
Hi,
I'm trying to create a tool for designing processes. I can drag and drop process activities onto a view and move them around. I can then select any two activities and connect them. The activities and transitions (connectors) are drawview-classes that I have implemented. I can drag the activities around, align them along x- and y-axis.
My problem is that the interface takes "for ever" to be updated after I have moved an activity. If the activity has a handfull of transitions connected it will take something like one to two seconds after mouse button release before the transitions will be redrawn.
I have also tried to implement real-time updating of the transitions but it is way to slow.
When I try to debug I use some Debug.write() in different places to see where the code takes the longest time, but this does not work because nothing is written until the screen updates, and then all debug-information is written at once.
I have tried the Gliffy software wich I understand is written using OL. There you can do what I want to do in my application, and there are no problem having real-time updating of connectors between objects. So the problem must be me then :)
I understand that it is difficult to help me given the information above, but if someone would be willing to help me I can send the code.
Thanks,
Magnus
I'm trying to create a tool for designing processes. I can drag and drop process activities onto a view and move them around. I can then select any two activities and connect them. The activities and transitions (connectors) are drawview-classes that I have implemented. I can drag the activities around, align them along x- and y-axis.
My problem is that the interface takes "for ever" to be updated after I have moved an activity. If the activity has a handfull of transitions connected it will take something like one to two seconds after mouse button release before the transitions will be redrawn.
I have also tried to implement real-time updating of the transitions but it is way to slow.
When I try to debug I use some Debug.write() in different places to see where the code takes the longest time, but this does not work because nothing is written until the screen updates, and then all debug-information is written at once.
I have tried the Gliffy software wich I understand is written using OL. There you can do what I want to do in my application, and there are no problem having real-time updating of connectors between objects. So the problem must be me then :)
I understand that it is difficult to help me given the information above, but if someone would be willing to help me I can send the code.
Thanks,
Magnus