use of cbit.vcell.client.task.AsynchClientTask in project vcell by virtualcell.
the class BackgroundROIDescriptor method preNextProcess.
public ArrayList<AsynchClientTask> preNextProcess() {
// create AsynchClientTask arraylist
ArrayList<AsynchClientTask> taskArrayList = new ArrayList<AsynchClientTask>();
final String nextROIStr = null;
AsynchClientTask setCurrentROITask = new AsynchClientTask("", AsynchClientTask.TASKTYPE_SWING_BLOCKING) {
public void run(Hashtable<String, Object> hashTable) throws Exception {
// save current ROI and load ROI in the panel it goes next to
((BatchRunROIImgPanel) imgPanel).setCurrentROI(nextROIStr, true);
FRAPData fData = ((BatchRunROIImgPanel) imgPanel).getBatchRunWorkspace().getWorkingFrapStudy().getFrapData();
fData.setCurrentlyDisplayedROI(fData.getRoi(FRAPData.VFRAP_ROI_ENUM.ROI_CELL.name()), true);
}
};
taskArrayList.add(setCurrentROITask);
return taskArrayList;
}
use of cbit.vcell.client.task.AsynchClientTask in project vcell by virtualcell.
the class BleachedROIDescriptor method postNextProcess.
public ArrayList<AsynchClientTask> postNextProcess() {
// create AsynchClientTask arraylist
ArrayList<AsynchClientTask> taskArrayList = new ArrayList<AsynchClientTask>();
AsynchClientTask ifNeedROIAssistTask = new AsynchClientTask("", AsynchClientTask.TASKTYPE_SWING_BLOCKING) {
public void run(Hashtable<String, Object> hashTable) throws Exception {
if (VCellConfiguration.getValue(VFRAPPreference.ROI_ASSIST_REQUIREMENT_TYPE, VFRAPPreference.ROI_ASSIST_REQUIRE_ALWAYS).equals(VFRAPPreference.ROI_ASSIST_REQUIRE_ALWAYS) && ((BatchRunROIImgPanel) imgPanel).getBatchRunWorkspace().getWorkingFrapStudy().getFrapData().getRoi(FRAPData.VFRAP_ROI_ENUM.ROI_BACKGROUND.name()).getNonzeroPixelsCount() < 1) {
(((BatchRunROIImgPanel) imgPanel).getCenterPanel()).getOverlayEditorPanelJAI().showROIAssist();
}
}
};
taskArrayList.add(ifNeedROIAssistTask);
return taskArrayList;
}
use of cbit.vcell.client.task.AsynchClientTask in project vcell by virtualcell.
the class BleachedROIDescriptor method postBackProcess.
public ArrayList<AsynchClientTask> postBackProcess() {
// create AsynchClientTask arraylist
ArrayList<AsynchClientTask> taskArrayList = new ArrayList<AsynchClientTask>();
AsynchClientTask ifNeedROIAssistTask = new AsynchClientTask("", AsynchClientTask.TASKTYPE_SWING_BLOCKING) {
public void run(Hashtable<String, Object> hashTable) throws Exception {
if (VCellConfiguration.getValue(VFRAPPreference.ROI_ASSIST_REQUIREMENT_TYPE, VFRAPPreference.ROI_ASSIST_REQUIRE_ALWAYS).equals(VFRAPPreference.ROI_ASSIST_REQUIRE_ALWAYS) && ((BatchRunROIImgPanel) imgPanel).getBatchRunWorkspace().getWorkingFrapStudy().getFrapData().getRoi(FRAPData.VFRAP_ROI_ENUM.ROI_CELL.name()).getNonzeroPixelsCount() < 1) {
(((BatchRunROIImgPanel) imgPanel).getCenterPanel()).getOverlayEditorPanelJAI().showROIAssist();
}
}
};
taskArrayList.add(ifNeedROIAssistTask);
return taskArrayList;
}
use of cbit.vcell.client.task.AsynchClientTask in project vcell by virtualcell.
the class CellROIDescriptor method preBackProcess.
public ArrayList<AsynchClientTask> preBackProcess() {
// create AsynchClientTask arraylist
ArrayList<AsynchClientTask> taskArrayList = new ArrayList<AsynchClientTask>();
final String backROIStr = FRAPData.VFRAP_ROI_ENUM.ROI_CELL.name();
AsynchClientTask setCurrentROITask = new AsynchClientTask("", AsynchClientTask.TASKTYPE_SWING_BLOCKING) {
public void run(Hashtable<String, Object> hashTable) throws Exception {
// save current ROI and load ROI in the panel it backs to
((BatchRunROIImgPanel) imgPanel).setCurrentROI(backROIStr, true);
}
};
taskArrayList.add(setCurrentROITask);
return taskArrayList;
}
use of cbit.vcell.client.task.AsynchClientTask in project vcell by virtualcell.
the class CellROIDescriptor method postNextProcess.
public ArrayList<AsynchClientTask> postNextProcess() {
// create AsynchClientTask arraylist
ArrayList<AsynchClientTask> taskArrayList = new ArrayList<AsynchClientTask>();
AsynchClientTask ifNeedROIAssistTask = new AsynchClientTask("", AsynchClientTask.TASKTYPE_SWING_BLOCKING) {
public void run(Hashtable<String, Object> hashTable) throws Exception {
if (VCellConfiguration.getValue(VFRAPPreference.ROI_ASSIST_REQUIREMENT_TYPE, VFRAPPreference.ROI_ASSIST_REQUIRE_ALWAYS).equals(VFRAPPreference.ROI_ASSIST_REQUIRE_ALWAYS) && ((BatchRunROIImgPanel) imgPanel).getBatchRunWorkspace().getWorkingFrapStudy().getFrapData().getRoi(FRAPData.VFRAP_ROI_ENUM.ROI_BLEACHED.name()).getNonzeroPixelsCount() < 1) {
(((BatchRunROIImgPanel) imgPanel).getCenterPanel()).getOverlayEditorPanelJAI().showROIAssist();
}
}
};
taskArrayList.add(ifNeedROIAssistTask);
return taskArrayList;
}
Aggregations