public class JIPipeGridThumbnailData extends Object implements JIPipeThumbnailData
Constructor and Description |
---|
JIPipeGridThumbnailData(JIPipeGridThumbnailData other) |
JIPipeGridThumbnailData(List<JIPipeThumbnailData> children) |
Modifier and Type | Method and Description |
---|---|
JIPipeData |
duplicate(JIPipeProgressInfo progressInfo)
Duplicates the data
|
void |
exportData(JIPipeWriteDataStorage storage,
String name,
boolean forceName,
JIPipeProgressInfo progressInfo)
Saves the data to a folder
|
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
|
static JIPipeGridThumbnailData |
importData(JIPipeReadDataStorage storage,
JIPipeProgressInfo progressInfo) |
Component |
renderToComponent(int width,
int height)
Creates a Swing component that represents the thumbnail
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createThumbnail
close, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, preview, toDetailedString
public JIPipeGridThumbnailData(List<JIPipeThumbnailData> children)
public JIPipeGridThumbnailData(JIPipeGridThumbnailData other)
public static JIPipeGridThumbnailData importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
public JIPipeData duplicate(JIPipeProgressInfo progressInfo)
JIPipeData
duplicate
in interface JIPipeData
progressInfo
- the progress of duplicating the datapublic void exportData(JIPipeWriteDataStorage storage, String name, boolean forceName, JIPipeProgressInfo progressInfo)
JIPipeData
exportData
in interface JIPipeData
storage
- The storage where the data should be writtenname
- A name reference that can be used to generate filename(s)forceName
- If enabled, the data is saved potentially destructively. Generated files must always contain the name parameter. This is used to collect results for humans or other algorithms.progressInfo
- the progresspublic Component renderToComponent(int width, int height)
JIPipeThumbnailData
renderToComponent
in interface JIPipeThumbnailData
width
- the requested width of the swing componentheight
- the requested height of the swing componentpublic boolean hasSize()
JIPipeThumbnailData
hasSize
in interface JIPipeThumbnailData
public int getWidth()
JIPipeThumbnailData
getWidth
in interface JIPipeThumbnailData
public int getHeight()
JIPipeThumbnailData
getHeight
in interface JIPipeThumbnailData
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.