public class JIPipeIconLabelThumbnailData extends JIPipeSerializedJsonObjectData implements JIPipeThumbnailData
Constructor and Description |
---|
JIPipeIconLabelThumbnailData(JIPipeIconLabelThumbnailData other) |
JIPipeIconLabelThumbnailData(String text,
String icon) |
Modifier and Type | Method and Description |
---|---|
void |
display(String displayName,
JIPipeDesktopWorkbench desktopWorkbench,
JIPipeDataSource source)
This function should display the data in the GUI.
|
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 void display(String displayName, JIPipeDesktopWorkbench desktopWorkbench, JIPipeDataSource source)
JIPipeData
JIPipeDataDisplayOperation
that can be registered separately.
This item will always be shown as "Default" in the list of operations.display
in interface JIPipeData
displayName
- a name that can be useddesktopWorkbench
- the workbenchsource
- optional source of the data. Can be null or any kind of data type (e.g. JIPipeDataSlot
)public 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–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.