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

Method saveMinMax

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

Saves the plot range for later restoring by 'setPreviousMinMax'

()

Source from the content-addressed store, hash-verified

2518
2519 /** Saves the plot range for later restoring by 'setPreviousMinMax' */
2520 void saveMinMax() {
2521 if (!Arrays.equals(currentMinMax, savedMinMax))
2522 System.arraycopy(currentMinMax, 0, savedMinMax, 0, currentMinMax.length);
2523 }
2524
2525 /** Modifies automatic limits to avoid points exactly at the borders.
2526 * This only happens for limits where the corresponding value of the class array 'enlargeRange' is set:

Callers 5

setLimitsToDefaultsMethod · 0.95
setLimitsToFitMethod · 0.95
zoomToRectMethod · 0.95
dialogItemChangedMethod · 0.80
scrollMethod · 0.80

Calls 2

equalsMethod · 0.45
arraycopyMethod · 0.45

Tested by

no test coverage detected