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

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

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

revision 1.6 by tjl, Fri Apr 25 14:43:04 2003 UTC revision 1.7 by tjl, Mon Apr 28 08:57:27 2003 UTC
# Line 26  public static final String rcsid = "$Id$ Line 26  public static final String rcsid = "$Id$
26            
27      private Fen fen;      private Fen fen;
28      private NodeFunction nodeView;      private NodeFunction nodeView;
29        public boolean cull;
30    
31      public CanvasView2D(Fen fen, NodeFunction nodeView) {      public CanvasView2D(Fen fen, NodeFunction nodeView) {
32          this.fen = fen;          this.fen = fen;
33          this.nodeView = nodeView;          this.nodeView = nodeView;
34      }      }
35    
36    
37      public void render(VobScene vs, Object container,      public void render(VobScene vs, Object container,
38                         int matchingParent, int box2screen, int box2plane)                         int matchingParent, int box2screen, int box2plane)
39      {      {
# Line 41  public static final String rcsid = "$Id$ Line 43  public static final String rcsid = "$Id$
43    
44          Iterator iter = fen.constgraph.findN_11X_Iter(container,          Iterator iter = fen.constgraph.findN_11X_Iter(container,
45                                                        PP.contains);                                                        PP.contains);
46    
47          while (iter.hasNext()) {          while (iter.hasNext()) {
48              Object n = iter.next();              Object n = iter.next();
49    
# Line 58  public static final String rcsid = "$Id$ Line 61  public static final String rcsid = "$Id$
61                                  x, y, 1, 1,                                  x, y, 1, 1,
62                              p.getWidth(), p.getHeight());                              p.getWidth(), p.getHeight());
63              vs.matcher.add(matchingParent, cs, matchKey);              vs.matcher.add(matchingParent, cs, matchKey);
64                if(cull) {
65                    cs = vs.cullCS(cs, "CULL", box2screen);
66                }
67              p.place(vs, cs);              p.place(vs, cs);
68          }          }
69      }      }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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