source: josm/trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Environment.java@ 3848

Last change on this file since 3848 was 3848, checked in by bastiK, 14 years ago

Experimental mapcss support. All *.java files in the gui/mappaint/mapcss/parser folder are generated from the javacc source file MapCSSParser.jj in the same folder. The generated code sums up to 2700 lines, there is no further build dependency.

  • Property svn:eol-style set to native
File size: 592 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.mappaint.mapcss;
3
4import org.openstreetmap.josm.data.osm.OsmPrimitive;
5import org.openstreetmap.josm.gui.mappaint.Cascade;
6import org.openstreetmap.josm.gui.mappaint.MultiCascade;
7
8public class Environment {
9
10 OsmPrimitive osm;
11 MultiCascade mc;
12 String layer;
13
14 public Environment(OsmPrimitive osm, MultiCascade mc, String layer) {
15 this.osm = osm;
16 this.mc = mc;
17 this.layer = layer;
18 }
19
20 public Cascade getCascade() {
21 return mc.getCascade(layer);
22 }
23}
Note: See TracBrowser for help on using the repository browser.