public class JIPipeIconLabelThumbnailData extends JIPipeSerializedJsonObjectData implements JIPipeThumbnailData
Constructor and Description |
---|
JIPipeIconLabelThumbnailData(JIPipeIconLabelThumbnailData other) |
JIPipeIconLabelThumbnailData(String text,
String icon) |
Modifier and Type | Method and Description |
---|---|
JIPipeData |
duplicate(JIPipeProgressInfo progressInfo)
Duplicates the data
|
int |
getHeight()
The height if hasSize() is true
Otherwise, will return 0
|
String |
getIcon() |
String |
getText() |
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 JIPipeIconLabelThumbnailData |
importData(JIPipeReadDataStorage storage,
JIPipeProgressInfo progressInfo) |
Component |
renderToComponent(int width,
int height)
Creates a Swing component that represents the thumbnail
|
void |
setIcon(String icon) |
void |
setText(String text) |
exportData, importData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createThumbnail
close, exportData, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, preview, toDetailedString
public JIPipeIconLabelThumbnailData(JIPipeIconLabelThumbnailData other)
public static JIPipeIconLabelThumbnailData importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
public JIPipeData duplicate(JIPipeProgressInfo progressInfo)
JIPipeData
duplicate
in interface JIPipeData
duplicate
in class JIPipeSerializedJsonObjectData
progressInfo
- the progress of duplicating the datapublic String getText()
public void setText(String text)
public String getIcon()
public void setIcon(String icon)
public 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.