Ignore:
Timestamp:
2016-12-08T09:48:55+01:00 (7 years ago)
Author:
Don-vip
Message:

javadoc

Location:
trunk/src/org/openstreetmap/josm/gui/mappaint
Files:
2 edited

Legend:

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

    r9371 r11370  
    55
    66/**
    7  * An interval of the form "lower < x <= upper" where 0 <= lower < upper.
     7 * A scale interval of the form "lower < x <= upper" where 0 <= lower < upper.
    88 * (upper can be Double.POSITIVE_INFINITY)
    99 * immutable class
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java

    r11038 r11370  
    88import java.util.List;
    99import java.util.NoSuchElementException;
     10import java.util.Set;
    1011import java.util.function.IntFunction;
    1112import java.util.function.IntSupplier;
    12 import java.util.Set;
    1313import java.util.regex.PatternSyntaxException;
    1414
     
    5757    boolean matches(Environment env);
    5858
     59    /**
     60     * Returns the subpart, if supported. A subpart identifies different rendering layers (<code>::subpart</code> syntax).
     61     * @return the subpart, if supported
     62     * @throws UnsupportedOperationException if not supported
     63     */
    5964    Subpart getSubpart();
    6065
     66    /**
     67     * Returns the scale range, an interval of the form "lower &lt; x &lt;= upper" where 0 &lt;= lower &lt; upper.
     68     * @return the scale range, if supported
     69     * @throws UnsupportedOperationException if not supported
     70     */
    6171    Range getRange();
    6272
     
    7585    Selector optimizedBaseCheck();
    7686
     87    /**
     88     * The type of child of parent selector.
     89     * @see ChildOrParentSelector
     90     */
    7791    enum ChildOrParentSelectorType {
    7892        CHILD, PARENT, ELEMENT_OF, CROSSING, SIBLING
     
    91105     *    node[traffic_calming] &lt; way { ... }   // example (way that has a traffic calming node)
    92106     * </pre>
    93      *
     107     * <p>Child: see <a href="https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Childselector">wiki</a>
     108     * <br>Parent: see <a href="https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Parentselector">wiki</a></p>
    94109     */
    95110    class ChildOrParentSelector implements Selector {
     
    482497    }
    483498
     499    /**
     500     * In a child selector, conditions on the link between a parent and a child object.
     501     * See <a href="https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Linkselector">wiki</a>
     502     */
    484503    class LinkSelector extends AbstractSelector {
    485504
     
    511530        @Override
    512531        public String toString() {
    513             return "LinkSelector{" + "conditions=" + conds + '}';
     532            return "LinkSelector{conditions=" + conds + '}';
    514533        }
    515534    }
    516535
     536    /**
     537     * General selector. See <a href="https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Selectors">wiki</a>
     538     */
    517539    class GeneralSelector extends OptimizedGeneralSelector {
    518540
     
    536558    }
    537559
     560    /**
     561     * Superclass of {@link GeneralSelector}. Used to create an "optimized" copy of this selector that omits the base check.
     562     * @see Selector#optimizedBaseCheck
     563     */
    538564    class OptimizedGeneralSelector extends AbstractSelector {
    539565        public final String base;
     
    651677        public String toString() {
    652678            return base + (Range.ZERO_TO_INFINITY.equals(range) ? "" : range) + Utils.join("", conds)
    653                     + (subpart != null && subpart != Subpart.DEFAULT_SUBPART ? "::" + subpart : "");
     679                    + (subpart != null && subpart != Subpart.DEFAULT_SUBPART ? ("::" + subpart) : "");
    654680        }
    655681    }
Note: See TracChangeset for help on using the changeset viewer.