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.
()
| 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); |
no test coverage detected