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; |
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 |
*/ |
*/ |
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); |
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; |
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 |
} |
} |