Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java @ 3593:0ac28739ee15
Simplified code
flys-artifacts/trunk@5214 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 16 Aug 2012 08:02:05 +0000 |
parents | 76571c601d06 |
children | 6aea625190da |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Wed Aug 15 14:45:55 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Thu Aug 16 08:02:05 2012 +0000 @@ -245,18 +245,18 @@ float[] dashes = ThemeUtil.parseLineStyle(theme); int size = ThemeUtil.parseLineWidth(theme); - BasicStroke stroke; + BasicStroke stroke; if (dashes.length <= 1) { - stroke = new BasicStroke(Integer.valueOf(size)); + stroke = new BasicStroke(size); } else { - stroke = new BasicStroke(Integer.valueOf(size), + stroke = new BasicStroke(size, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND, 1.0f, dashes, 0.0f); - } + } m.setStroke(stroke); if (ThemeUtil.parseShowLineLabel(theme)) {