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()) { |
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 |
} |
} |