comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2416:5144369d5961

Partial Fix flys/issue500: text-orientation for texts. flys-artifacts/trunk@4048 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 14 Feb 2012 09:00:50 +0000
parents b5f5af53a526
children 44dc117aa2b7
comparison
equal deleted inserted replaced
2415:64dd65aa620d 2416:5144369d5961
693 // Style the line. 693 // Style the line.
694 if (lineStyle != null) { 694 if (lineStyle != null) {
695 lineAnnotation = new XYLineAnnotation(annotation.getPos(), 695 lineAnnotation = new XYLineAnnotation(annotation.getPos(),
696 area.atGround(), annotation.getPos(), area.ofGround(LINE_OFF), 696 area.atGround(), annotation.getPos(), area.ofGround(LINE_OFF),
697 new BasicStroke(lineStyle.getWidth()),lineStyle.getColor()); 697 new BasicStroke(lineStyle.getWidth()),lineStyle.getColor());
698 textAnnotation.setRotationAnchor(TextAnchor.CENTER_LEFT);
699 textAnnotation.setTextAnchor(TextAnchor.CENTER_LEFT);
700 } 698 }
701 else { 699 else {
702 lineAnnotation = new XYLineAnnotation(annotation.getPos(), 700 lineAnnotation = new XYLineAnnotation(annotation.getPos(),
703 area.atGround(), annotation.getPos(), area.ofGround(LINE_OFF)); 701 area.atGround(), annotation.getPos(), area.ofGround(LINE_OFF));
704 textAnnotation.setRotationAnchor(TextAnchor.CENTER_LEFT); 702 }
705 textAnnotation.setTextAnchor(TextAnchor.CENTER_LEFT); 703 textAnnotation.setRotationAnchor(TextAnchor.CENTER_LEFT);
706 } 704 textAnnotation.setTextAnchor(TextAnchor.CENTER_LEFT);
707 } 705 }
708 else { 706 else {
709 // Do the more complicated case where we stick to the Y-Axis. 707 // Do the more complicated case where we stick to the Y-Axis.
710 // There is one nasty case (duration curves, where annotations 708 // There is one nasty case (duration curves, where annotations
711 // might stick to the second y-axis). 709 // might stick to the second y-axis).

http://dive4elements.wald.intevation.org