- Timestamp:
- 2011-04-22T23:58:10+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r4006 r4055 73 73 if (!hasProperLineStyle) { 74 74 AreaElemStyle area = Utils.find(p.a, AreaElemStyle.class); 75 LineElemStyle line = (area == null ? LineElemStyle.UNTAGGED_WAY : LineElemStyle.createSimpleLineStyle(area.color ));75 LineElemStyle line = (area == null ? LineElemStyle.UNTAGGED_WAY : LineElemStyle.createSimpleLineStyle(area.color, true)); 76 76 p.a = new StyleList(p.a, line); 77 77 } … … 152 152 } 153 153 if (!hasLineStyle) { 154 p.a = new StyleList(p.a, LineElemStyle.createSimpleLineStyle(wayColor ));154 p.a = new StyleList(p.a, LineElemStyle.createSimpleLineStyle(wayColor, true)); 155 155 } 156 156 return p; … … 183 183 } 184 184 } 185 p.a = new StyleList(p.a, LineElemStyle.createSimpleLineStyle(mpColor ));185 p.a = new StyleList(p.a, LineElemStyle.createSimpleLineStyle(mpColor, true)); 186 186 } 187 187 return p; -
trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java
r4006 r4055 18 18 public class LineElemStyle extends ElemStyle { 19 19 20 public static LineElemStyle createSimpleLineStyle(Color color ) {20 public static LineElemStyle createSimpleLineStyle(Color color, boolean isAreaEdge) { 21 21 MultiCascade mc = new MultiCascade(); 22 22 Cascade c = mc.getOrCreateCascade("default"); 23 23 c.put("width", Keyword.DEFAULT); 24 24 c.put("color", color != null ? color : PaintColors.UNTAGGED.get()); 25 if (isAreaEdge) { 26 c.put("z-index", -3f); 27 } 25 28 return createLine(new Environment(null, mc, "default", null)); 26 29 } 27 public static final LineElemStyle UNTAGGED_WAY = createSimpleLineStyle(null );30 public static final LineElemStyle UNTAGGED_WAY = createSimpleLineStyle(null, false); 28 31 29 32 private BasicStroke line;
Note:
See TracChangeset
for help on using the changeset viewer.