Class ThumbsLoader
java.lang.Object
org.openstreetmap.josm.gui.layer.geoimage.ThumbsLoader
- All Implemented Interfaces:
Runnable
Loads thumbnail previews for a list of images from a
GeoImageLayer.
Thumbnails are loaded in the background and cached on disk for the next session.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.commons.jcs3.access.behavior.ICacheAccess<String,BufferedImageCacheEntry> private final booleanprivate final Collection<ImageEntry>private final GeoImageLayerstatic final intstatic final intboolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionThumbsLoader(Collection<ImageEntry> entries) Constructs a new thumbnail loader that operates on the image entriesprivateThumbsLoader(Collection<ImageEntry> data, GeoImageLayer layer) ThumbsLoader(GeoImageLayer layer) Constructs a new thumbnail loader that operates on a geoimage layer. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidInitialize the thumbnail cache.private BufferedImageloadThumb(ImageEntry entry) voidrun()
-
Field Details
-
maxSize
- See Also:
-
minSize
- See Also:
-
stop
-
data
-
layer
-
cache
-
cacheOff
-
-
Constructor Details
-
ThumbsLoader
-
ThumbsLoader
Constructs a new thumbnail loader that operates on a geoimage layer.- Parameters:
layer- geoimage layer
-
ThumbsLoader
Constructs a new thumbnail loader that operates on the image entries- Parameters:
entries- image entries
-
-
Method Details