changeset 9501:cb3dabb77857

legend cs vegizone
author gernotbelger
date Thu, 27 Sep 2018 18:21:21 +0200
parents 649e146c7d40
children 69a7edd7d1e1
files artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/vegetationzones/VegetationZonesCrossSectionProcessor.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);

http://dive4elements.wald.intevation.org