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

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

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

revision 1.1 by tjl, Thu Mar 27 07:53:07 2003 UTC revision 1.2 by tjl, Tue Apr 15 14:59:08 2003 UTC
# Line 53  public class ScrollBlockNodeLinker imple Line 53  public class ScrollBlockNodeLinker imple
53    
54      public org.fenfire.index.XuIndexer xuIndex;      public org.fenfire.index.XuIndexer xuIndex;
55    
56      public VStreamNodeTexter nodeTexter;      Fen fen;
57    
58      public ScrollBlockNodeLinker(Space space) {      public ScrollBlockNodeLinker(Fen fen) {
59          enfiladeOverlap =          this.fen = fen;
             org.fenfire.index.IndexManager.getEnfiladeOverlap(space);  
         nodeTexter = (VStreamNodeTexter)space.getNodeTexter();  
60      }      }
61    
62      public BuoyViewNodeType transclusionPageSpanNodeType;      public BuoyViewNodeType transclusionPageSpanNodeType;
# Line 70  public class ScrollBlockNodeLinker imple Line 68  public class ScrollBlockNodeLinker imple
68    
69      public BuoyViewNodeType cellNodeType;      public BuoyViewNodeType cellNodeType;
70    
71      public void doLinks(RDFNode c, VobScene vs, int cs,      public void doLinks(Object node, VobScene vs, int cs,
72                              BuoyViewNodeType cellNodeType,                              BuoyViewNodeType cellNodeType,
73                              BuoyLinkListener listener) {                              BuoyLinkListener listener) {
74    
# Line 82  public class ScrollBlockNodeLinker imple Line 80  public class ScrollBlockNodeLinker imple
80          // Find all transclusion and put buoys of scrollblocks          // Find all transclusion and put buoys of scrollblocks
81          // of pagespans          // of pagespans
82          //          //
83          Enfilade1D enf =          Enfilade1D enf = fen.txt.get(node, null);
                         nodeTexter.getEnfilade(c, null);  
84          for(Iterator i = org.nongnu.alph.util.EnfUtil.          for(Iterator i = org.nongnu.alph.util.EnfUtil.
85                              getScrollBlockRepresentatives(enf).iterator();                              getScrollBlockRepresentatives(enf).iterator();
86                          i.hasNext(); ) {                          i.hasNext(); ) {
# Line 93  public class ScrollBlockNodeLinker imple Line 90  public class ScrollBlockNodeLinker imple
90                  sb.getCurrent();                  sb.getCurrent();
91    
92                  listener.link(1, cs, transclusionPageSpanNodeType,                  listener.link(1, cs, transclusionPageSpanNodeType,
93                                  new org.fenfire.util.Pair(c, sb), s);                                  new org.fenfire.util.Pair(node, sb), s);
94              }              }
95          }          }
96      }      }
97    
   
98      // XXX Reverse links! Scrollblock to      // XXX Reverse links! Scrollblock to
99  }  }
100    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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