예제 #1
0
 @Override
 public void roiChanged(ROIEvent evt) {
   // if change occurs on the plot view
   IRegion region = (IRegion) evt.getSource();
   if (region != null) {
     setEditingRegion(region);
   }
   roiChanged = true;
   this.region = region;
 }
예제 #2
0
 @Override
 public void roiDragged(ROIEvent evt) {
   if (roiViewer == null) return;
   roiViewer.cancelEditing();
   IRegion region = (IRegion) evt.getSource();
   if (region == null) return;
   IROI roi = evt.getROI();
   if (roi != null) {
     roiViewer.setTableValues(roi);
     if (nameText != null && !nameText.isDisposed()) nameText.setText(region.getName());
     regionName = region.getName();
   }
   roiChanged = true;
   this.region = region;
 }