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.PaletteView;
016
017import java.util.HashMap;
018
019import org.eclipse.swt.widgets.Composite;
020
021import hdf.object.HObject;
022import hdf.view.DataView.DataViewFactory;
023import hdf.view.DataView.DataViewManager;
024import hdf.view.ImageView.ImageView;
025import hdf.view.MetaDataView.MetaDataView;
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 PaletteViewFactory and can thus
032 * be used appropriately where a PaletteView is needed.
033 *
034 * @author jhenderson
035 * @version 1.0 7/30/3018
036 */
037public abstract class PaletteViewFactory extends DataViewFactory {
038
039    @SuppressWarnings("rawtypes")
040    @Override
041    public final TableView getTableView(DataViewManager viewer, HashMap dataPropertiesMap) throws ClassNotFoundException, UnsupportedOperationException {
042        throw new UnsupportedOperationException("PaletteViewFactory 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("PaletteViewFactory does not implement getImageView()");
049    }
050
051    @Override
052    public final MetaDataView getMetaDataView(Composite parentObj, DataViewManager viewer, HObject theObj) throws ClassNotFoundException, UnsupportedOperationException {
053        throw new UnsupportedOperationException("PaletteViewFactory does not implement getMetaDataView()");
054    }
055
056    @Override
057    public final TreeView getTreeView(Composite parent, DataViewManager viewer) throws ClassNotFoundException, UnsupportedOperationException {
058        throw new UnsupportedOperationException("PaletteViewFactory does not implement getTreeView()");
059    }
060
061}