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

Method setLimitsToDefaults

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

Sets the plot range to the initial value determined from minima&maxima or given by setLimits. Updates the image if existing and updateImg is true

(boolean updateImg)

Source from the content-addressed store, hash-verified

1634 /** Sets the plot range to the initial value determined from minima&maxima or given by setLimits.
1635 * Updates the image if existing and updateImg is true */
1636 public void setLimitsToDefaults(boolean updateImg) {
1637 saveMinMax();
1638 System.arraycopy(defaultMinMax, 0, currentMinMax, 0, defaultMinMax.length);
1639 if (plotDrawn && updateImg) updateImage();
1640 }
1641
1642 /** Sets the plot range to encompass all data. Updates the image if existing and updateImg is true. */
1643 public void setLimitsToFit(boolean updateImg) {

Callers 5

setLimitsMethod · 0.95
getInitialMinAndMaxMethod · 0.95
zoomOnRangeArrowMethod · 0.95
actionPerformedMethod · 0.80
unzoomMethod · 0.80

Calls 3

saveMinMaxMethod · 0.95
updateImageMethod · 0.95
arraycopyMethod · 0.45

Tested by

no test coverage detected