ucar.nc2.dt.image
Class ImageDatasetFactory

java.lang.Object
  extended by ucar.nc2.dt.image.ImageDatasetFactory

public class ImageDatasetFactory
extends java.lang.Object

Author:
caron

Constructor Summary
ImageDatasetFactory()
           
 
Method Summary
 java.lang.String getErrorMessages()
           
 java.awt.image.BufferedImage getNextImage(boolean forward)
          This assumes you have opened a file.
 java.awt.image.BufferedImage open(java.lang.String location)
          Open from a URL: adde: use AddeImage.factory() http: use javax.imageio.ImageIO.read() file: javax.imageio.ImageIO.read()
 java.awt.image.BufferedImage openDataset(GridDatatype grid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageDatasetFactory

public ImageDatasetFactory()
Method Detail

getErrorMessages

public java.lang.String getErrorMessages()

openDataset

public java.awt.image.BufferedImage openDataset(GridDatatype grid)
                                         throws java.io.IOException
Throws:
java.io.IOException

open

public java.awt.image.BufferedImage open(java.lang.String location)
                                  throws java.io.IOException
Open from a URL: adde: use AddeImage.factory() http: use javax.imageio.ImageIO.read() file: javax.imageio.ImageIO.read()

Parameters:
location - open from this location
Returns:
a BufferedImage
Throws:
java.io.IOException - on read error

getNextImage

public java.awt.image.BufferedImage getNextImage(boolean forward)
This assumes you have opened a file. looks in the parent directory.

Parameters:
forward - if true got to next, else previous
Returns:
next file in the directory, as a BufferedImage.