package edu.vt.vbi.pathport.client.plugin.taverna; import edu.vt.vbi.pathport.client.toolbus.*; /** * A simple ViewManager for the CommuterModel. * This is used as a tutorial for developers * wishing to create a new ToolBus visualization * plugin. */ public class TavernaViewManager extends ViewManager { /** * The name for the Taverna View Type. */ private static String tavernaViewType = "Taverna View"; /** * Constructor. * * @param m Model for which this class manages Views. */ public TavernaViewManager(Model m) { super(m); availViews.add(tavernaViewType); } /** * Creates and returns a new View of the specified type. * * @param viewType name of View Type to be created. */ public ToolBusViewerI newView(String viewType) { View r = null; if (viewType.equals(tavernaViewType)) { r = new TavernaView(getModel()); } return r; } } /*--- Formatted in Sun Java Convention Style on Wed, Jun 15, '05 ---*/ /*------ Formatted by Jindent 3.24 Gold 1.02 --- http://www.jindent.de ------*/