Last change
on this file since 3860 was 3860, checked in by bastiK, 13 years ago |
LineElemStyle refactoring (more caching and additional properties)
|
-
Property svn:eol-style
set to
native
|
File size:
743 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.mappaint;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.osm.OsmPrimitive;
|
---|
5 | import org.openstreetmap.josm.gui.mappaint.Cascade;
|
---|
6 | import org.openstreetmap.josm.gui.mappaint.MultiCascade;
|
---|
7 | import org.openstreetmap.josm.gui.mappaint.StyleSource;
|
---|
8 |
|
---|
9 | public class Environment {
|
---|
10 |
|
---|
11 | public OsmPrimitive osm;
|
---|
12 | public MultiCascade mc;
|
---|
13 | public String layer;
|
---|
14 | public StyleSource source;
|
---|
15 |
|
---|
16 | public Environment(OsmPrimitive osm, MultiCascade mc, String layer, StyleSource source) {
|
---|
17 | this.osm = osm;
|
---|
18 | this.mc = mc;
|
---|
19 | this.layer = layer;
|
---|
20 | this.source = source;
|
---|
21 | }
|
---|
22 |
|
---|
23 | public Cascade getCascade() {
|
---|
24 | return mc.getCascade(layer);
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.