Ignore:
Timestamp:
2017-06-09T22:13:45+02:00 (7 years ago)
Author:
michael2402
Message:

Document the gui.mappaint package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/Range.java

    r11370 r12378  
    1313    private final double upper;
    1414
     15    /**
     16     * The full scale range from zero to infinity
     17     */
    1518    public static final Range ZERO_TO_INFINITY = new Range(0.0, Double.POSITIVE_INFINITY);
    1619
     
    2831    }
    2932
     33    /**
     34     * Check if a number is contained in this range
     35     * @param x The number to test
     36     * @return <code>true</code> if it is in this range
     37     */
    3038    public boolean contains(double x) {
    3139        return lower < x && x <= upper;
     
    7684    }
    7785
     86    /**
     87     * Gets the lower bound
     88     * @return The lower, exclusive, bound
     89     */
    7890    public double getLower() {
    7991        return lower;
    8092    }
    8193
     94    /**
     95     * Gets the upper bound
     96     * @return The upper, inclusive, bound
     97     */
    8298    public double getUpper() {
    8399        return upper;
Note: See TracChangeset for help on using the changeset viewer.