- 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 SummaryFields inherited from interface hdf.view.DataView.DataViewDATAVIEW_IMAGE, DATAVIEW_TABLE, DATAVIEW_UNKNOWN
- 
Method SummaryModifier and Type Method Description ImagegetImage()byte[]getImageByteData()byte[][]getPalette()RectanglegetSelectedArea()Returns the selected area of the imageObjectgetSelectedData()booleanisPlaneInterlace()booleanisTrueColor()voidsetImage(Image img)Sets the imagevoidsetPalette(byte[][] palette)Sets the image paletteMethods inherited from interface hdf.view.DataView.DataViewgetDataObject
- 
Method Details- 
getSelectedAreaRectangle getSelectedArea()Returns the selected area of the image- Returns:
- the rectangle of the selected image area.
 
- 
isTrueColorboolean isTrueColor()- Returns:
- true if the image is a truecolor image.
 
- 
isPlaneInterlaceboolean isPlaneInterlace()- Returns:
- true if the image interlace is plane interlace.
 
- 
getSelectedDataObject getSelectedData()- Returns:
- array of selected data
 
- 
getImageImage getImage()- Returns:
- the image displayed in this imageView
 
- 
setImageSets the image- Parameters:
- img- the image to view
 
- 
getPalettebyte[][] getPalette()- Returns:
- the palette of the image
 
- 
setPaletteSets the image palette- Parameters:
- palette- the palette for the image to view
 
- 
getImageByteDatabyte[] getImageByteData()- Returns:
- the byte array of the image data
 
 
-