Author: scooter
Date: 2011-06-15 16:39:46 -0700 (Wed, 15 Jun 2011)
New Revision: 25774

Modified:
   
cytoscape/trunk/application/src/main/java/cytoscape/data/readers/XGMMLReader.java
Log:
Fix for bug 0002529.  Adding all of the edge handles together seems to fix the 
problem.


Modified: 
cytoscape/trunk/application/src/main/java/cytoscape/data/readers/XGMMLReader.java
===================================================================
--- 
cytoscape/trunk/application/src/main/java/cytoscape/data/readers/XGMMLReader.java
   2011-06-15 23:17:32 UTC (rev 25773)
+++ 
cytoscape/trunk/application/src/main/java/cytoscape/data/readers/XGMMLReader.java
   2011-06-15 23:39:46 UTC (rev 25774)
@@ -669,14 +669,16 @@
 
                if (XGMMLParser.getAttribute(graphics,"edgeHandleList") != 
null) {
                        String handles[] = XGMMLParser.getAttribute(graphics, 
"edgeHandleList").split(";");
+                       List<Point2D> bendPoints = new ArrayList<Point2D>();
                        for (int i = 0; i < handles.length; i++) {
                                String points[] = handles[i].split(",");
                                double x = (new 
Double(points[0])).doubleValue();
                                double y = (new 
Double(points[1])).doubleValue();
                                Point2D.Double point = new Point2D.Double();
                                point.setLocation(x,y);
-                               edgeView.getBend().addHandle(point);
+                               bendPoints.add(point);
                        }
+                       edgeView.getBend().setHandles(bendPoints);
                }
 
                // These are saved in the exported XGMML, but it's not clear 
how they get set

-- 
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