Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | c421c9530aba |
children | e5f688820951 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java Thu Jan 18 20:12:01 2018 +0100 @@ -31,7 +31,8 @@ private static final String MSG_ISOBATH_CLASS = "floodmap.isobath.class"; - private static final String MSG_ISOBATH_LASTCLASS = "floodmap.isobath.lastclass"; + private static final String MSG_ISOBATH_LASTCLASS = + "floodmap.isobath.lastclass"; public final static String FILL_COLOR = "fillcolor"; @@ -664,9 +665,12 @@ int numClasses = (int)((to - from) / step + 1); - float rd = (endColor.getRed() - startColor.getRed()) / (float)numClasses; - float gd = (endColor.getGreen() - startColor.getGreen()) / (float)numClasses; - float bd = (endColor.getBlue() - startColor.getBlue()) / (float)numClasses; + float rd = (endColor.getRed() - startColor.getRed()) + / (float)numClasses; + float gd = (endColor.getGreen() - startColor.getGreen()) + / (float)numClasses; + float bd = (endColor.getBlue() - startColor.getBlue()) + / (float)numClasses; for (int n = 0; n < numClasses; n++) { StringBuilder newColor = new StringBuilder(); @@ -676,8 +680,10 @@ newColor.append(' '); newColor.append(startColor.getBlue() + Math.round(n * bd)); - String expr = createWSPLGENClassExpression(from + n * step, step, n + 1, numClasses); - String name = createWSPLGENClassName(from + n * step, step, n + 1, numClasses, meta); + String expr = createWSPLGENClassExpression( + from + n * step, step, n + 1, numClasses); + String name = createWSPLGENClassName( + from + n * step, step, n + 1, numClasses, meta); Clazz c = new Clazz(name); Style s = new Style(); @@ -694,7 +700,12 @@ } - protected static String createWSPLGENClassExpression(float val, float step, int idx, int maxIdx) { + protected static String createWSPLGENClassExpression( + float val, + float step, + int idx, + int maxIdx + ) { if (idx < maxIdx) { return "[DIFF] >= " + val + " AND [DIFF] < " + (val + step); }