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

ncsa.hdf.view.ImageView 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 java.awt.Image;
import java.awt.Rectangle;

/**
 * The image view interface for displaying image object
 * 
 * @author Peter X. Cao
 * @version 2.4 9/6/2007
 */
public abstract interface ImageView extends DataView {
    /**
     * returns the selected area of the image
     * 
     * @return the rectangle of the selected image area.
     */
    public abstract Rectangle getSelectedArea();

    /** @return true if the image is a truecolor image. */
    public abstract boolean isTrueColor();

    /** @return true if the image interlace is plance interlace. */
    public abstract boolean isPlaneInterlace();

    /** returns array of selected data */
    public abstract Object getSelectedData();

    /** returns the image displayed in this imageView */
    public abstract Image getImage();

    /** sets the image */
    public abstract void setImage(Image img);

    /** returns the palette of the image */
    public abstract byte[][] getPalette();

    /** sets the image palette */
    public abstract void setPalette(byte[][] palette);

    /** returns the byte array of the image data */
    public abstract byte[] getImageByteData();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy