21 |
*/ |
*/ |
22 |
public class TransclusionConnector implements BuoyViewConnector { |
public class TransclusionConnector implements BuoyViewConnector { |
23 |
public static final String rcsid = "$Id$"; |
public static final String rcsid = "$Id$"; |
24 |
public static boolean dbg = true; |
public static boolean dbg = false; |
25 |
private static void pa(String s) { System.out.println("TransclusionConnector:: "+s); } |
private static void pa(String s) { System.out.println("TransclusionConnector:: "+s); } |
26 |
|
|
27 |
|
|
62 |
DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher; |
DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher; |
63 |
if(dbg) pa("Trying transclusion addbuoys"); |
if(dbg) pa("Trying transclusion addbuoys"); |
64 |
if(mn2d.getView2D() == normalNodeNodeType.getView2D()) { |
if(mn2d.getView2D() == normalNodeNodeType.getView2D()) { |
65 |
pa("TransclusionConnector: canvas -> scrolls"); |
if (dbg) |
66 |
|
pa("TransclusionConnector: canvas -> scrolls"); |
67 |
// Loop over the placed nodes' keys |
// Loop over the placed nodes' keys |
68 |
for(Iterator i=m.getKeys(parentCs).iterator(); i.hasNext();) { |
for(Iterator i=m.getKeys(parentCs).iterator(); i.hasNext();) { |
69 |
Object key = i.next(); |
Object key = i.next(); |
89 |
} |
} |
90 |
|
|
91 |
} else if(mn2d.getView2D() == pageImageScrollNodeType.getView2D()) { |
} else if(mn2d.getView2D() == pageImageScrollNodeType.getView2D()) { |
92 |
pa("TransclusionConnector: Pagescroll -> outside"); |
if (dbg) |
93 |
|
pa("TransclusionConnector: Pagescroll -> outside"); |
94 |
for(Iterator i=m.getKeys(parentCs).iterator(); i.hasNext();) { |
for(Iterator i=m.getKeys(parentCs).iterator(); i.hasNext();) { |
95 |
Object key = i.next(); |
Object key = i.next(); |
96 |
if(!(key instanceof PageImageSpan)) continue; |
if(!(key instanceof PageImageSpan)) continue; |