All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ncsa.hdf.view.ViewManager Maven / Gradle / Ivy

The newest version!
/*****************************************************************************
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of the HDF Java Products distribution.                  *
 * The full copyright notice, including terms governing use, modification,   *
 * and redistribution, is contained in the files COPYING and Copyright.html. *
 * COPYING can be found at the root of the source code distribution tree.    *
 * Or, see http://hdfgroup.org/products/hdf-java/doc/Copyright.html.         *
 * If you do not have access to either file, you may request a copy from     *
 * [email protected].                                                        *
 ****************************************************************************/

package ncsa.hdf.view;

import ncsa.hdf.object.HObject;

/**
 * 
 * Defines a list of APIs for the main HDFView winodows
 * 
 * @author Peter X. Cao
 * @version 2.4 9/6/2007
 */
public abstract interface ViewManager {
    /** data content is displayed, and add the dataview to the main windows */
    public abstract void addDataView(DataView dataView);

    /** data content is closed, and remove the dataview from the main window */
    public abstract void removeDataView(DataView dataView);

    /**
     * Returns DataView contains the specified data object. It is useful to
     * avoid redundant display of data object that is opened already.
     * 
     * @param dataObject
     *            the whose presence in the main view is to be tested.
     * @return DataView contains the specified data object, null if the data
     *         object is not displayed.
     */
    public abstract DataView getDataView(HObject dataObject);

    /** display feedback message */
    public abstract void showStatus(String msg);

    /** returns the current treeView */
    public abstract TreeView getTreeView();

    /** Tree mouse event fired */
    public abstract void mouseEventFired(java.awt.event.MouseEvent e);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy