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

Method fwd

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

Source from the content-addressed store, hash-verified

363 }
364
365 void fwd() {
366 if (slice != 1) {
367 if (stack instanceof VirtualStack virtualStack) {
368 virtualStack.swapSlices(slice, slice - 2);
369 } else {
370 stack.addSlice(stack.getSliceLabel(slice), stack.getProcessor(slice), slice - 2);
371 stack.deleteSlice(slice + 1);
372 }
373 imp.setStack(null, stack);
374 imp.setSlice(slice - 1);
375 imp.updateAndDraw();
376 }
377 }
378
379 void last() {
380 if (slice != numSlices) {

Callers 1

actionPerformedMethod · 0.95

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