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

Method setPreviousMinMax

ij/src/main/java/ij/gui/Plot.java:1655–1662  ·  view source on GitHub ↗

reverts plot range to previous values and updates the image

()

Source from the content-addressed store, hash-verified

1653
1654 /** reverts plot range to previous values and updates the image */
1655 public void setPreviousMinMax() {
1656 if (Double.isNaN(savedMinMax[0])) return; //no saved values yet
1657 double[] swap = new double[currentMinMax.length];
1658 System.arraycopy(currentMinMax, 0, swap, 0, currentMinMax.length);
1659 System.arraycopy(savedMinMax, 0, currentMinMax, 0, currentMinMax.length);
1660 System.arraycopy(swap, 0, savedMinMax, 0, currentMinMax.length);
1661 updateImage();
1662 }
1663
1664 /** Draws the plot (if not done before) in an ImageProcessor and returns the ImageProcessor with the plot. */
1665 public ImageProcessor getProcessor() {

Callers 1

actionPerformedMethod · 0.80

Calls 2

updateImageMethod · 0.95
arraycopyMethod · 0.45

Tested by

no test coverage detected