    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 COPYING file, which can be found  *
    009 * at the root of the source code distribution tree,                         *
    010 * or in https://www.hdfgroup.org/licenses.                                  *
    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.MetaDataView;
    016
    017import java.util.HashMap;
    018
    019import org.eclipse.swt.widgets.Composite;
    020import org.eclipse.swt.widgets.Shell;
    021
    022import hdf.view.DataView.DataViewFactory;
    023import hdf.view.DataView.DataViewManager;
    024import hdf.view.ImageView.ImageView;
    025import hdf.view.PaletteView.PaletteView;
    026import hdf.view.TableView.TableView;
    027import hdf.view.TreeView.TreeView;
    028
    029/**
    030 * This class extends DataViewFactory so that at runtime it can be determined
    031 * if a specific DataViewFactory class is a MetaDataViewFactory and can thus
    032 * be used appropriately where a MetaDataView is needed.
    033 *
    034 * @author jhenderson
    035 * @version 1.0 7/30/3018
    036 */
    037public abstract class MetaDataViewFactory extends DataViewFactory {
    038
    039    @SuppressWarnings("rawtypes")
    040    @Override
    041    public final TableView getTableView(DataViewManager viewer, HashMap dataPropertiesMap) throws ClassNotFoundException, UnsupportedOperationException {
    042        throw new UnsupportedOperationException("MetaDataViewFactory does not implement getTableView()");
    043    }
    044
    045    @SuppressWarnings("rawtypes")
    046    @Override
    047    public final ImageView getImageView(DataViewManager viewer, HashMap dataPropertiesMap) throws ClassNotFoundException, UnsupportedOperationException {
    048        throw new UnsupportedOperationException("MetaDataViewFactory does not implement getImageView()");
    049    }
    050
    051    @Override
    052    public final PaletteView getPaletteView(Shell parent, DataViewManager viewer, ImageView theImageView) throws ClassNotFoundException, UnsupportedOperationException {
    053        throw new UnsupportedOperationException("MetaDataViewFactory does not implement getPaletteView()");
    054    }
    055
    056    @Override
    057    public final TreeView getTreeView(Composite parent, DataViewManager viewer) throws ClassNotFoundException, UnsupportedOperationException {
    058        throw new UnsupportedOperationException("MetaDataViewFactory does not implement getTreeView()");
    059    }
    060
    061}