001/***************************************************************************** 002 * Copyright by The HDF Group. * 003 * Copyright by the Board of Trustees of the University of Illinois. * 004 * All rights reserved. * 005 * * 006 * This file is part of the HDF Java Products distribution. * 007 * The full copyright notice, including terms governing use, modification, * 008 * and redistribution, is contained in the files COPYING and Copyright.html. * 009 * COPYING can be found at the root of the source code distribution tree. * 010 * Or, see https://support.hdfgroup.org/products/licenses.html * 011 * If you do not have access to either file, you may request a copy from * 012 * help@hdfgroup.org. * 013 ****************************************************************************/ 014 015package hdf.view.TreeView; 016 017import java.util.HashMap; 018 019import org.eclipse.swt.widgets.Composite; 020import org.eclipse.swt.widgets.Shell; 021 022import hdf.object.HObject; 023import hdf.view.DataView.DataViewFactory; 024import hdf.view.DataView.DataViewManager; 025import hdf.view.ImageView.ImageView; 026import hdf.view.MetaDataView.MetaDataView; 027import hdf.view.PaletteView.PaletteView; 028import hdf.view.TableView.TableView; 029 030/** 031 * This class extends DataViewFactory so that at runtime it can be determined 032 * if a specific DataViewFactory class is a TreeViewFactory and can thus 033 * be used appropriately where a TreeView is needed. 034 * 035 * @author jhenderson 036 * @version 1.0 7/30/3018 037 */ 038public abstract class TreeViewFactory extends DataViewFactory { 039 040 @SuppressWarnings("rawtypes") 041 @Override 042 public final TableView getTableView(DataViewManager viewer, HashMap dataPropertiesMap) throws ClassNotFoundException, UnsupportedOperationException { 043 throw new UnsupportedOperationException("TreeViewFactory does not implement getTableView()"); 044 } 045 046 @SuppressWarnings("rawtypes") 047 @Override 048 public final ImageView getImageView(DataViewManager viewer, HashMap dataPropertiesMap) throws ClassNotFoundException, UnsupportedOperationException { 049 throw new UnsupportedOperationException("TreeViewFactory does not implement getImageView()"); 050 } 051 052 @Override 053 public final PaletteView getPaletteView(Shell parent, DataViewManager viewer, ImageView theImageView) throws ClassNotFoundException, UnsupportedOperationException { 054 throw new UnsupportedOperationException("TreeViewFactory does not implement getPaletteView()"); 055 } 056 057 @Override 058 public final MetaDataView getMetaDataView(Composite parentObj, DataViewManager viewer, HObject theObj) throws ClassNotFoundException, UnsupportedOperationException { 059 throw new UnsupportedOperationException("TreeViewFactory does not implement getMetaDataView()"); 060 } 061 062}