Class AbstractExperimentDataProcessor
java.lang.Object
org.graffiti.plugin.algorithm.AbstractAlgorithm
org.graffiti.plugin.algorithm.AbstractEditorAlgorithm
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.layout_control.dbe.AbstractExperimentDataProcessor
- All Implemented Interfaces:
ExperimentDataProcessor
,UndoableEdit
,Algorithm
,EditorAlgorithm
- Direct Known Subclasses:
DataMapping
,PutIntoSidePanel
public abstract class AbstractExperimentDataProcessor extends AbstractEditorAlgorithm implements ExperimentDataProcessor
Management of action commands for data mapping.
- Author:
- rohn, klukas
-
Constructor Summary
Constructors Constructor Description AbstractExperimentDataProcessor()
AbstractExperimentDataProcessor(boolean register)
-
Method Summary
Modifier and Type Method Description void
addPostProcessor(List<Runnable> postProcessors)
void
execute()
Should not be overridden, only in case processData() uses a background thread.HashMap<File,ExperimentDataAnnotation>
getAnnotations(Collection<File> files)
Can be used to support the user specifying the annotation more easily (e.g.boolean
removePostProcessor(List<Runnable> postProcessors)
void
setComponent(JComponent optSupplementaryPanel)
abstract void
setExperimentData(ExperimentInterface mappingData)
Perform data mapping (or something else).Methods inherited from class org.graffiti.plugin.algorithm.AbstractEditorAlgorithm
getIcon, getParameterDialog, getShortName
Methods inherited from class org.graffiti.plugin.algorithm.AbstractAlgorithm
addEdit, attach, canRedo, canUndo, check, die, doesUndo, getAcceleratorKeyStroke, getActionEvent, getCategory, getDescription, getMenuCategory, getParameters, getPresentationName, getRedoPresentationName, getSetCategory, getUndoPresentationName, isAlwaysExecutable, isLayoutAlgorithm, isSignificant, markExecutionDone, markRedoDone, markUndoDone, mayWorkOnMultipleGraphs, redo, replaceEdit, reset, setActionEvent, setParameters, showMenuIcon, undo
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graffiti.plugin.algorithm.Algorithm
attach, check, getAcceleratorKeyStroke, getActionEvent, getCategory, getDescription, getMenuCategory, getName, getParameters, getSetCategory, isLayoutAlgorithm, mayWorkOnMultipleGraphs, reset, setActionEvent, setParameters, showMenuIcon
Methods inherited from interface org.graffiti.plugin.algorithm.EditorAlgorithm
activeForView
-
Constructor Details
-
AbstractExperimentDataProcessor
public AbstractExperimentDataProcessor() -
AbstractExperimentDataProcessor
public AbstractExperimentDataProcessor(boolean register)
-
-
Method Details
-
execute
public void execute()Should not be overridden, only in case processData() uses a background thread. In this case the postProcessors and the setExperimentData() call should be executed by your code as soon as the background processing is finished. -
setExperimentData
Description copied from interface:ExperimentDataProcessor
Perform data mapping (or something else).- Specified by:
setExperimentData
in interfaceExperimentDataProcessor
- Parameters:
mappingData
- Experiment data (XML)
-
getAnnotations
Description copied from interface:ExperimentDataProcessor
Can be used to support the user specifying the annotation more easily (e.g. providing filled lists to choose from.- Specified by:
getAnnotations
in interfaceExperimentDataProcessor
- Returns:
-
setComponent
- Specified by:
setComponent
in interfaceExperimentDataProcessor
-
addPostProcessor
- Specified by:
addPostProcessor
in interfaceExperimentDataProcessor
-
removePostProcessor
- Specified by:
removePostProcessor
in interfaceExperimentDataProcessor
-