diff --git a/vcell-client/src/main/java/cbit/vcell/geometry/gui/OverlayEditorPanelJAI.java b/vcell-client/src/main/java/cbit/vcell/geometry/gui/OverlayEditorPanelJAI.java index f6fd917666..3c5f0b8a6b 100644 --- a/vcell-client/src/main/java/cbit/vcell/geometry/gui/OverlayEditorPanelJAI.java +++ b/vcell-client/src/main/java/cbit/vcell/geometry/gui/OverlayEditorPanelJAI.java @@ -1891,7 +1891,7 @@ private void updateLabel(int inx, int iny) { sb.append("/"); sb.append(w); if(calcCoords != null){ - sb.append(" "+NumberUtils.formatNumber(calcCoords.calcX(inx),6)+"/"+NumberUtils.formatNumber(calcCoords.extentX(),6)); + sb.append(" ("+NumberUtils.formatNumber(calcCoords.calcX(inx),6)+"/"+NumberUtils.formatNumber(calcCoords.extentX(),6) + ")"); } } @@ -1901,7 +1901,7 @@ private void updateLabel(int inx, int iny) { sb.append("/"); sb.append(h); if(calcCoords != null){ - sb.append(" "+NumberUtils.formatNumber(calcCoords.calcY(iny),6)+"/"+NumberUtils.formatNumber(calcCoords.extentY(),6)); + sb.append(" ("+NumberUtils.formatNumber(calcCoords.calcY(iny),6)+"/"+NumberUtils.formatNumber(calcCoords.extentY(),6) + ")"); } } diff --git a/vcell-client/src/main/java/cbit/vcell/geometry/gui/ROIMultiPaintManager.java b/vcell-client/src/main/java/cbit/vcell/geometry/gui/ROIMultiPaintManager.java index b6f69641ba..2e2f227f79 100644 --- a/vcell-client/src/main/java/cbit/vcell/geometry/gui/ROIMultiPaintManager.java +++ b/vcell-client/src/main/java/cbit/vcell/geometry/gui/ROIMultiPaintManager.java @@ -3455,7 +3455,7 @@ private void resizeImpl(ResizeInfo resizeInfo,ClientTaskStatusSupport clientTask for (int c = 0; c < initImageDataSetChannels.length; c++) { UShortImage[] zImageSet = new UShortImage[newISize.getZ()]; for (int z = 0; z < zImageSet.length; z++) { - zImageSet[z] = new UShortImage(resizeInfo.underlayC[c][z],originalOrigin,resizeExtent,newISize.getX(),newISize.getY(),1); + zImageSet[z] = new UShortImage(resizeInfo.underlayC[c][z], originalOrigin, resizeExtent, newISize.getX(), newISize.getY(), 1); } initImageDataSetChannels[c] = new ImageDataset(zImageSet, new double[] { 0.0 },newISize.getZ()); } @@ -4145,13 +4145,13 @@ private void cropROIData(final Crop3D cropRectangle3D/*,boolean bThread*/){ @Override public void run(Hashtable hashTable) throws Exception { ISize origISize = getImageDataSetChannel().getISize(); - CoordinateIndex cropLow = new CoordinateIndex(-cropRectangle3D.low.x,-cropRectangle3D.low.y,-cropRectangle3D.low.z); + CoordinateIndex cropLow = new CoordinateIndex(-cropRectangle3D.low.x, -cropRectangle3D.low.y, -cropRectangle3D.low.z); CoordinateIndex cropHigh = - new CoordinateIndex(cropRectangle3D.low.x+cropRectangle3D.width-origISize.getX(), - cropRectangle3D.low.y+cropRectangle3D.height-origISize.getY(), - cropRectangle3D.low.z+cropRectangle3D.depth-origISize.getZ()); + new CoordinateIndex(cropRectangle3D.low.x + cropRectangle3D.width - origISize.getX(), + cropRectangle3D.low.y + cropRectangle3D.height - origISize.getY(), + cropRectangle3D.low.z + cropRectangle3D.depth - origISize.getZ()); resizeImpl(ResizeInfo.createPadCropResizeInfo(origISize, cropLow, cropHigh), getClientTaskStatusSupport()); - updateAuxiliaryInfo(origISize,getClientTaskStatusSupport()); + //updateAuxiliaryInfo(origISize,getClientTaskStatusSupport()); removed because we believe this was accidentally called double; resizeImpl calls this! } }; final AsynchClientTask updatePanelTask = getUpdateDisplayAfterCropTask();