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 org.eclipse.swt.widgets.Composite; 019import org.eclipse.swt.widgets.Shell; 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.PaletteView.PaletteView; 027import hdf.view.TreeView.TreeView; 028 029/** 030 * This class extends DataViewFactory so that at runtime it can be determined if a specific DataViewFactory class is a 031 * 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) throws ClassNotFoundException, UnsupportedOperationException { 041 throw new UnsupportedOperationException("TableViewFactory does not implement getImageView()"); 042 } 043 044 @Override 045 public final PaletteView getPaletteView(Shell parent, DataViewManager viewer, ImageView theImageView) throws ClassNotFoundException, UnsupportedOperationException { 046 throw new UnsupportedOperationException("TableViewFactory does not implement getPaletteView()"); 047 } 048 049 @Override 050 public final MetaDataView getMetaDataView(Composite parentObj, DataViewManager viewer, HObject theObj) throws ClassNotFoundException, UnsupportedOperationException { 051 throw new UnsupportedOperationException("TableViewFactory does not implement getMetaDataView()"); 052 } 053 054 @Override 055 public final TreeView getTreeView(Composite parent, DataViewManager viewer) throws ClassNotFoundException, UnsupportedOperationException { 056 throw new UnsupportedOperationException("TableViewFactory does not implement getTreeView()"); 057 } 058 059}