/[gzz]/gzz/gzz/client/Fallback.java
ViewVC logotype

Diff of /gzz/gzz/client/Fallback.java

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

revision 1.52 by benja, Fri Dec 6 01:03:50 2002 UTC revision 1.53 by benja, Fri Jan 3 18:05:06 2003 UTC
# Line 137  public static final String rcsid = "$Id$ Line 137  public static final String rcsid = "$Id$
137    
138      public FallbackDim[] dimList;      public FallbackDim[] dimList;
139    
140      Set decorators;      FallbackSceneDecorator[] decorators;
141    
142      public class Win extends AbstractShower implements ViewContext, Binder {      public class Win extends AbstractShower implements ViewContext, Binder {
143          public Cell cursor;          public Cell cursor;
# Line 166  public static final String rcsid = "$Id$ Line 166  public static final String rcsid = "$Id$
166              return (Win)windowList.get(i);              return (Win)windowList.get(i);
167          }          }
168    
169            public Win getOther() {
170                if(windows[LEFT] == this) return windows[RIGHT];
171                if(windows[RIGHT] == this) return windows[LEFT];
172                throw new IllegalStateException("No other window");
173            }
174    
175          /**          /**
176           *  @returns true if this was the last window.           *  @returns true if this was the last window.
177           */           */
# Line 256  public static final String rcsid = "$Id$ Line 262  public static final String rcsid = "$Id$
262              VobScene sc = this.screen.window.createVobScene();              VobScene sc = this.screen.window.createVobScene();
263              sc.map.put(new SolidBgVob(bg), 0);              sc.map.put(new SolidBgVob(bg), 0);
264    
265              for(Iterator i=decorators.iterator(); i.hasNext();) {              for(int i=0; i<decorators.length; i++) {
266                  FallbackSceneDecorator dec =                  if(dbg) pa("Call scene decorator: "+decorators[i]);
267                      (FallbackSceneDecorator)i.next();                  decorators[i].render(sc, 0, Fallback.this, this);
                 if(dbg) pa("Call scene decorator: "+dec);  
                 dec.render(sc, 0, Fallback.this, this);  
268              }              }
269    
270              getView().render(sc, 0, this);              getView().render(sc, 0, this);
# Line 343  public static final String rcsid = "$Id$ Line 347  public static final String rcsid = "$Id$
347      }      }
348    
349      public Fallback(Cell start, Space linkSpace, FallbackBinder binder,      public Fallback(Cell start, Space linkSpace, FallbackBinder binder,
350                      FallbackDim[] dimList,                      FallbackDim[] dimList, FallbackSceneDecorator[] decorators,
351                      View[] viewList, Map viewSpecificBinders,                      View[] viewList, Map viewSpecificBinders,
352                      CellView[] cellViewList, Filer.Group filers) {                      CellView[] cellViewList, Filer.Group filers) {
353          this.binder = binder;          this.binder = binder;
354          this.dimList = dimList;          this.dimList = dimList;
355            this.decorators = decorators;
356          this.viewList = viewList;          this.viewList = viewList;
357          this.viewSpecificBinders = viewSpecificBinders;          this.viewSpecificBinders = viewSpecificBinders;
358          this.filers = filers;          this.filers = filers;
# Line 380  public static final String rcsid = "$Id$ Line 385  public static final String rcsid = "$Id$
385          windows[0].screen.window.setLocation(0, 0, w, h);          windows[0].screen.window.setLocation(0, 0, w, h);
386          windows[1].screen.window.setLocation(w, 0, w, h);          windows[1].screen.window.setLocation(w, 0, w, h);
387    
         decorators = new HashSet();  
         decorators.add(new DimDecorator());  
         decorators.add(new LastOpDecorator());  
         decorators.add(new MarkDecorator());  
   
388          AbstractUpdateManager.chg();          AbstractUpdateManager.chg();
389      }      }
390  }  }

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

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