comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 2143:c5d24e0587ce

Minor hyk-handling improvements. flys-artifacts/trunk@3721 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 19 Jan 2012 13:09:00 +0000
parents 59bb5c895be3
children 2336927cb096
comparison
equal deleted inserted replaced
2142:ef337d9fa5ea 2143:c5d24e0587ce
1083 1083
1084 /** Add box annotations (currently, only hyk zones). */ 1084 /** Add box annotations (currently, only hyk zones). */
1085 public void addBoxAnnotations(XYPlot plot) { 1085 public void addBoxAnnotations(XYPlot plot) {
1086 logger.debug("XYChartGenerator.addBoxAnnotations"); 1086 logger.debug("XYChartGenerator.addBoxAnnotations");
1087 1087
1088 if (annotations == null) {
1089 logger.debug("XYChartGenerator.addBoxAnnotations: no annotations.");
1090 return;
1091 }
1092
1088 Stroke basicStroke = new BasicStroke(1.0f); 1093 Stroke basicStroke = new BasicStroke(1.0f);
1089 1094
1090 Paint linePaint = new Color(255,0,0,60); 1095 Paint linePaint = new Color(255,0,0,60);
1091 Paint fillPaint = new Color(0,255,0,60); 1096 Paint fillPaint = new Color(0,255,0,60);
1092 Paint tranPaint = new Color(0,0,0,0); 1097 Paint tranPaint = new Color(0,0,0,0);
1093 1098
1094 double fillPercent = 0.05; 1099 double fillPercent = 0.03;
1095 double low = getLowestYValue(plot); 1100 double low = getLowestYValue(plot);
1096 double up = getUppestYValue(plot); 1101 double up = getUppestYValue(plot);
1097 double upb = low + (up - low) * fillPercent; 1102 double upb = low + (up - low) * fillPercent;
1098 double upt = low + (up - low) * fillPercent/2.0d; 1103 double upt = low + (up - low) * fillPercent/2.0d;
1099 1104

http://dive4elements.wald.intevation.org