Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 4653:a93699cb31eb
CrossSectionGenerator: Center HYK-labels.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 07 Dec 2012 11:26:53 +0100 |
parents | 3dc26ec2558d |
children | b11f3563a117 |
comparison
equal
deleted
inserted
replaced
4652:cf5ac1097d6a | 4653:a93699cb31eb |
---|---|
209 zone.getTo(), area.ofGround(0.03f), basicStroke, tranPaint, fillPaint); | 209 zone.getTo(), area.ofGround(0.03f), basicStroke, tranPaint, fillPaint); |
210 XYBoxAnnotation boxB = new XYBoxAnnotation(zone.getFrom(), area.atGround(), | 210 XYBoxAnnotation boxB = new XYBoxAnnotation(zone.getFrom(), area.atGround(), |
211 zone.getTo(), area.atTop(), basicStroke, fillPaint, tranPaint); | 211 zone.getTo(), area.atTop(), basicStroke, fillPaint, tranPaint); |
212 | 212 |
213 XYTextAnnotation tex = new XYTextAnnotation(zone.getName(), | 213 XYTextAnnotation tex = new XYTextAnnotation(zone.getName(), |
214 zone.getFrom() + (zone.getTo() - zone.getFrom()) / 1.0d, | 214 zone.getFrom() + (zone.getTo() - zone.getFrom()) / 2.0d, |
215 area.ofGround(0.015f)); | 215 area.ofGround(0.015f)); |
216 if (textStyle != null) { | 216 if (textStyle != null) { |
217 textStyle.apply(tex); | 217 textStyle.apply(tex); |
218 } | 218 } |
219 | 219 |