view gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NilNaviChartStepper.java @ 9263:abf14917be32

Moved stepping behaviour of NaviOutputChart into an exchangeable strategy. Allows for distinct values stepping of sinfo flood duration.
author gernotbelger
date Tue, 17 Jul 2018 19:48:18 +0200
parents
children
line wrap: on
line source
/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
 * Software engineering by
 *  Björnsen Beratende Ingenieure GmbH
 *  Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
 *
 * This file is Free Software under the GNU AGPL (>=v3)
 * and comes with ABSOLUTELY NO WARRANTY! Check out the
 * documentation coming with Dive4Elements River for details.
 */
package org.dive4elements.river.client.client.ui.chart;

/**
 * Nil implementation that always return 0 as current station.
 *
 * @author Gernot Belger
 */
public class NilNaviChartStepper implements INaviChartStepper {

    @Override
    public double getCurrentKm() {
        return 0;
    }

    @Override
    public double stepForward() {
        return 0;
    }

    @Override
    public double stepBackward() {
        return 0;
    }

    @Override
    public double setValidCurrentKm(final double userInput) {
        return 0;
    }
}

http://dive4elements.wald.intevation.org