Author: kono
Date: 2012-05-15 16:05:36 -0700 (Tue, 15 May 2012)
New Revision: 29270

Modified:
   
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DEdgeView.java
Log:
fixes #982 Bend definition will be created after add operation.

Modified: 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DEdgeView.java
===================================================================
--- 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DEdgeView.java
      2012-05-15 22:46:29 UTC (rev 29269)
+++ 
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/DEdgeView.java
      2012-05-15 23:05:36 UTC (rev 29270)
@@ -551,7 +551,6 @@
                synchronized (m_view.m_lock) {
                        
                        final Bend bend = m_view.m_edgeDetails.bend(model);
-                       
                        if (bend.getAllHandles().size() == 0) {
                                // anchors object is empty. Add first handle.
                                addHandleInternal(0, pt);
@@ -606,8 +605,9 @@
         */
        private void addHandleInternal(final int insertInx, final Point2D 
handleLocation) {
                synchronized (m_view.m_lock) {
-                       final Bend bend = m_view.m_edgeDetails.bend(model);
+                       final Bend bend = m_view.m_edgeDetails.bend(model);     
                
                        final Handle handle = new 
HandleImpl(handleLocation.getX(), handleLocation.getY());
+                       handle.defineHandle(m_view, this, 
handleLocation.getX(), handleLocation.getY());
                        
                        bend.insertHandleAt(insertInx, handle);
 

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to