public class MaskDrawerFormData extends FormData
FormData
for drawing masksFormData.Serializer, FormData.TabSettings
JIPipeParameterCollection.ParameterChangedEvent, JIPipeParameterCollection.ParameterChangedEventEmitter, JIPipeParameterCollection.ParameterChangedEventListener, JIPipeParameterCollection.ParameterStructureChangedEvent, JIPipeParameterCollection.ParameterStructureChangedEventEmitter, JIPipeParameterCollection.ParameterStructureChangedEventListener, JIPipeParameterCollection.ParameterUIChangedEvent, JIPipeParameterCollection.ParameterUIChangedEventEmitter, JIPipeParameterCollection.ParameterUIChangedEventListener
Constructor and Description |
---|
MaskDrawerFormData(List<JIPipeMultiIterationStep> iterationSteps,
DrawMaskAlgorithm drawMaskAlgorithm) |
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,
JIPipeDesktopWorkbench desktopWorkbench,
JIPipeDataSource source)
This function should display the data in the GUI.
|
JIPipeData |
duplicate(JIPipeProgressInfo progressInfo)
Duplicates the data
|
Component |
getEditor(JIPipeDesktopWorkbench 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(JIPipeMultiIterationStep iterationStep)
This method is called by the form processor nodes on loading data into this form.
|
void |
reportValidity(JIPipeValidationReportContext reportContext,
JIPipeValidationReport report)
Generates a validity report
|
void |
writeData(JIPipeMultiIterationStep iterationStep)
This method should write any changes into the data batch
|
exportData, fromJson, getTabSettings, importData, isImmutable, preview
getParameterChangedEventEmitter, getParameterStructureChangedEventEmitter, getParameterUIChangedEventEmitter, onParameterChanged, onParameterStructureChanged, onParameterUIChanged, registerSubParameter, registerSubParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, createThumbnail, exportThumbnails, getDescriptionOf, getMenuPathOf, getNameOf, getSortedList, getStorageDocumentation, getStorageSchema, groupByMenuPath, isCommon, isHeavy, isHidden, toDetailedString
generateValidityReport
deserializeFromJsonNode, emitParameterChangedEvent, emitParameterStructureChangedEvent, emitParameterUIChangedEvent, getContextActions, getParameter, getParameterAccess, installUIOverrideParameterEditor, installUIParameterOptions, isParameterUIVisible, isParameterUIVisible, serializeToJsonFile, serializeToJsonGenerator, serializeToJsonString, setParameter
public MaskDrawerFormData(List<JIPipeMultiIterationStep> iterationSteps, DrawMaskAlgorithm drawMaskAlgorithm)
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 reportContext, JIPipeValidationReport report)
JIPipeValidatable
reportContext
- the report contextreport
- the report to be added topublic JIPipeData duplicate(JIPipeProgressInfo progressInfo)
JIPipeData
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.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 Component getEditor(JIPipeDesktopWorkbench workbench)
FormData
public void loadData(JIPipeMultiIterationStep iterationStep)
FormData
public void writeData(JIPipeMultiIterationStep iterationStep)
FormData
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.