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