comparison artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java @ 8778:bbf6cf555e89

Tidied.
author Tom Gottfried <tom@intevation.de>
date Thu, 03 Dec 2015 12:20:03 +0100
parents 686d8876edf9
children 5e38e2924c07
comparison
equal deleted inserted replaced
8777:9d2a0827ec03 8778:bbf6cf555e89
816 */ 816 */
817 protected Bounds calculateZoom(Bounds bounds, Range range) { 817 protected Bounds calculateZoom(Bounds bounds, Range range) {
818 double min = bounds.getLower().doubleValue(); 818 double min = bounds.getLower().doubleValue();
819 double max = bounds.getUpper().doubleValue(); 819 double max = bounds.getUpper().doubleValue();
820 820
821 if (log.isDebugEnabled()) { 821 log.debug("Minimum is: " + min);
822 log.debug("Minimum is: " + min); 822 log.debug("Maximum is: " + max);
823 log.debug("Maximum is: " + max); 823 log.debug("Lower zoom is: " + range.getLowerBound());
824 log.debug("Lower zoom is: " + range.getLowerBound()); 824 log.debug("Upper zoom is: " + range.getUpperBound());
825 log.debug("Upper zoom is: " + range.getUpperBound());
826 }
827 825
828 double diff = max > min ? max - min : min - max; 826 double diff = max > min ? max - min : min - max;
829 827
830 DoubleBounds computed = new DoubleBounds( 828 DoubleBounds computed = new DoubleBounds(
831 min + range.getLowerBound() * diff, 829 min + range.getLowerBound() * diff,

http://dive4elements.wald.intevation.org