public final class ThumbnailCache extends Object
| Constructor and Description |
|---|
ThumbnailCache(ThumbnailManager thumbnailManager)
Create a new thumbnail cache with the specified thumbnail manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component component)
Repaint the specified component on reload of thumbnail images.
|
BufferedImage |
getLargeThumbnail(URI uri)
Return a large size (256x256 pixel) thumbnail image for the specified URI.
|
BufferedImage |
getThumbnail(URI uri)
Return a normal size (128x128 pixel) thumbnail image for the specified URI.
|
void |
remove(Component component)
Remove the specified component from the list of components to repaint on reload of thumbnail images.
|
public ThumbnailCache(ThumbnailManager thumbnailManager)
thumbnailManager - thumbnail manager, must not be nullpublic void add(Component component)
component - component to repaint on reload of thumbnail images, must not be nullpublic void remove(Component component)
component - component to remove from the list of components to repaint on reload of thumbnail imagespublic BufferedImage getThumbnail(URI uri)
uri - URI for the original image, must not be nullpublic BufferedImage getLargeThumbnail(URI uri)
uri - URI for the original image, must not be nullCopyright © 2013–2019 dishevelled.org. All rights reserved.