Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/HorizontalProfileChartFactory.java @ 187:92a43d90a0b8
Adding 5% bigger Valuearea to the Chart according to GT0030.011
gnv-artifacts/trunk@231 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 16 Oct 2009 13:05:40 +0000 |
parents | 5fc8f41669a6 |
children | 3d6d89bcbf42 |
comparison
equal
deleted
inserted
replaced
186:8ae596be276b | 187:92a43d90a0b8 |
---|---|
91 } else if (i > pEnd) { | 91 } else if (i > pEnd) { |
92 return series; | 92 return series; |
93 } | 93 } |
94 i++; | 94 i++; |
95 } | 95 } |
96 | |
97 if (distance > 0){ | |
98 double scaleDistance = distance * 0.05; | |
99 series.add(-scaleDistance, null); | |
100 series.add(distance+scaleDistance, null); | |
101 } | |
102 | |
96 } catch (OutOfMemoryError e) { | 103 } catch (OutOfMemoryError e) { |
97 sLogger.error(e.getMessage(), e); | 104 sLogger.error(e.getMessage(), e); |
98 return series; | 105 return series; |
99 | 106 |
100 } catch (Exception e) { // TechnicalChartException | 107 } catch (Exception e) { // TechnicalChartException |