reverts plot range to previous values and updates the image
()
| 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() { |
no test coverage detected