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

Method getInitialMinAndMax

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

Gets the initial plot limits (i.e., x&y ranges). For compatibility with previous versions of ImageJ, only the first PlotObject (with numeric data) is used to determine the limits.

()

Source from the content-addressed store, hash-verified

2351 /** Gets the initial plot limits (i.e., x&y ranges). For compatibility with previous versions of ImageJ,
2352 * only the first PlotObject (with numeric data) is used to determine the limits. */
2353 void getInitialMinAndMax() {
2354 int axisRangeFlags = 0;
2355 if (Double.isNaN(defaultMinMax[0])) axisRangeFlags |= X_RANGE;
2356 if (Double.isNaN(defaultMinMax[2])) axisRangeFlags |= Y_RANGE;
2357 if (axisRangeFlags != 0) {
2358 defaultMinMax = getMinAndMax(false, axisRangeFlags);
2359 enlargeRange(defaultMinMax);
2360 }
2361 setLimitsToDefaults(false); //use the range values to start with, but don't draw yet
2362 }
2363
2364 /** Gets the minimum and maximum values from the first XY_DATA or ARROWS plotObject or all such plotObjects;
2365 * axisRangeFlags determine for which axis to calculate the min&max (X_RANGE for x axis, Y_RANGE for y axis);

Callers 3

drawMethod · 0.95
makeHighResolutionMethod · 0.95
duplicateMethod · 0.80

Calls 3

getMinAndMaxMethod · 0.95
enlargeRangeMethod · 0.95
setLimitsToDefaultsMethod · 0.95

Tested by

no test coverage detected