Use to update the image when the underlying virtual stack changes.
()
| 408 | |
| 409 | /** Use to update the image when the underlying virtual stack changes. */ |
| 410 | public void updateVirtualSlice() { |
| 411 | ImageStack vstack = getStack(); |
| 412 | if (vstack.isVirtual()) { |
| 413 | double min=getDisplayRangeMin(), max=getDisplayRangeMax(); |
| 414 | setProcessor(vstack.getProcessor(getCurrentSlice())); |
| 415 | setDisplayRange(min,max); |
| 416 | } else |
| 417 | throw new IllegalArgumentException("Virtual stack required"); |
| 418 | } |
| 419 | |
| 420 | /** Sets the display mode of composite color images, where 'mode' |
| 421 | should be IJ.COMPOSITE, IJ.COLOR or IJ.GRAYSCALE. */ |
nothing calls this directly
no test coverage detected