/[fenfire]/fenfire/org/fenfire/view/SpatialPlane.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/SpatialPlane.java

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

revision 1.13 by mudyc, Tue Apr 15 14:43:42 2003 UTC revision 1.14 by mudyc, Tue Apr 15 14:57:14 2003 UTC
# Line 137  public static final String rcsid = "$Id$ Line 137  public static final String rcsid = "$Id$
137          float[] bs = new float[2];          float[] bs = new float[2];
138          cursorBox = -1;          cursorBox = -1;
139                    
140          //Object node = nodeview.context.getAccurse();          Iterator iter = fen.constgraph.findN_11X_Iter(container, cont);
           
         /*  
         NodeView orig_nv = context.getNodeView();  
           
         Selector slctr = new SelectorImpl(node, PP.contains, (RDFNode) null);  
         StmtIterator iter = model.listStatements(slctr);  
         Statement stmt = null;  
         while (iter.hasNext()) {  
             RDFNode node = ((Statement)iter.next()).getSubject();  
               
             SimpleVStreamTexter sct = (SimpleVStreamTexter)space.getCellTexter();  
             Enfilade1DImpl enf = (Enfilade1DImpl)sct.getEnfilade(node, null);  
             java.util.List enfList= enf.getList();  
             Span1D span = (Span1D) enfList.get(0);  
               
             if (span instanceof TextSpan) {  
                 if(hook != null)  
                     context.setCellView(new NodeViewPlugin(orig_cv, hook));  
                 else  
                     context.setCellView(orig_cv);  
             }  // PageSpan!!!  
             else {  
                 if(hook != null)  
                     context.setCellView(  
                                         new CellViewPlugin(new PageSpanCellView(), hook));  
                 else  
                     context.setCellView(new PageSpanCellView());  
                 drawFrame = true;  
             }  
         }  
   
         NodeView nv = context.getNodeView();  
   
         Selector slctr = new SelectorImpl((Resource)node, PP.contains, (RDFNode) null);  
         StmtIterator iter = model.listStatements(slctr);  
         Statement stmt = null;  
141          while (iter.hasNext()) {          while (iter.hasNext()) {
142              stmt = iter.next();              Object n = iter.next();
             Resource note = (Resource)stmt.getObject();  
   
             int[] coords = new int[2];  
143    
144              // get coords              // get coords
145              coords[0] = ShortRDF.getInt(model, note, SPATIAL.coordX);              int[] coords = new int[2];
146              coords[1] = ShortRDF.getInt(model, note, SPATIAL.coordY);              coords[0] = RDFUtil.getInt(fen, n, SPATIAL.coordX);
147                coords[1] = RDFUtil.getInt(fen, n, SPATIAL.coordY);
             // get size XXX  
             boolean drawFrame = false;  
   
             */  
             /*  
               from nodeview nv.getSize(note, bs)  
               
             */  
148    
149          /*              nodeview.getSize(n, bs);
150              Pair matchKey = new Pair(node, note);              Pair matchKey = new Pair(container, n);
151                            int box = vs.orthoCS(into, matchKey, 0, coords[0], coords[1], bs[0], bs[1]);
152              int box;              nodeview.place(n, vs, box);
             box = vs.orthoBoxCS(into, matchKey, 0,  
                                 coords[0], coords[1],  
                                 1, 1, bs[0], bs[1]);  
153                            
154                if (hook != null) hook.placed(n, vs, box);
155    
156              if (drawFrame)              // XXX?
157                  vs.map.put(frame, box);              //vs.activate(box);
   
             if (vs.coords instanceof GLVobCoorder && cullCS > 0) {  
                 int cull = ((GLVobCoorder)vs.coords).cull(box, cullCS);  
                 vs.matcher.add(box, cull, matchKey+"cull");  
                 box = cull;  
             }  
   
             // XXX cv.place(item, vs, box, context);  
             vs.activate(box);  
   
             // XXX  
             //  if(item.equals(cur))  
             //  cursorBox = box;  
158    
159                if(current.equals(n))
160                    cursorBox = box;
161          }          }
162          */          
163      }      }
164    
165  }  }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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