/* MultiView.zob * * You may use and distribute under the terms of either the GNU Lesser * General Public License, either version 2 of the license or, * at your choice, any later version. Alternatively, you may use and * distribute under the terms of the XPL. * * See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of * the licenses. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the README * file for more details. * */ /* * Written by Benjamin Fallenstein */ package org.gzigzag; import java.awt.*; import java.util.*; /** A view that brings together different applitudes. */ public class MultiView implements FlobView, ZOb { public static final String rcsid = "$Id: MultiView.zob,v 1.2 2000/12/28 22:46:02 bfallenstein Exp $"; /** Should we print out debugging info? */ public static boolean dbg = false; static final void p(String s) { if(dbg) pa(s); } static final void pa(String s) { System.out.println(s); } STRUCTPARAMS {} public void raster(final FlobSet into, final FlobFactory fact, final ZZCell win, final String[] dims, final ZZCell accursed) { final Hashtable had = new Hashtable(); ZZCell choice = null; ZZCell[] accapps = ApplitudeMgr.getApplitudes(accursed); ZZCell pref = ApplitudeMgr.getWindowApp(win); if(accapps.length == 0) choice = ApplitudeMgr.getFallback(win.getSpace()); else { for(int i=0; i