public interface JIPipeThumbnailData extends JIPipeData
Modifier and Type | Method and Description |
---|---|
default JIPipeThumbnailData |
createThumbnail(int width,
int height,
JIPipeProgressInfo progressInfo)
This function generates a thumbnail for this data
Can return null
|
int |
getHeight()
The height if hasSize() is true
Otherwise, will return 0
|
int |
getWidth()
The width if hasSize() is true
Otherwise, will return 0
|
boolean |
hasSize()
Returns true if the thumbnail data has a specific size
|
Component |
renderToComponent(int width,
int height)
Creates a Swing component that represents the thumbnail
|
close, duplicate, exportData, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, preview, toDetailedString
Component renderToComponent(int width, int height)
width
- the requested width of the swing componentheight
- the requested height of the swing componentboolean hasSize()
int getWidth()
int getHeight()
default JIPipeThumbnailData createThumbnail(int width, int height, JIPipeProgressInfo progressInfo)
JIPipeData
createThumbnail
in interface JIPipeData
width
- the widthheight
- the heightprogressInfo
- the progress infoCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.