ncsa.hdf.view
Interface ImageView

All Superinterfaces:
DataView
All Known Implementing Classes:
DefaultImageView

public interface ImageView
extends DataView

The image view interface for displaying image object

Version:
2.4 9/6/2007
Author:
Peter X. Cao

Field Summary
 
Fields inherited from interface ncsa.hdf.view.DataView
DATAVIEW_IMAGE, DATAVIEW_TABLE, DATAVIEW_TEXT, DATAVIEW_UNKNOWN
 
Method Summary
 java.awt.Image getImage()
          returns the image displayed in this imageView
 byte[] getImageByteData()
          returns the byte array of the image data
 byte[][] getPalette()
          returns the palette of the image
 java.awt.Rectangle getSelectedArea()
          returns the selected area of the image
 java.lang.Object getSelectedData()
          returns array of selected data
 boolean isPlaneInterlace()
           
 boolean isTrueColor()
           
 void setImage(java.awt.Image img)
          sets the image
 void setPalette(byte[][] palette)
          sets the image palette
 
Methods inherited from interface ncsa.hdf.view.DataView
dispose, getDataObject
 

Method Detail

getSelectedArea

java.awt.Rectangle getSelectedArea()
returns the selected area of the image

Returns:
the rectangle of the selected image area.

isTrueColor

boolean isTrueColor()
Returns:
true if the image is a truecolor image.

isPlaneInterlace

boolean isPlaneInterlace()
Returns:
true if the image interlace is plance interlace.

getSelectedData

java.lang.Object getSelectedData()
returns array of selected data


getImage

java.awt.Image getImage()
returns the image displayed in this imageView


setImage

void setImage(java.awt.Image img)
sets the image


getPalette

byte[][] getPalette()
returns the palette of the image


setPalette

void setPalette(byte[][] palette)
sets the image palette


getImageByteData

byte[] getImageByteData()
returns the byte array of the image data