Changeset 3805 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
- Timestamp:
- 2011-01-23T13:17:10+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
r3803 r3805 10 10 import java.util.regex.Matcher; 11 11 import java.util.regex.Pattern; 12 12 13 import org.openstreetmap.josm.data.osm.Node; 13 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 14 15 import org.openstreetmap.josm.data.osm.OsmUtils; 15 16 import org.openstreetmap.josm.data.osm.Way; 17 import org.openstreetmap.josm.gui.mappaint.xml.XmlCondition; 16 18 import org.openstreetmap.josm.gui.preferences.SourceEntry; 17 19 … … 172 174 } 173 175 174 public void add( Rule r, Collection<Rule> rules, LineElemStyle style) {175 if( rules != null)176 { 177 style. rules = rules;176 public void add(XmlCondition c, Collection<XmlCondition> conditions, LineElemStyle style) { 177 if(conditions != null) 178 { 179 style.conditions = conditions; 178 180 linesList.add(style); 179 181 } 180 182 else { 181 String key = r.getKey();183 String key = c.getKey(); 182 184 style.code = key; 183 185 lines.put(key, style); … … 185 187 } 186 188 187 public void addModifier( Rule r, Collection<Rule> rules, LineElemStyle style) {188 if( rules != null)189 { 190 style. rules = rules;189 public void addModifier(XmlCondition c, Collection<XmlCondition> conditions, LineElemStyle style) { 190 if(conditions != null) 191 { 192 style.conditions = conditions; 191 193 modifiersList.add(style); 192 194 } 193 195 else 194 196 { 195 String key = r.getKey();197 String key = c.getKey(); 196 198 style.code = key; 197 199 modifiers.put(key, style); … … 199 201 } 200 202 201 public void add( Rule r, Collection<Rule> rules, AreaElemStyle style) {202 if( rules != null)203 { 204 style. rules = rules;203 public void add(XmlCondition c, Collection<XmlCondition> conditions, AreaElemStyle style) { 204 if(conditions != null) 205 { 206 style.conditions = conditions; 205 207 areasList.add(style); 206 208 } 207 209 else 208 210 { 209 String key = r.getKey();211 String key = c.getKey(); 210 212 style.code = key; 211 213 areas.put(key, style); … … 213 215 } 214 216 215 public void add( Rule r, Collection<Rule> rules, IconElemStyle style) {216 if( rules != null)217 { 218 style. rules = rules;217 public void add(XmlCondition c, Collection<XmlCondition> conditions, IconElemStyle style) { 218 if(conditions != null) 219 { 220 style.conditions = conditions; 219 221 iconsList.add(style); 220 222 } 221 223 else 222 224 { 223 String key = r.getKey();225 String key = c.getKey(); 224 226 style.code = key; 225 227 icons.put(key, style);
Note:
See TracChangeset
for help on using the changeset viewer.
