| java.lang.Object javax.imageio.IIOImage
Field Summary | |
protected RenderedImage | image The RenderedImage being referenced. | protected IIOMetadata | metadata An IIOMetadata object containing metadata
associated with the image. | protected Raster | raster The Raster being referenced. | protected List<? extends BufferedImage> | thumbnails A List of BufferedImage thumbnails,
or null . |
Constructor Summary | |
public | IIOImage(RenderedImage image, List<? extends BufferedImage> thumbnails, IIOMetadata metadata) Constructs an IIOImage containing a
RenderedImage , and thumbnails and metadata
associated with it. | public | IIOImage(Raster raster, List<? extends BufferedImage> thumbnails, IIOMetadata metadata) Constructs an IIOImage containing a
Raster , and thumbnails and metadata
associated with it. |
Method Summary | |
public IIOMetadata | getMetadata() Returns a reference to the current IIOMetadata
object, or null is none is set. | public int | getNumThumbnails() Returns the number of thumbnails stored in this
IIOImage . | public Raster | getRaster() Returns the currently set Raster , or
null if only a RenderedImage is
available. | public RenderedImage | getRenderedImage() Returns the currently set RenderedImage , or
null if only a Raster is available. | public BufferedImage | getThumbnail(int index) Returns a thumbnail associated with the main image.
Parameters: index - the index of the desired thumbnail image. | public List<? extends BufferedImage> | getThumbnails() Returns the current List of thumbnail
BufferedImage s, or null if none is
set. | public boolean | hasRaster() Returns true if this IIOImage stores
a Raster rather than a RenderedImage . | public void | setMetadata(IIOMetadata metadata) Sets the IIOMetadata to a new object, or
null . | public void | setRaster(Raster raster) Sets the current Raster . | public void | setRenderedImage(RenderedImage image) Sets the current RenderedImage . | public void | setThumbnails(List<? extends BufferedImage> thumbnails) Sets the list of thumbnails to a new List of
BufferedImage s, or to null . |
image | protected RenderedImage image(Code) | | The RenderedImage being referenced.
|
metadata | protected IIOMetadata metadata(Code) | | An IIOMetadata object containing metadata
associated with the image.
|
raster | protected Raster raster(Code) | | The Raster being referenced.
|
thumbnails | protected List<? extends BufferedImage> thumbnails(Code) | | A List of BufferedImage thumbnails,
or null . Non-BufferedImage objects
must not be stored in this List .
|
IIOImage | public IIOImage(RenderedImage image, List<? extends BufferedImage> thumbnails, IIOMetadata metadata)(Code) | | Constructs an IIOImage containing a
RenderedImage , and thumbnails and metadata
associated with it.
All parameters are stored by reference.
The thumbnails argument must either be
null or contain only BufferedImage
objects.
Parameters: image - a RenderedImage . Parameters: thumbnails - a List of BufferedImage s,or null . Parameters: metadata - an IIOMetadata object, ornull . exception: IllegalArgumentException - if image isnull . |
IIOImage | public IIOImage(Raster raster, List<? extends BufferedImage> thumbnails, IIOMetadata metadata)(Code) | | Constructs an IIOImage containing a
Raster , and thumbnails and metadata
associated with it.
All parameters are stored by reference.
Parameters: raster - a Raster . Parameters: thumbnails - a List of BufferedImage s,or null . Parameters: metadata - an IIOMetadata object, ornull . exception: IllegalArgumentException - if raster isnull . |
getMetadata | public IIOMetadata getMetadata()(Code) | | Returns a reference to the current IIOMetadata
object, or null is none is set.
an IIOMetadata object, or null . See Also: IIOImage.setMetadata |
getNumThumbnails | public int getNumThumbnails()(Code) | | Returns the number of thumbnails stored in this
IIOImage .
the number of thumbnails, as an int . |
getRaster | public Raster getRaster()(Code) | | Returns the currently set Raster , or
null if only a RenderedImage is
available.
a Raster , or null . See Also: IIOImage.setRaster |
getRenderedImage | public RenderedImage getRenderedImage()(Code) | | Returns the currently set RenderedImage , or
null if only a Raster is available.
a RenderedImage , or null . See Also: IIOImage.setRenderedImage |
hasRaster | public boolean hasRaster()(Code) | | Returns true if this IIOImage stores
a Raster rather than a RenderedImage .
true if a Raster isavailable. |
setMetadata | public void setMetadata(IIOMetadata metadata)(Code) | | Sets the IIOMetadata to a new object, or
null .
Parameters: metadata - an IIOMetadata object, ornull . See Also: IIOImage.getMetadata |
setRaster | public void setRaster(Raster raster)(Code) | | Sets the current Raster . The value is
stored by reference. Any existing RenderedImage is
discarded.
Parameters: raster - a Raster . exception: IllegalArgumentException - if raster isnull . See Also: IIOImage.getRaster |
setRenderedImage | public void setRenderedImage(RenderedImage image)(Code) | | Sets the current RenderedImage . The value is
stored by reference. Any existing Raster is
discarded.
Parameters: image - a RenderedImage . exception: IllegalArgumentException - if image isnull . See Also: IIOImage.getRenderedImage |
setThumbnails | public void setThumbnails(List<? extends BufferedImage> thumbnails)(Code) | | Sets the list of thumbnails to a new List of
BufferedImage s, or to null . The
reference to the previous List is discarded.
The thumbnails argument must either be
null or contain only BufferedImage
objects.
Parameters: thumbnails - a List ofBufferedImage thumbnails, or null . See Also: IIOImage.getThumbnail(int) See Also: IIOImage.getThumbnails |
|
|