Revision 1729 branches/gvSIG_CAD_Layout_version/applications/appgvSIG/src/com/iver/cit/gvsig/gui/cad/automaton/Poligono.java
Poligono.java | ||
---|---|---|
24 | 24 |
return com.iver.fsac.Automaton.TRANSITION_SUCCESS; |
25 | 25 |
} |
26 | 26 |
|
27 |
if ("".equalsIgnoreCase(label)){ |
|
28 |
previousStatus = status; |
|
29 |
status = 7; |
|
30 |
|
|
31 |
return com.iver.fsac.Automaton.TRANSITION_SUCCESS; |
|
32 |
} |
|
33 |
|
|
27 | 34 |
if ("cancel".equalsIgnoreCase(label)){ |
28 | 35 |
previousStatus = status; |
29 | 36 |
status = -1; |
... | ... | |
53 | 60 |
|
54 | 61 |
case 2: |
55 | 62 |
|
63 |
if ("".equalsIgnoreCase(label)){ |
|
64 |
previousStatus = status; |
|
65 |
status = 3; |
|
66 |
|
|
67 |
return com.iver.fsac.Automaton.TRANSITION_SUCCESS; |
|
68 |
} |
|
69 |
|
|
56 | 70 |
if ("I".equalsIgnoreCase(label)){ |
57 | 71 |
previousStatus = status; |
58 | 72 |
status = 3; |
... | ... | |
148 | 162 |
|
149 | 163 |
break; |
150 | 164 |
|
165 |
case 7: |
|
166 |
|
|
167 |
if ("punto".equalsIgnoreCase(label)){ |
|
168 |
previousStatus = status; |
|
169 |
status = 2; |
|
170 |
|
|
171 |
return com.iver.fsac.Automaton.TRANSITION_SUCCESS; |
|
172 |
} |
|
173 |
|
|
174 |
if ("cancel".equalsIgnoreCase(label)){ |
|
175 |
previousStatus = status; |
|
176 |
status = -1; |
|
177 |
|
|
178 |
return com.iver.fsac.Automaton.AUTOMATON_FINISHED; |
|
179 |
} |
|
180 |
|
|
181 |
break; |
|
182 |
|
|
151 | 183 |
} |
152 | 184 |
|
153 | 185 |
return com.iver.fsac.Automaton.TRANSITION_FAILED; |
... | ... | |
195 | 227 |
return "".indexOf(c) != -1; |
196 | 228 |
} |
197 | 229 |
|
230 |
if (status == 7){ |
|
231 |
return "".indexOf(c) != -1; |
|
232 |
} |
|
198 | 233 |
|
234 |
|
|
199 | 235 |
return false; |
200 | 236 |
} |
201 | 237 |
|
... | ... | |
206 | 242 |
} |
207 | 243 |
|
208 | 244 |
if (status == 0){ |
209 |
return new String[]{"numero", "cancel"}; |
|
245 |
return new String[]{"numero", "", "cancel"};
|
|
210 | 246 |
} |
211 | 247 |
|
212 | 248 |
if (status == 1){ |
... | ... | |
214 | 250 |
} |
215 | 251 |
|
216 | 252 |
if (status == 2){ |
217 |
return new String[]{"I", "C", "cancel"}; |
|
253 |
return new String[]{"", "I", "C", "cancel"};
|
|
218 | 254 |
} |
219 | 255 |
|
220 | 256 |
if (status == 3){ |
... | ... | |
233 | 269 |
return new String[]{"cancel"}; |
234 | 270 |
} |
235 | 271 |
|
272 |
if (status == 7){ |
|
273 |
return new String[]{"punto", "cancel"}; |
|
274 |
} |
|
236 | 275 |
|
276 |
|
|
237 | 277 |
throw new RuntimeException("Bug!"); |
238 | 278 |
} |
239 | 279 |
|
... | ... | |
244 | 284 |
} |
245 | 285 |
|
246 | 286 |
if (status == 0){ |
247 |
return new String[]{null, "Cancelar"}; |
|
287 |
return new String[]{null, null, "Cancelar"};
|
|
248 | 288 |
} |
249 | 289 |
|
250 | 290 |
if (status == 1){ |
... | ... | |
252 | 292 |
} |
253 | 293 |
|
254 | 294 |
if (status == 2){ |
255 |
return new String[]{"Inscrito", "Circunscrito", "Cancelar"}; |
|
295 |
return new String[]{null, "Inscrito", "Circunscrito", "Cancelar"};
|
|
256 | 296 |
} |
257 | 297 |
|
258 | 298 |
if (status == 3){ |
... | ... | |
271 | 311 |
return new String[]{"Cancelar"}; |
272 | 312 |
} |
273 | 313 |
|
314 |
if (status == 7){ |
|
315 |
return new String[]{null, "Cancelar"}; |
|
316 |
} |
|
274 | 317 |
|
318 |
|
|
275 | 319 |
throw new RuntimeException("Bug!"); |
276 | 320 |
} |
277 | 321 |
} |
Also available in: Unified diff