public interface ThumbnailProvider
ThumbnailProvider
interface are responsible
to provide a thumbnail image for a specific page this ThumbnailProvider
realization is associated to.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_THUMB_HEIGHT
Default thumbnail (the thumb and the contained page) height.
|
static int |
DEFAULT_THUMB_WIDTH
Default thumbnail (the thumb and the contained page) width.
|
Modifier and Type | Method and Description |
---|---|
RenderedImage |
getThumbnail(Page page,
TaskExecutor<Page> taskExecutor,
RenderControls renderControls,
boolean createIfNotCached)
Returns a thumbnail image in given size of a page associated to.
|
static final int DEFAULT_THUMB_WIDTH
static final int DEFAULT_THUMB_HEIGHT
RenderedImage getThumbnail(Page page, TaskExecutor<Page> taskExecutor, RenderControls renderControls, boolean createIfNotCached)
Depending on the concrete realisation, the returned image may be the ready-made thumbnail image
or for lazy creation null
or a placeholder dummy image. If null
or a
dummy image is returned the given render observer gets informed to trigger an update render
process on the caller of this method. If the parameterized render observer is null
, the update process remains in the hands of the caller.
page
- the of which a thumbnail is demandedrenderControls
- the target size the thumbnail should havecreateIfNotCached
- whether the creation of a tumbnail should be forced if it is not
already cachedCopyright © 2024 levigo holding gmbh. All rights reserved.