Changeset 7138 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSRule.java
- Timestamp:
- 2014-05-18T13:20:42+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSRule.java
r7069 r7138 7 7 import org.openstreetmap.josm.tools.Utils; 8 8 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 */ 16 public class MapCSSRule implements Comparable<MapCSSRule> { 10 17 11 18 public final Selector selector; … … 49 56 50 57 @Override 58 public int compareTo(MapCSSRule o) { 59 return declaration.idx - o.declaration.idx; 60 } 61 62 @Override 51 63 public String toString() { 52 64 return selector + " {\n " + Utils.join("\n ", declaration.instructions) + "\n}";
Note:
See TracChangeset
for help on using the changeset viewer.