public class SpotsCollectionData extends ModelData
Constructor and Description |
---|
SpotsCollectionData(ModelData other) |
SpotsCollectionData(Model model,
Settings settings,
ij.ImagePlus image) |
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
|
void |
display(String displayName,
JIPipeWorkbench workbench,
JIPipeDataSource source)
This function should display the data in the GUI.
|
int |
getNSpots() |
double |
getSpotFeature(Spot spot,
String feature,
double defaultValue)
Gets a feature of a spot.
|
Range<Double> |
getSpotFeatureRange(String featureName)
Returns the range of values for a feature.
|
SpotCollection |
getSpots() |
static SpotsCollectionData |
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 |
recalculateSpotFeatureRange() |
ROIListData |
spotsToROIList() |
String |
toDetailedString()
This method returns a detailed string description (with multi-line, etc.) of the data.
|
String |
toString() |
duplicate, exportData, getImage, getModel, getSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden
public SpotsCollectionData(ModelData other)
public static SpotsCollectionData importData(JIPipeReadDataStorage storage, JIPipeProgressInfo progressInfo)
public int getNSpots()
public String toDetailedString()
JIPipeData
public SpotCollection getSpots()
public Range<Double> getSpotFeatureRange(String featureName)
featureName
- the featurepublic void recalculateSpotFeatureRange()
public Component preview(int width, int height)
JIPipeData
width
- the target widthheight
- the target heightpublic JIPipeThumbnailData createThumbnail(int width, int height, JIPipeProgressInfo progressInfo)
JIPipeData
width
- the widthheight
- the heightprogressInfo
- the progress infopublic void display(String displayName, JIPipeWorkbench workbench, 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
display
in class ModelData
displayName
- a name that can be usedworkbench
- the workbenchsource
- optional source of the data. Can be null or any kind of data type (e.g. JIPipeDataSlot
)public double getSpotFeature(Spot spot, String feature, double defaultValue)
spot
- the spotfeature
- the featuredefaultValue
- the default valuepublic ROIListData spotsToROIList()
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.