@Override
 public void viewerChanged(ViewerEvent event) {
   if (event.getType() == ViewerEvent.ViewerEventType.POSITION_CHANGED) {
     cursorPos.z = canvas.getPositionZ();
     painterChanged();
   }
 }
Пример #2
0
 /**
  * Return true if the ROI is active for the specified canvas.<br>
  * It internally uses the current canvas Z, T, C coordinates
  */
 public boolean isActiveFor(IcyCanvas canvas) {
   return isActiveFor(canvas.getPositionZ(), canvas.getPositionT(), canvas.getPositionC());
 }