23 |
public static boolean hackForTesting = false; |
public static boolean hackForTesting = false; |
24 |
|
|
25 |
private Fen fen; |
private Fen fen; |
26 |
private View2D view; |
private View2D view2d; |
27 |
private BuoyViewNodeType nodeType; |
private BuoyViewNodeType nodeType; |
28 |
public PPConnector(Fen fen, View2D view) { |
public PPConnector(Fen fen, View2D view2d) { |
29 |
this.fen = fen; |
this.fen = fen; |
30 |
this.view = view; |
this.view2d = view2d; |
31 |
this.nodeType = new NodeType2D(view); |
this.nodeType = new NodeType2D(view2d); |
32 |
} |
} |
33 |
|
|
34 |
public void addBuoys(VobScene vs, int parentCs, |
public void addBuoys(VobScene vs, int parentCs, |
36 |
BuoyLinkListener l) { |
BuoyLinkListener l) { |
37 |
if(!(mainNode instanceof MainNode2D)) return; |
if(!(mainNode instanceof MainNode2D)) return; |
38 |
MainNode2D mn2d = (MainNode2D)mainNode; |
MainNode2D mn2d = (MainNode2D)mainNode; |
39 |
if(mn2d.getView() != view && !hackForTesting) return; |
if(mn2d.getView2D() != view2d && !hackForTesting) return; |
40 |
|
|
41 |
DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher; |
DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher; |
42 |
for(Iterator i=m.getKeys(parentCs).iterator(); i.hasNext();) { |
for(Iterator i=m.getKeys(parentCs).iterator(); i.hasNext();) { |