Mercurial > dive4elements > river
changeset 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 (2012-08-16) |
parents | da60327f6d7c |
children | ff3ccd84f96a |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java |
diffstat | 2 files changed, 12 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Aug 15 14:45:55 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Aug 16 08:02:05 2012 +0000 @@ -1,3 +1,10 @@ +2012-08-16 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java: + BasicStroke constructor takes an float as first argument + so there is no need to blow up an 'int' to an Integer + which is auto-unboxed to int which is implicitly cast to float. + 2012-08-15 Felix Wolfsteller <felix.wolfsteller@intevation.de> * doc/conf/meta-data.xml: Do not hard-recommend gauge-dis. for fixwq. @@ -40,7 +47,7 @@ * doc/conf/meta-data.xml: Add wq-basedata and other stubs to fixA dc. - * src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java + * src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java (getWQAtKm): Adjusted behaviour such that passed km can be respected.
--- 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)) {