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 file COPYING.                     *
009 * COPYING can be found at the root of the source code distribution tree.    *
010 * If you do not have access to this file, you may request a copy from       *
011 * help@hdfgroup.org.                                                        *
012 ****************************************************************************/
013
014package hdf.view;
015
016import hdf.object.HObject;
017
018/**
019 * The data view interface for displaying data objects
020 *
021 * @author Peter X. Cao
022 * @version 2.4 9/6/2007
023 */
024public abstract interface DataView {
025    /** The unknown view type */
026    public final static int DATAVIEW_UNKNOWN = -1;
027
028    /** The table view type */
029    public final static int DATAVIEW_TABLE = 1;
030
031    /** The image view type */
032    public final static int DATAVIEW_IMAGE = 2;
033
034    /** The text view type */
035    public final static int DATAVIEW_TEXT = 3;
036
037    /** @return the data object displayed in this data viewer */
038    public abstract HObject getDataObject();
039
040    /** Disposes this datao viewer */
041    public abstract void dispose();
042
043}