Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/AreaArtifact.java @ 2033:76cedac30d35
Store additional Parameter in AreaArtifact (paint everything between curve a and b?).
flys-artifacts/trunk@3498 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 20 Dec 2011 15:12:11 +0000 |
parents | 3c3693e9c538 |
children | 64dc2997b2dd |
comparison
equal
deleted
inserted
replaced
2032:5746c74c69cf | 2033:76cedac30d35 |
---|---|
45 /** data item name to access upper curve. */ | 45 /** data item name to access upper curve. */ |
46 protected static final String AREA_CURVE_OVER = "area.curve_over"; | 46 protected static final String AREA_CURVE_OVER = "area.curve_over"; |
47 | 47 |
48 /** data item name to access lower curve. */ | 48 /** data item name to access lower curve. */ |
49 protected static final String AREA_CURVE_UNDER = "area.curve_under"; | 49 protected static final String AREA_CURVE_UNDER = "area.curve_under"; |
50 | |
51 /** data item name to access whether or not paint over and under. */ | |
52 protected static final String AREA_BETWEEN = "area.between"; | |
50 | 53 |
51 /** Name of state. */ | 54 /** Name of state. */ |
52 protected static final String AREA_NAME = "area.name"; | 55 protected static final String AREA_NAME = "area.name"; |
53 | 56 |
54 /** Own logger. */ | 57 /** Own logger. */ |
101 CallMeta callMeta) | 104 CallMeta callMeta) |
102 { | 105 { |
103 // do nothing | 106 // do nothing |
104 } | 107 } |
105 | 108 |
109 | |
106 /** | 110 /** |
107 * Get name of facets to create. | 111 * Get name of facets to create. |
108 */ | 112 */ |
109 public String getFacetName() { | 113 public String getFacetName() { |
110 return getDataAsString(FACET_NAME); | 114 return getDataAsString(FACET_NAME); |
111 } | 115 } |
112 | 116 |
117 | |
113 /** | 118 /** |
114 * Get dataprovider key for the 'lower' curve (we got that information fed | 119 * Get dataprovider key for the 'lower' curve (we got that information fed |
115 * from the client and store it as data). | 120 * from the client and store it as data). |
116 */ | 121 */ |
117 public String getLowerDPKey() { | 122 public String getLowerDPKey() { |
118 return getDataAsString(AREA_CURVE_UNDER); | 123 return getDataAsString(AREA_CURVE_UNDER); |
124 } | |
125 | |
126 | |
127 /** | |
128 * True if the whole area between the two curves shall be filled. | |
129 */ | |
130 public boolean getPaintBetween() { | |
131 String val = getDataAsString(AREA_BETWEEN); | |
132 | |
133 return val != null && val.equals("true"); | |
119 } | 134 } |
120 | 135 |
121 | 136 |
122 /** | 137 /** |
123 * Get dataprovider key for the 'upper' curve (we got that information fed | 138 * Get dataprovider key for the 'upper' curve (we got that information fed |
160 states.add(getCurrentState(context)); | 175 states.add(getCurrentState(context)); |
161 | 176 |
162 return states; | 177 return states; |
163 } | 178 } |
164 | 179 |
180 | |
165 /** Trivia. */ | 181 /** Trivia. */ |
166 protected State getState(Object context, String stateID) { | 182 protected State getState(Object context, String stateID) { |
167 return getCurrentState(null); | 183 return getCurrentState(null); |
168 } | 184 } |
169 } | 185 } |