[PATCH] legend cs vegizone

Wald Commits scm-commit at wald.intevation.org
Thu Sep 27 18:21:18 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1538065281 -7200
# Node ID cb3dabb7785737750b7810881f40409da71aa8ed
# Parent  649e146c7d40221d281c8de5afea9f151fb408e9
legend cs vegizone

diff -r 649e146c7d40 -r cb3dabb77857 artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/vegetationzones/VegetationZonesCrossSectionProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/vegetationzones/VegetationZonesCrossSectionProcessor.java	Thu Sep 27 18:08:17 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/vegetationzones/VegetationZonesCrossSectionProcessor.java	Thu Sep 27 18:21:21 2018 +0200
@@ -80,7 +80,8 @@
                 final double upper = uefdToHeight(context, river, currentStation, zone.getUpperFromTo());
 
                 final Color color = Color.decode(zone.getHexColor());
-                dataset.addStripe(new Stripe(zone.getZoneName(), color, lower, upper));
+                final String label = String.format("%s (%dd-%dd)", zone.getZoneName(), zone.getLowerFromTo(), zone.getUpperFromTo());
+                dataset.addStripe(new Stripe(label, color, lower, upper));
             }
 
             generator.addAxisDataset(dataset, 0, visible);


More information about the Dive4Elements-commits mailing list