/[fenfire]/fenfire/org/fenfire/view/buoy/PPConnector.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/PPConnector.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by mudyc, Fri May 23 14:26:08 2003 UTC revision 1.12 by mudyc, Fri May 23 15:02:53 2003 UTC
# Line 64  public static final String rcsid = "$Id$ Line 64  public static final String rcsid = "$Id$
64              /* check all associations */              /* check all associations */
65    
66              // Right links!              // Right links!
67                int shift = 0;
68              Iterator iter = fen.constgraph.findN_11X_Iter(node,              Iterator iter = fen.constgraph.findN_11X_Iter(node,
69                      STRUCTLINK.linkedTo);                      STRUCTLINK.linkedTo);
70              while (iter.hasNext()) {              while (iter.hasNext()) {
# Line 71  public static final String rcsid = "$Id$ Line 72  public static final String rcsid = "$Id$
72                  Object plane = fen.constgraph.find1_X11(CANVAS2D.contains, obj);                  Object plane = fen.constgraph.find1_X11(CANVAS2D.contains, obj);
73                  Pair anchor = new Pair(plane, getRect(obj));                  Pair anchor = new Pair(plane, getRect(obj));
74                  if (dbg) pa("rect:"+getRect(obj));                  if (dbg) pa("rect:"+getRect(obj));
75                  l.link(1, cs, nodeType, new Pair(node, obj), anchor);                  l.link(1, cs, nodeType, new Pair(node, obj), anchor, shift);
76                    shift++;
77              }              }
78    
79              // Left links!              // Left links!
80                shift = 0;
81              iter = fen.constgraph.findN_X11_Iter(STRUCTLINK.linkedTo, node);              iter = fen.constgraph.findN_X11_Iter(STRUCTLINK.linkedTo, node);
82              while (iter.hasNext()) {              while (iter.hasNext()) {
83                  Object obj = iter.next();                  Object obj = iter.next();
84                  Object plane = fen.constgraph.find1_X11(CANVAS2D.contains, obj);                  Object plane = fen.constgraph.find1_X11(CANVAS2D.contains, obj);
85                  Pair anchor = new Pair(plane, getRect(obj));                  Pair anchor = new Pair(plane, getRect(obj));
86                  if (dbg) pa("rect:"+getRect(obj));                  if (dbg) pa("rect:"+getRect(obj));
87                  l.link(-1, cs, nodeType, new Pair(obj, node), anchor);                  l.link(-1, cs, nodeType, new Pair(obj, node), anchor, shift);
88                    shift++;
89              }              }
90          }          }
91      }      }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26