Changeset 9008 in josm
- Timestamp:
- 2015-11-15T13:25:47+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r9005 r9008 479 479 g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha)); 480 480 } 481 g.fill(area); 481 if (extent == null) { 482 g.fill(area); 483 } else { 484 Shape clip = g.getClip(); 485 BasicStroke stroke = new BasicStroke(2 * extent); 486 g.clip(stroke.createStrokedShape(area)); 487 g.fill(area); 488 g.setClip(clip); 489 } 482 490 g.setPaintMode(); 483 491 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/AreaElemStyle.java
r9005 r9008 72 72 } 73 73 color = new Color(color.getRed(), color.getGreen(), color.getBlue(), alpha); 74 extent = c.get(FILL_EXTENT, null, float.class);75 74 } 76 75 } … … 81 80 text = TextElement.create(env, PaintColors.AREA_TEXT.get(), true); 82 81 } 82 83 extent = c.get(FILL_EXTENT, null, float.class); 83 84 84 85 if (color != null)
Note:
See TracChangeset
for help on using the changeset viewer.