@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; }
@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; }