MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / last

Method last

Astronomy_/src/main/java/util/Stack_Sorter.java:379–391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377 }
378
379 void last() {
380 if (slice != numSlices) {
381 if (stack instanceof VirtualStack virtualStack) {
382 virtualStack.swapSlices(slice, numSlices);
383 } else {
384 stack.addSlice(stack.getSliceLabel(slice), stack.getProcessor(slice), numSlices);
385 stack.deleteSlice(slice);
386 }
387 imp.setStack(null, stack);
388 imp.setSlice(numSlices);
389 imp.updateAndDraw();
390 }
391 }
392
393 void dup() {
394 if (stack instanceof VirtualStack virtualStack) {

Callers 2

actionPerformedMethod · 0.95
undoOutlierCleanMethod · 0.80

Calls 8

swapSlicesMethod · 0.80
setStackMethod · 0.80
addSliceMethod · 0.45
getSliceLabelMethod · 0.45
getProcessorMethod · 0.45
deleteSliceMethod · 0.45
setSliceMethod · 0.45
updateAndDrawMethod · 0.45

Tested by

no test coverage detected