79 |
/** |
/** |
80 |
* A list of BufferedImage thumbnails of this image. |
* A list of BufferedImage thumbnails of this image. |
81 |
*/ |
*/ |
82 |
// for 1.5 these lists are List<? extends BufferedImage> |
protected List<? extends BufferedImage> thumbnails; |
|
protected List thumbnails; |
|
83 |
|
|
84 |
/** |
/** |
85 |
* Construct an IIOImage containing raster image data, thumbnails |
* Construct an IIOImage containing raster image data, thumbnails |
91 |
* |
* |
92 |
* @exception IllegalArgumentException if raster is null |
* @exception IllegalArgumentException if raster is null |
93 |
*/ |
*/ |
94 |
public IIOImage (Raster raster, List thumbnails, IIOMetadata metadata) |
public IIOImage (Raster raster, List<? extends BufferedImage> thumbnails, |
95 |
|
IIOMetadata metadata) |
96 |
{ |
{ |
97 |
if (raster == null) |
if (raster == null) |
98 |
throw new IllegalArgumentException ("raster may not be null"); |
throw new IllegalArgumentException ("raster may not be null"); |
112 |
* |
* |
113 |
* @exception IllegalArgumentException if image is null |
* @exception IllegalArgumentException if image is null |
114 |
*/ |
*/ |
115 |
public IIOImage (RenderedImage image, List thumbnails, IIOMetadata metadata) |
public IIOImage (RenderedImage image, List<? extends BufferedImage> thumbnails, |
116 |
|
IIOMetadata metadata) |
117 |
{ |
{ |
118 |
if (image == null) |
if (image == null) |
119 |
throw new IllegalArgumentException ("image may not be null"); |
throw new IllegalArgumentException ("image may not be null"); |
193 |
* |
* |
194 |
* @return a list of thumbnails or null |
* @return a list of thumbnails or null |
195 |
*/ |
*/ |
196 |
public List getThumbnails() |
public List<? extends BufferedImage> getThumbnails() |
197 |
{ |
{ |
198 |
return thumbnails; |
return thumbnails; |
199 |
} |
} |
261 |
* |
* |
262 |
* @param thumbnails a new list of thumbnails or null |
* @param thumbnails a new list of thumbnails or null |
263 |
*/ |
*/ |
264 |
public void setThumbnails (List thumbnails) |
public void setThumbnails (List<? extends BufferedImage> thumbnails) |
265 |
{ |
{ |
266 |
this.thumbnails = thumbnails; |
this.thumbnails = thumbnails; |
267 |
} |
} |