コード例 #1
0
 @Override
 public void viewerChanged(ViewerEvent event) {
   if (event.getType() == ViewerEvent.ViewerEventType.POSITION_CHANGED) {
     cursorPos.z = canvas.getPositionZ();
     painterChanged();
   }
 }
コード例 #2
0
ファイル: ROI2D.java プロジェクト: dwithey/Icy-Kernel
 /**
  * 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());
 }