Mercurial > mxd2map
diff src/java/de/intevation/mxd/writer/FillStyleWriter.java @ 242:bb25c7a4553e
Refactored outline handling for polygons.
author | raimund renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 09 Aug 2011 13:50:45 +0200 |
parents | b54afdbc5892 |
children | df4e0946ef02 |
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/writer/FillStyleWriter.java Mon Aug 08 17:19:03 2011 +0200 +++ b/src/java/de/intevation/mxd/writer/FillStyleWriter.java Tue Aug 09 13:50:45 2011 +0200 @@ -202,17 +202,18 @@ symbolElement.getAttribute("color")); styleObj outline = new styleObj (cl); - if (w < 1.0 && transp > 0) { + if (w < 1.0) { symbolElement.setAttribute("width", "1"); - outline.setOutlinecolor(fill); } - else { - colorObj outlinecolor = new colorObj( - oCol.getRed(), - oCol.getGreen(), - oCol.getBlue(), - -4); - outline.setOutlinecolor(outlinecolor); + colorObj outlinecolor = new colorObj( + oCol.getRed(), + oCol.getGreen(), + oCol.getBlue(), + -4); + outline.setOutlinecolor(outlinecolor); + if(transp >= 0) { + int opacity = (int)((1 - (transp/255)) * 100); + outline.setOpacity(opacity); } try { outline.setOutlinewidth(Double.parseDouble(