teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5861: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5861: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.shared.model; ingo@1597: ingo@1597: ingo@1597: /** ingo@1597: * @author Ingo Weinzierl ingo@1597: */ ingo@1597: public class NumberAxis implements Axis { ingo@1597: ingo@1597: protected int pos; ingo@1597: ingo@1597: protected double from; ingo@1597: protected double to; ingo@1597: ingo@1597: protected double min; ingo@1597: protected double max; ingo@1597: ingo@1597: ingo@1597: public NumberAxis() { ingo@1597: } ingo@1597: ingo@1597: ingo@1597: public NumberAxis(int pos, double from, double to, double min, double max) { ingo@1597: this.pos = pos; ingo@1597: this.from = from; ingo@1597: this.to = to; ingo@1597: this.min = min; ingo@1597: this.max = max; ingo@1597: } ingo@1597: ingo@1597: ingo@1597: @Override ingo@1597: public int getPos() { ingo@1597: return pos; ingo@1597: } ingo@1597: ingo@1597: ingo@1597: @Override ingo@1597: public Number getFrom() { ingo@1597: return from; ingo@1597: } ingo@1597: ingo@1597: ingo@1597: @Override ingo@1597: public Number getTo() { ingo@1597: return to; ingo@1597: } ingo@1597: ingo@1597: ingo@1597: @Override ingo@1597: public Number getMin() { ingo@1597: return min; ingo@1597: } ingo@1597: ingo@1597: ingo@1597: @Override ingo@1597: public Number getMax() { ingo@1597: return max; ingo@1597: } ingo@1597: } ingo@1597: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :