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.PaletteView;
016
017import java.util.HashMap;
018
019import hdf.object.HObject;
020import hdf.view.DataView.DataViewFactory;
021import hdf.view.DataView.DataViewManager;
022import hdf.view.ImageView.ImageView;
023import hdf.view.MetaDataView.MetaDataView;
024import hdf.view.TableView.TableView;
025import hdf.view.TreeView.TreeView;
026
027import org.eclipse.swt.widgets.Composite;
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)
042        throws ClassNotFoundException, UnsupportedOperationException
043    {
044        throw new UnsupportedOperationException("PaletteViewFactory does not implement getTableView()");
045    }
046
047    @SuppressWarnings("rawtypes")
048    @Override
049    public final ImageView getImageView(DataViewManager viewer, HashMap dataPropertiesMap)
050        throws ClassNotFoundException, UnsupportedOperationException
051    {
052        throw new UnsupportedOperationException("PaletteViewFactory does not implement getImageView()");
053    }
054
055    @Override
056    public final MetaDataView getMetaDataView(Composite parentObj, DataViewManager viewer, HObject theObj)
057        throws ClassNotFoundException, UnsupportedOperationException
058    {
059        throw new UnsupportedOperationException("PaletteViewFactory does not implement getMetaDataView()");
060    }
061
062    @Override
063    public final TreeView getTreeView(Composite parent, DataViewManager viewer)
064        throws ClassNotFoundException, UnsupportedOperationException
065    {
066        throw new UnsupportedOperationException("PaletteViewFactory does not implement getTreeView()");
067    }
068}