[Dive4elements-commits] [PATCH 2 of 2] CrossSectionGenerator: Center HYK-labels

Wald Commits scm-commit at wald.intevation.org
Fri Dec 7 11:22:11 CET 2012


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1354876013 -3600
# Node ID a93699cb31eb39d09a945f8985d98a9542f7697e
# Parent  cf5ac1097d6a41328d116ac5d821c732a17ec1de
CrossSectionGenerator: Center HYK-labels.

diff -r cf5ac1097d6a -r a93699cb31eb flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java	Fri Dec 07 11:26:21 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java	Fri Dec 07 11:26:53 2012 +0100
@@ -211,7 +211,7 @@
                         zone.getTo(), area.atTop(), basicStroke, fillPaint, tranPaint);
 
                 XYTextAnnotation tex = new XYTextAnnotation(zone.getName(),
-                        zone.getFrom() + (zone.getTo() - zone.getFrom()) / 1.0d,
+                        zone.getFrom() + (zone.getTo() - zone.getFrom()) / 2.0d,
                         area.ofGround(0.015f));
                 if (textStyle != null) {
                     textStyle.apply(tex);


More information about the Dive4elements-commits mailing list