//(c):Benja Fallenstein package gzz.view; import gzz.*; import gzz.media.*; import gzz.vob.*; public class MultitypeCellContentView implements CellContentView { CellContentView textView, pageView; public MultitypeCellContentView( CellContentView textView, CellContentView pageView) { this.textView = textView; this.pageView = pageView; } public void place(Cell c, VobScene sc, int coordsys, float w, float h, ViewContext context, float scale) { VStreamCellTexter tex = (VStreamCellTexter)c.space.getCellTexter(); Enfilade1D enf = tex.getEnfilade(c, null); if(enf.length() == 0) return; Object firstSpan = enf.getList().get(0); if(firstSpan instanceof PageSpan) pageView.place(c, sc, coordsys, w, h, context, scale); else textView.place(c, sc, coordsys, w, h, context, scale); } }