public class PathData extends Object implements JIPipeData
Path
Modifier | Constructor and Description |
---|---|
protected |
PathData() |
|
PathData(Path path)
Initializes file data from a file
|
|
PathData(String path) |
Modifier and Type | Method and Description |
---|---|
JIPipeThumbnailData |
createThumbnail(int width,
int height,
JIPipeProgressInfo progressInfo)
This function generates a thumbnail for this data
Can return null
|
JIPipeData |
duplicate(JIPipeProgressInfo progressInfo)
Duplicates the data
|
void |
exportData(JIPipeWriteDataStorage storage,
String name,
boolean forceName,
JIPipeProgressInfo progressInfo)
Saves the data to a folder
|
String |
getPath() |
static PathData |
importData(JIPipeReadDataStorage storage,
JIPipeProgressInfo progressInfo) |
Component |
preview(int width,
int height)
This function generates a preview component for usage within the GUI
Can return null
|
void |
setPath(Path path) |
void |
setPath(String path) |
Path |
toPath() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, toDetailedString
public PathData(Path path)
path
- File pathpublic PathData(String path)
protected PathData()
public static PathData 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 preview(int width, int height)
JIPipeData
preview
in interface JIPipeData
width
- the target widthheight
- the target heightpublic JIPipeThumbnailData createThumbnail(int width, int height, JIPipeProgressInfo progressInfo)
JIPipeData
createThumbnail
in interface JIPipeData
width
- the widthheight
- the heightprogressInfo
- the progress infopublic String getPath()
public void setPath(String path)
public void setPath(Path path)
public Path toPath()
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.