comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/DoubleBounds.java @ 2399:73b15736cb80

Improved the interface and implementations of Bounds. flys-artifacts/trunk@4025 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 10 Feb 2012 10:43:29 +0000
parents c38063bf99da
children cbe2febe30cc
comparison
equal deleted inserted replaced
2398:5d8d24984819 2399:73b15736cb80
41 axis.setRange(new Range(lower, upper)); 41 axis.setRange(new Range(lower, upper));
42 } 42 }
43 43
44 44
45 @Override 45 @Override
46 public void applyBounds(ValueAxis axis, int percent) {
47 double space = (upper - lower) / 100 * percent;
48 axis.setRange(new Range(lower-space, upper+space));
49 }
50
51
52 @Override
46 public Bounds combine(Bounds bounds) { 53 public Bounds combine(Bounds bounds) {
47 if (bounds == null) { 54 if (bounds == null) {
48 return this; 55 return this;
49 } 56 }
50 57

http://dive4elements.wald.intevation.org