Package ucar.nc2.dt.image
Class ImageDatasetFactory
- java.lang.Object
-
- ucar.nc2.dt.image.ImageDatasetFactory
-
public class ImageDatasetFactory extends Object
A factory for buffered images
-
-
Constructor Summary
Constructors Constructor Description ImageDatasetFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorMessages()
BufferedImage
getNextImage(boolean forward)
This assumes you have opened a file.BufferedImage
open(String location)
Open from a URL: adde: use AddeImage.factory() http: use javax.imageio.ImageIO.read() file: javax.imageio.ImageIO.read()BufferedImage
openDataset(GridDatatype grid)
-
-
-
Method Detail
-
getErrorMessages
public String getErrorMessages()
-
openDataset
public BufferedImage openDataset(GridDatatype grid) throws IOException
- Throws:
IOException
-
open
public BufferedImage open(String location)
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
-
getNextImage
public 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.
-
-