public class JIPipeImageThumbnailData extends Object implements JIPipeThumbnailData
Constructor and Description |
---|
JIPipeImageThumbnailData(Image image) |
JIPipeImageThumbnailData(ij.ImagePlus image) |
JIPipeImageThumbnailData(ij.process.ImageProcessor processor) |
JIPipeImageThumbnailData(JIPipeImageThumbnailData other) |
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
|
ij.ImagePlus |
getImage() |
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 JIPipeImageThumbnailData |
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 JIPipeImageThumbnailData(ij.ImagePlus image)
public JIPipeImageThumbnailData(ij.process.ImageProcessor processor)
public JIPipeImageThumbnailData(Image image)
public JIPipeImageThumbnailData(JIPipeImageThumbnailData other)
public static JIPipeImageThumbnailData importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
public 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 JIPipeData duplicate(JIPipeProgressInfo progressInfo)
JIPipeData
duplicate
in interface JIPipeData
progressInfo
- the progress of duplicating the datapublic 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
public ij.ImagePlus getImage()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.