comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/ComputationRangeState.java @ 4865:1358d0c8481c

RangeState and descendants: Use RangeAccess, resolve direct ld_* usage.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 24 Jan 2013 16:09:46 +0100
parents 8e66293c5369
children
comparison
equal deleted inserted replaced
4864:dc0d37715e16 4865:1358d0c8481c
22 22
23 /** 23 /**
24 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 24 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
25 */ 25 */
26 public class ComputationRangeState 26 public class ComputationRangeState
27 extends RangeState 27 extends RangeState
28 implements FacetTypes 28 implements FacetTypes
29 { 29 {
30 private static Logger logger = 30 private static Logger logger =
31 Logger.getLogger(ComputationRangeState.class); 31 Logger.getLogger(ComputationRangeState.class);
32
33 /** The name of the 'from' field. */
34 public static final String FROM = "ld_from";
35
36 /** The name of the 'to' field. */
37 public static final String TO = "ld_to";
38
39 /** The name of the 'step' field. */
40 public static final String STEP = "ld_step";
41 32
42 /** The default step width. */ 33 /** The default step width. */
43 public static final int DEFAULT_STEP = 100; 34 public static final int DEFAULT_STEP = 100;
44 35
45 36
148 139
149 140
150 protected double getDefaultStep() { 141 protected double getDefaultStep() {
151 return DEFAULT_STEP; 142 return DEFAULT_STEP;
152 } 143 }
153
154
155 @Override
156 protected String getLowerField() {
157 return FROM;
158 }
159
160
161 @Override
162 protected String getUpperField() {
163 return TO;
164 }
165
166
167 @Override
168 protected String getStepField() {
169 return STEP;
170 }
171 } 144 }
172 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : 145 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org