Class LogicalOperationWorker

java.lang.Object
javax.swing.SwingWorker<List<ROI>, Object>
com.xinapse.multisliceimage.roi.LogicalOperationWorker
All Implemented Interfaces:
Runnable, Future<List<ROI>>, RunnableFuture<List<ROI>>

public class LogicalOperationWorker extends SwingWorker<List<ROI>, Object>
This SwingWorker is used to perform logical operations (AND, AND NOT, UNION, INTERSECTION, XOR) on ROIs.
  • Constructor Details

    • LogicalOperationWorker

      public LogicalOperationWorker(CanAddROIToFrame f, List<ROI> rois, LogicalOperator op)
      Creates a new LogicalOperationWorker to operate on a set of ROIs.
      Parameters:
      f - the CanAddROIToFrame that will (if non-null) be updated when this LogicalOperationWorker has finished.
      rois - the List<ROI> of ROIs to be operated on.
      op - the logical operation to perform.
  • Method Details

    • doInBackground

      public List<ROI> doInBackground()
      Perform the logical operation.
      Returns:
      the List<ROI> of ROIs that result from the logical operation.
    • done

      public void done()