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.ImageView;
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.MetaDataView.MetaDataView;
026import hdf.view.PaletteView.PaletteView;
027import hdf.view.TableView.TableView;
028import hdf.view.TreeView.TreeView;
029
030/*
031 * This class extends DataViewFactory so that at runtime it can be determined
032 * if a specific DataViewFactory class is an ImageViewFactory and can thus
033 * be used appropriately where an ImageView is needed.
034 *
035 * @author jhenderson
036 * @version 1.0 7/30/3018
037 */
038public abstract class ImageViewFactory extends DataViewFactory {
039
040    @SuppressWarnings("rawtypes")
041    @Override
042    public final TableView getTableView(DataViewManager viewer, HashMap dataPropertiesMap) throws ClassNotFoundException, UnsupportedOperationException {
043        throw new UnsupportedOperationException("ImageViewFactory does not implement getTableView()");
044    }
045
046    @Override
047    public final PaletteView getPaletteView(Shell parent, DataViewManager viewer, ImageView theImageView) throws ClassNotFoundException, UnsupportedOperationException {
048        throw new UnsupportedOperationException("ImageViewFactory does not implement getPaletteView()");
049    }
050
051    @Override
052    public final MetaDataView getMetaDataView(Composite parentObj, DataViewManager viewer, HObject theObj) throws ClassNotFoundException, UnsupportedOperationException {
053        throw new UnsupportedOperationException("ImageViewFactory does not implement getMetaDataView()");
054    }
055
056    @Override
057    public final TreeView getTreeView(Composite parent, DataViewManager viewer) throws ClassNotFoundException, UnsupportedOperationException {
058        throw new UnsupportedOperationException("ImageViewFactory does not implement getTreeView()");
059    }
060
061}