public class ROIDrawerFormData extends FormData
FormData
for drawing ROIsFormData.Serializer, FormData.TabSettings
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterChangedEventEmitter, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEventEmitter, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEvent, JIPipeParameterCollection.ParameterUIChangedEventEmitter, JIPipeParameterCollection.ParameterUIChangedEventListener
Constructor and Description |
---|
ROIDrawerFormData(List<JIPipeMergingDataBatch> dataBatches,
DrawROIAlgorithm drawROIAlgorithm) |
Modifier and Type | Method and Description |
---|---|
void |
customCopy(FormData source,
CustomValidationReportContext context,
JIPipeValidationReport report)
A custom copy function that copies the contents from source into this form.
|
void |
customReset()
A custom reset method
|
void |
display(String displayName,
JIPipeWorkbench workbench,
JIPipeDataSource source)
This function should display the data in the GUI.
|
JIPipeData |
duplicate(JIPipeProgressInfo progressInfo)
Duplicates the data
|
Component |
getEditor(JIPipeWorkbench workbench)
Gets a component that acts as the editor for the form data.
|
JIPipeImageViewer |
getImageViewerPanel() |
boolean |
isUsingCustomCopy()
Determines whether this form data uses a custom copy method for the "Apply to ..." function
If false, duplicate() is used
If true, customCopy(src) is used
|
boolean |
isUsingCustomReset()
Determines whether this form data uses a custom reset method
If false, a new copy of the original data is created
If true, customReset() is called
|
void |
loadData(JIPipeMergingDataBatch dataBatch)
This method is called by the form processor nodes on loading data into this form.
|
void |
reportValidity(JIPipeValidationReportContext context,
JIPipeValidationReport report)
Generates a validity report
|
void |
writeData(JIPipeMergingDataBatch dataBatch)
This method should write any changes into the data batch
|
exportData, fromJson, getTabSettings, importData, isImmutable, preview
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, toDetailedString
generateValidityReport
emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, isParameterUIVisible, isParameterUIVisible, setParameter
public ROIDrawerFormData(List<JIPipeMergingDataBatch> dataBatches, DrawROIAlgorithm drawROIAlgorithm)
public JIPipeImageViewer getImageViewerPanel()
public boolean isUsingCustomCopy()
FormData
isUsingCustomCopy
in class FormData
public void customCopy(FormData source, CustomValidationReportContext context, JIPipeValidationReport report)
FormData
JIPipeValidationReport
to report issues.customCopy
in class FormData
source
- the source datacontext
- the contextreport
- the error reportpublic boolean isUsingCustomReset()
FormData
isUsingCustomReset
in class FormData
public void customReset()
FormData
customReset
in class FormData
public void reportValidity(JIPipeValidationReportContext context, JIPipeValidationReport report)
JIPipeValidatable
report
- the report to be added topublic JIPipeData duplicate(JIPipeProgressInfo progressInfo)
JIPipeData
progressInfo
- the progress of duplicating the datapublic 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.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 Component getEditor(JIPipeWorkbench workbench)
FormData
public void loadData(JIPipeMergingDataBatch dataBatch)
FormData
public void writeData(JIPipeMergingDataBatch dataBatch)
FormData
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.