Package com.xinapse.multisliceimage.roi
Class LogicalOperationWorker
This SwingWorker is used to perform logical operations (AND, AND NOT, UNION, INTERSECTION, XOR)
on ROIs.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
Constructor Summary
ConstructorDescriptionLogicalOperationWorker
(CanAddROIToFrame f, List<ROI> rois, LogicalOperator op) Creates a new LogicalOperationWorker to operate on a set of ROIs. -
Method Summary
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
-
Constructor Details
-
LogicalOperationWorker
Creates a new LogicalOperationWorker to operate on a set of ROIs.- Parameters:
f
- theCanAddROIToFrame
that will (if non-null) be updated when thisLogicalOperationWorker
has finished.rois
- thejava.util.List<ROI>
of ROIs to be operated on.op
- the logical operation to perform.
-
-
Method Details
-
doInBackground
Perform the logical operation.- Specified by:
doInBackground
in classSwingWorker<List<ROI>,
Object> - Returns:
- the List<ROI> of ROIs that result from the logical operation.
-
done
public void done()- Overrides:
done
in classSwingWorker<List<ROI>,
Object>
-