Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2777:5543492f2da4
Slightly improved 'line-to-curve' creation of w-mainvalues/durationcurve.
flys-artifacts/trunk@4516 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 25 May 2012 09:27:01 +0000 |
parents | 5016609663e2 |
children | 772d0c8100d3 |
comparison
equal
deleted
inserted
replaced
2776:69dd2aabbd0a | 2777:5543492f2da4 |
---|---|
812 | 812 |
813 // Add the Annotations to renderer. | 813 // Add the Annotations to renderer. |
814 plot.getRenderer(rendererIndex).addAnnotation(textAnnotation, | 814 plot.getRenderer(rendererIndex).addAnnotation(textAnnotation, |
815 org.jfree.ui.Layer.FOREGROUND); | 815 org.jfree.ui.Layer.FOREGROUND); |
816 if (!Float.isNaN(annotation.getHitPoint())) { | 816 if (!Float.isNaN(annotation.getHitPoint())) { |
817 // TODO let line be styled and respect X/Y-ness. | |
817 // New line annotation to hit curve. | 818 // New line annotation to hit curve. |
818 XYLineAnnotation hitLineAnnotation = new XYLineAnnotation(area.atLeft(), | 819 XYLineAnnotation hitLineAnnotation = new XYLineAnnotation(area.atLeft(), |
819 annotation.getPos(), annotation.getHitPoint(), annotation.getPos()); | 820 annotation.getPos(), annotation.getHitPoint(), annotation.getPos()); |
821 XYLineAnnotation lineBackAnnotation = new XYLineAnnotation( | |
822 annotation.getHitPoint(), annotation.getPos(), | |
823 annotation.getHitPoint(), area.atGround()); | |
820 plot.getRenderer(rendererIndex).addAnnotation(hitLineAnnotation, | 824 plot.getRenderer(rendererIndex).addAnnotation(hitLineAnnotation, |
825 org.jfree.ui.Layer.BACKGROUND); | |
826 plot.getRenderer(rendererIndex).addAnnotation(lineBackAnnotation, | |
821 org.jfree.ui.Layer.BACKGROUND); | 827 org.jfree.ui.Layer.BACKGROUND); |
822 } | 828 } |
823 plot.getRenderer(rendererIndex).addAnnotation(lineAnnotation, | 829 plot.getRenderer(rendererIndex).addAnnotation(lineAnnotation, |
824 org.jfree.ui.Layer.FOREGROUND); | 830 org.jfree.ui.Layer.FOREGROUND); |
825 } | 831 } |