Ignore:
Timestamp:
2014-05-18T13:20:42+02:00 (10 years ago)
Author:
bastiK
Message:

see #9691 - add tag based index (speed-up of factor 3 in single thread mode)

File:
1 edited

Legend:

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

    r7069 r7138  
    77import org.openstreetmap.josm.tools.Utils;
    88
    9 public class MapCSSRule {
     9/**
     10 * A MapCSS rule.
     11 *
     12 * A MapCSS style is simply a list of MapCSS rules. Each rule has a selector
     13 * and a declaration. Whenever the selector matches the primitive, the
     14 * declaration block is executed for this primitive.
     15 */
     16public class MapCSSRule implements Comparable<MapCSSRule> {
    1017
    1118    public final Selector selector;
     
    4956
    5057    @Override
     58    public int compareTo(MapCSSRule o) {
     59        return declaration.idx - o.declaration.idx;
     60    }
     61
     62    @Override
    5163    public String toString() {
    5264        return selector + " {\n  " + Utils.join("\n  ", declaration.instructions) + "\n}";
Note: See TracChangeset for help on using the changeset viewer.