Methods Summary |
---|
public javax.imageio.metadata.IIOMetadata | getMetadata()Gets the metadata of this IIOImage.
return metadata;
|
public int | getNumThumbnails()Gets the number of thumbnails for this IIOImage.
return thumbnails != null ? thumbnails.size() : 0;
|
public java.awt.image.Raster | getRaster()Gets the Raster object or returns null if this IIOImage object is
associated with a RenderedImage.
return raster;
|
public java.awt.image.RenderedImage | getRenderedImage()Gets the RenderedImage object or returns null if this IIOImage object is
associated with a Raster.
return image;
|
public java.awt.image.BufferedImage | getThumbnail(int index)Gets the thumbnail with the specified index in the list.
if (thumbnails != null) {
return thumbnails.get(index);
}
throw new IndexOutOfBoundsException("no thumbnails were set");
|
public java.util.List | getThumbnails()Gets the list of thumbnails.
return thumbnails;
|
public boolean | hasRaster()Returns true if the IIOImage object associated with a Raster, or false if
it's associated with a RenderedImage.
return raster != null;
|
public void | setMetadata(javax.imageio.metadata.IIOMetadata metadata)Sets the metadata to this IIOImage object.
this.metadata = metadata;
|
public void | setRaster(java.awt.image.Raster raster)Sets the Raster to the IIOImage.
if (raster == null) {
throw new IllegalArgumentException("raster should not be NULL");
}
image = null;
this.raster = raster;
|
public void | setRenderedImage(java.awt.image.RenderedImage image)Sets the RenderedImage to this IIOImage object.
if (image == null) {
throw new IllegalArgumentException("image should not be NULL");
}
raster = null;
this.image = image;
|
public void | setThumbnails(java.util.List thumbnails)Sets the list of thumbnails images to this IIOImage object.
this.thumbnails = thumbnails;
|