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
ConstructorsConstructorDescriptionLogicalOperationWorker(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- theCanAddROIToFramethat will (if non-null) be updated when thisLogicalOperationWorkerhas 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:
doInBackgroundin classSwingWorker<List<ROI>,Object> - Returns:
- the List<ROI> of ROIs that result from the logical operation.
-
done
public void done()- Overrides:
donein classSwingWorker<List<ROI>,Object>
-