Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/EnterLocationState.java @ 2265:1dad713412a7
Added accidentally ommitted ChangeLog.
flys-artifacts/trunk@3921 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 06 Feb 2012 13:09:05 +0000 |
parents | ee7e774ed5b4 |
children | cc6b8af44728 |
line wrap: on
line source
package de.intevation.flys.artifacts.states; import de.intevation.flys.artifacts.FLYSArtifact; import de.intevation.flys.utils.FLYSUtils; import org.apache.log4j.Logger; /** * Get me a double startpoint. */ public class EnterLocationState extends InputDoubleState { private static final Logger logger = Logger.getLogger(EnterLocationState.class); @Override protected String getUIProvider() { return "location_panel"; } @Override protected Object getLower(FLYSArtifact flys) { double[] lowerUpper = FLYSUtils.getRiverMinMax(flys); return lowerUpper != null ? lowerUpper[0] : 0; } @Override protected Object getUpper(FLYSArtifact flys) { double[] lowerUpper = FLYSUtils.getRiverMinMax(flys); return lowerUpper != null ? lowerUpper[1] : 0; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :