Revision 28
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/buildNumber.properties | ||
---|---|---|
1 |
#maven.buildNumber.plugin properties file |
|
2 |
#Fri Feb 08 11:27:52 CET 2013 |
|
3 |
buildNumber=2079 |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/iver.html | ||
---|---|---|
1 |
<html> |
|
2 |
<body> |
|
3 |
|
|
4 |
<img src="iver-logo.png"><br> |
|
5 |
|
|
6 |
<h2>IVER</h2> |
|
7 |
<br> |
|
8 |
|
|
9 |
<p>Expression field</p> |
|
10 |
<p>EN CONSTRUCCION</p> |
|
11 |
|
|
12 |
</body> |
|
13 |
</html> |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1 |
#Translations for language [es] |
|
2 |
#Tue Jan 20 18:42:35 CET 2009 |
|
3 |
advanced=Avanzada |
|
4 |
boolean_value=Valor booleano |
|
5 |
calculate_expression=Calcular expresi\u00f3n |
|
6 |
charged_operators=Operadores cargados. |
|
7 |
charging_operators=Cargando operadores |
|
8 |
clear_expression=Borrar expresi\u00f3n |
|
9 |
column=Columna |
|
10 |
commands=Comandos |
|
11 |
continue?=\u00bfQuiere continuar? |
|
12 |
date=Fecha |
|
13 |
date_value=Valor fecha |
|
14 |
description=Descripci\u00f3n |
|
15 |
double_value= |
|
16 |
error=Error |
|
17 |
error_expression=Error en la expresi\u00f3n |
|
18 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table=El c\u00e1lculo de la expresi\u00f3n se realizar\u00e1 en este momento\nsobre los registros existentes en la tabla. |
|
19 |
evaluate=Evaluar |
|
20 |
evaluate_expression_with_errors=Expresiones evaluadas con errores |
|
21 |
explorer=Explorar |
|
22 |
expression=Expresi\u00f3n |
|
23 |
expressions=Expresiones |
|
24 |
expressions_from_file=Expresiones de fichero |
|
25 |
field=Campo |
|
26 |
field_toolbar= |
|
27 |
format=Formato |
|
28 |
general=General |
|
29 |
incorrect_file=Fichero incorrecto |
|
30 |
information=Informaci\u00f3n |
|
31 |
integer_value= |
|
32 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue=Tiene establecido un l\u00edmite de registros en preferencias, perder\u00e1 la posibilidad de deshacer. \u00bfQuiere continuar? |
|
33 |
limit_rows_in_memory=L\u00edmite de registros en memoria |
|
34 |
numeric=Num\u00e9rico |
|
35 |
numeric_value=Valor num\u00e9rico |
|
36 |
operator= |
|
37 |
optional=Opcional |
|
38 |
parameter=Par\u00e1metro |
|
39 |
python= |
|
40 |
returns=Devuelve |
|
41 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression=Especifica el n\u00famero de registros\n en memoria cuando se evalue la expresi\u00f3n,\n reduciendose dr\u00e1sticamente la velocidad\n cuando se limite. |
|
42 |
string=Cadena |
|
43 |
string_value=Valor String |
|
44 |
type=Tipo |
|
45 |
value=Valor |
|
46 |
without_limit=Sin l\u00edmite |
|
47 |
_Expression_field=Calculadora de campos |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_ro.properties | ||
---|---|---|
1 |
#Translations for language [ro] |
|
2 |
#Mon Aug 06 08:50:49 CEST 2007 |
|
3 |
advanced=Inainta |
|
4 |
boolean_value= |
|
5 |
calculate_expression= |
|
6 |
charging_operators= |
|
7 |
clear_expression= |
|
8 |
column= |
|
9 |
commands= |
|
10 |
continue?= |
|
11 |
date= |
|
12 |
date_value= |
|
13 |
description=Descriere |
|
14 |
double_value= |
|
15 |
error=Eroare |
|
16 |
error_expression= |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
18 |
evaluate= |
|
19 |
evaluate_expression_with_errors= |
|
20 |
explorer= |
|
21 |
expression= |
|
22 |
expressions= |
|
23 |
expressions_from_file= |
|
24 |
field=Camp |
|
25 |
general=General |
|
26 |
incorrect_file= |
|
27 |
information= |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue= |
|
30 |
limit_rows_in_memory= |
|
31 |
numeric= |
|
32 |
numeric_value= |
|
33 |
operator= |
|
34 |
parameter= |
|
35 |
python= |
|
36 |
returns= |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
38 |
string= |
|
39 |
string_value= |
|
40 |
type=Mod |
|
41 |
value=Valoare |
|
42 |
without_limit= |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_zh.properties | ||
---|---|---|
1 |
#Translations for language [zh] |
|
2 |
#Mon Aug 06 08:50:49 CEST 2007 |
|
3 |
advanced=\u9ad8\u7ea7 |
|
4 |
boolean_value= |
|
5 |
calculate_expression= |
|
6 |
charging_operators= |
|
7 |
clear_expression= |
|
8 |
column= |
|
9 |
commands= |
|
10 |
continue?= |
|
11 |
date= |
|
12 |
date_value= |
|
13 |
description=\u63cf\u8ff0 |
|
14 |
double_value= |
|
15 |
error=\u9519\u8bef |
|
16 |
error_expression= |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
18 |
evaluate= |
|
19 |
evaluate_expression_with_errors= |
|
20 |
explorer= |
|
21 |
expression= |
|
22 |
expressions= |
|
23 |
expressions_from_file= |
|
24 |
field=\u5b57\u6bb5 |
|
25 |
general=\u57fa\u672c\u8bbe\u7f6e |
|
26 |
incorrect_file= |
|
27 |
information= |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue= |
|
30 |
limit_rows_in_memory= |
|
31 |
numeric= |
|
32 |
numeric_value= |
|
33 |
operator= |
|
34 |
parameter= |
|
35 |
python= |
|
36 |
returns= |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
38 |
string= |
|
39 |
string_value= |
|
40 |
type=\u7c7b\u578b |
|
41 |
value=\u6570\u636e |
|
42 |
without_limit= |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1 |
#Translations for language [en] |
|
2 |
#Tue Jan 20 17:39:04 CET 2009 |
|
3 |
advanced=Advanced |
|
4 |
boolean_value=Boolean value |
|
5 |
calculate_expression=Calculate expression |
|
6 |
charged_operators= |
|
7 |
charging_operators=Charging operators |
|
8 |
clear_expression=Clear expression |
|
9 |
column=Column |
|
10 |
commands=Commands |
|
11 |
continue?=Continue? |
|
12 |
date=Date |
|
13 |
date_value=Date value |
|
14 |
description=Description |
|
15 |
double_value= |
|
16 |
error=Error |
|
17 |
error_expression=Error expression |
|
18 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table=Eval expression will be carried out right now\nwith current values in table. |
|
19 |
evaluate=Evaluate |
|
20 |
evaluate_expression_with_errors=Evaluated expressions with errors |
|
21 |
explorer=Explorer |
|
22 |
expression=Expression |
|
23 |
expressions=Expressions |
|
24 |
expressions_from_file=Expressions from file |
|
25 |
field=Field |
|
26 |
field_toolbar= |
|
27 |
format=Format |
|
28 |
general=General |
|
29 |
incorrect_file=Incorrect file |
|
30 |
information=Information |
|
31 |
integer_value= |
|
32 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue=It has established a limit of rows in preferences, will lose the possibility to undo. Wants to continue? |
|
33 |
limit_rows_in_memory=Limit rows in memory |
|
34 |
numeric=Numeric |
|
35 |
numeric_value=Numeric value |
|
36 |
operator= |
|
37 |
optional=Optional |
|
38 |
parameter=Parameter |
|
39 |
python= |
|
40 |
returns=Returns |
|
41 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression=Speficies the limit rows in memory when the program eval the expression\n The limit down the velocity. |
|
42 |
string=String |
|
43 |
string_value=String value |
|
44 |
type=Type |
|
45 |
value=Value |
|
46 |
without_limit=Without limit |
|
47 |
_Expression_field=Field calculator |
|
48 |
|
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_gl.properties | ||
---|---|---|
1 |
#Translations for language [gl] |
|
2 |
#Mon Aug 06 08:50:49 CEST 2007 |
|
3 |
advanced=Avanzada |
|
4 |
boolean_value= |
|
5 |
calculate_expression= |
|
6 |
charging_operators= |
|
7 |
clear_expression= |
|
8 |
column=Columna |
|
9 |
commands= |
|
10 |
continue?= |
|
11 |
date= |
|
12 |
date_value= |
|
13 |
description=Descripci\u00f3n |
|
14 |
double_value= |
|
15 |
error=Erro |
|
16 |
error_expression= |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
18 |
evaluate= |
|
19 |
evaluate_expression_with_errors= |
|
20 |
explorer= |
|
21 |
expression= |
|
22 |
expressions= |
|
23 |
expressions_from_file= |
|
24 |
field=Campo |
|
25 |
general=Xeral |
|
26 |
incorrect_file= |
|
27 |
information= |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue= |
|
30 |
limit_rows_in_memory= |
|
31 |
numeric= |
|
32 |
numeric_value= |
|
33 |
operator= |
|
34 |
parameter= |
|
35 |
python= |
|
36 |
returns= |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
38 |
string= |
|
39 |
string_value= |
|
40 |
type=Tipo |
|
41 |
value=Valor |
|
42 |
without_limit= |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_ca.properties | ||
---|---|---|
1 |
#Translations for language [ca] |
|
2 |
#Mon Aug 13 13:40:45 CEST 2007 |
|
3 |
advanced=Avan\u00e7ada |
|
4 |
boolean_value=Valor boole\u00e0 |
|
5 |
calculate_expression=Calcular l'expressi\u00f3 |
|
6 |
charging_operators=Carregant operadors |
|
7 |
clear_expression=Esborrar expressi\u00f3 |
|
8 |
column=Columna |
|
9 |
commands=Comandaments |
|
10 |
continue?=Vol continuar? |
|
11 |
date=Data |
|
12 |
date_value=Valor data |
|
13 |
description=Descripci\u00f3 |
|
14 |
double_value= |
|
15 |
error=Error |
|
16 |
error_expression=Error en l'expressi\u00f3 |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table=El c\u00e0lcul de l'expressi\u00f3 es realitzar\u00e0 en este moment sobre els registres existents en la taula\n |
|
18 |
evaluate=Avaluar |
|
19 |
evaluate_expression_with_errors=Expressions avaluades amb errors |
|
20 |
explorer=Explorar |
|
21 |
expression=Expressi\u00f3 |
|
22 |
expressions=Expressions |
|
23 |
expressions_from_file=Expressions de fitxer |
|
24 |
field=Camp |
|
25 |
general=General |
|
26 |
incorrect_file=Fitxer incorrecte |
|
27 |
information=Informaci\u00f3 |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue=T\u00e9 establit un l\u00edmit de registres en prefer\u00e8ncies, perdr\u00e0 la possibilitat de desfer. Vol continuar?\n |
|
30 |
limit_rows_in_memory=L\u00edmit de registres en mem\u00f2ria |
|
31 |
numeric=Num\u00e8ric |
|
32 |
numeric_value=Valor num\u00e8ric |
|
33 |
operator= |
|
34 |
parameter=Par\u00e0metre |
|
35 |
python= |
|
36 |
returns=Torna |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression=en mem\u00f2ria quan s'avalue l'expressi\u00f3, i es redu\u00efx dr\u00e0sticament la velocitat quan es limite |
|
38 |
string=Cadena |
|
39 |
string_value=Valor cadena |
|
40 |
type=Tipus |
|
41 |
value=Valor |
|
42 |
without_limit=Sense l\u00edmit |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_pt.properties | ||
---|---|---|
1 |
#Translations for language [pt] |
|
2 |
#Mon Aug 06 08:50:49 CEST 2007 |
|
3 |
advanced= |
|
4 |
boolean_value= |
|
5 |
calculate_expression= |
|
6 |
charging_operators= |
|
7 |
clear_expression= |
|
8 |
column= |
|
9 |
commands= |
|
10 |
continue?= |
|
11 |
date= |
|
12 |
date_value= |
|
13 |
description=Descri\u00e7\u00e3o |
|
14 |
double_value= |
|
15 |
error=Error |
|
16 |
error_expression= |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
18 |
evaluate= |
|
19 |
evaluate_expression_with_errors= |
|
20 |
explorer= |
|
21 |
expression= |
|
22 |
expressions= |
|
23 |
expressions_from_file= |
|
24 |
field= |
|
25 |
general=Geral |
|
26 |
incorrect_file= |
|
27 |
information= |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue= |
|
30 |
limit_rows_in_memory= |
|
31 |
numeric= |
|
32 |
numeric_value= |
|
33 |
operator= |
|
34 |
parameter= |
|
35 |
python= |
|
36 |
returns= |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
38 |
string= |
|
39 |
string_value= |
|
40 |
type=Tipo |
|
41 |
value=Valor |
|
42 |
without_limit= |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_cs.properties | ||
---|---|---|
1 |
#Translations for language [cs] |
|
2 |
#Thu Aug 16 08:33:37 CEST 2007 |
|
3 |
advanced=Pokro\u010dil\u00fd |
|
4 |
boolean_value=Boolean hodnota |
|
5 |
calculate_expression=Vypo\u010d\u00edtat v\u00fdraz |
|
6 |
charging_operators=Napln\u011bn\u00ed oper\u00e1tor\u016f |
|
7 |
clear_expression=Vymazat v\u00fdraz |
|
8 |
column=Sloupec |
|
9 |
commands=P\u0159\u00edkazy |
|
10 |
continue?=Pokra\u010dovat? |
|
11 |
date=Datum |
|
12 |
date_value=Datum |
|
13 |
description=Popis |
|
14 |
double_value= |
|
15 |
error=Error |
|
16 |
error_expression=Chybn\u00fd v\u00fdraz |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table=V\u00fdraz bude vyhodnocen te\u010f na z\u00e1klad\u011b\nsou\u010dasn\u00fdch hodnot v tabulce. |
|
18 |
evaluate=Vyhodnotit |
|
19 |
evaluate_expression_with_errors=Vyhodnotit v\u00fdraz s chybami |
|
20 |
explorer=Pr\u016fzkumn\u00edk |
|
21 |
expression=V\u00fdraz |
|
22 |
expressions=V\u00fdrazy |
|
23 |
expressions_from_file=V\u00fdrazy ze souboru |
|
24 |
field=Polo\u017eka |
|
25 |
general=Obecn\u00fd |
|
26 |
incorrect_file=Chybn\u00fd soubor |
|
27 |
information=Informace |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue=Byl dosa\u017een \u0159\u00e1dkov\u00fd limit v nastaven\u00ed, bude ztracena mo\u017enost vracen\u00ed zm\u011bn. Chcete pokra\u010dovat? |
|
30 |
limit_rows_in_memory=Omezen\u00ed \u0159\u00e1dk\u016f v pam\u011bti |
|
31 |
numeric=\u010c\u00edseln\u00fd |
|
32 |
numeric_value=\u010c\u00edseln\u00e1 hodnota |
|
33 |
operator= |
|
34 |
parameter=Parametr |
|
35 |
python= |
|
36 |
returns=Vr\u00e1tit se |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression=Ud\u00e1v\u00e1 \u0159\u00e1dkov\u00e9 omezen\u00ed v pam\u011bti kdy\u017e prokram vyhodnocuje v\u00fdraz\n Omezen\u00ed sni\u017euje v\u00fdkon |
|
38 |
string=\u0158et\u011bzec |
|
39 |
string_value=Hodnota \u0159et\u011bzce |
|
40 |
type=Typ |
|
41 |
value=Hodnota |
|
42 |
without_limit=Bez omezen\u00ed |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_ru.properties | ||
---|---|---|
1 |
#text_ru.properties |
|
2 |
advanced=\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u043D\u044B\u0439 |
|
3 |
boolean_value=\u041B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 |
|
4 |
calculate_expresion=\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044C \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 |
|
5 |
charging_operators=\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0442\u043E\u0440\u044B |
|
6 |
clear_expresion=\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 |
|
7 |
column=\u041F\u043E\u043B\u0435 |
|
8 |
commands=\u041A\u043E\u043C\u0430\u043D\u0434\u044B |
|
9 |
continue?=\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C? |
|
10 |
date=\u0414\u0430\u0442\u0430 |
|
11 |
date_value=\u0412\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 |
|
12 |
description=\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 |
|
13 |
error=\u041E\u0448\u0438\u0431\u043A\u0430 |
|
14 |
error_expresion=\u041E\u0448\u0438\u0431\u043E\u0447\u043D\u043E\u0435 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 |
|
15 |
eval_expresion_will_be_carried_out_right_now_with_current_values_in_table=\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043E \n\u0441 \u0442\u0435\u043A\u0443\u0449\u0438\u043C\u0438 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F\u043C\u0438 \u0432 \u0442\u0430\u0431\u043B\u0438\u0446\u0435 |
|
16 |
evaluate=\u0412\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C |
|
17 |
evaluate_expresion_with_errors=\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u043C\u044B\u0435 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442 \u043E\u0448\u0438\u0431\u043A\u0438 |
|
18 |
explorer=\u041E\u0431\u0437\u043E\u0440 |
|
19 |
expresion=\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044C \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 |
|
20 |
expresions=\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F |
|
21 |
expresions_from_file=\u0412\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0438\u0437 \u0444\u0430\u0439\u043B\u0430 |
|
22 |
field=\u041F\u043E\u043B\u0435 |
|
23 |
general=\u041E\u0431\u0449\u0438\u0435 |
|
24 |
incorrect_file=\u041D\u0435\u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 \u0444\u0430\u0439\u043B |
|
25 |
information=\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F |
|
26 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue=\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E, \u0442.\u043A. \u043B\u0438\u043C\u0438\u0442 \u0441\u0442\u0440\u043E\u043A \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445. \u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C? |
|
27 |
limit_rows_in_memory=\u041B\u0438\u043C\u0438\u0442 \u0441\u0442\u0440\u043E\u043A \u0432 \u043F\u0430\u043C\u044F\u0442\u0438 |
|
28 |
numeric=\u0427\u0438\u0441\u043B\u043E |
|
29 |
numeric_value=\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 |
|
30 |
operator=\u041A\u043E\u043C\u0430\u043D\u0434\u0430 |
|
31 |
parameter=\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B |
|
32 |
returns=\u0412\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 |
|
33 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expresion=\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u043B\u0438\u043C\u0438\u0442 \u0441\u0442\u0440\u043E\u043A \u0432 \u043F\u0430\u043C\u044F\u0442\u0438 \u043F\u0440\u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0438 \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u044F. \n\u0417\u0430\u0434\u0430\u043D\u0438\u0435 \u043B\u0438\u043C\u0438\u0442\u0430 \u0441\u043D\u0438\u0436\u0430\u0435\u0442 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F. |
|
34 |
string=\u0422\u0435\u043A\u0441\u0442 |
|
35 |
string_value=\u0422\u0435\u043A\u0441\u0442\u043E\u0432\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 |
|
36 |
type=\u0422\u0438\u043F |
|
37 |
value=\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 |
|
38 |
without_limit=\u0411\u0435\u0437 \u043B\u0438\u043C\u0438\u0442\u0430 |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_fr.properties | ||
---|---|---|
1 |
#Translations for language [fr] |
|
2 |
#Mon Aug 06 08:50:49 CEST 2007 |
|
3 |
advanced= |
|
4 |
boolean_value= |
|
5 |
calculate_expression= |
|
6 |
charging_operators= |
|
7 |
clear_expression= |
|
8 |
column= |
|
9 |
commands= |
|
10 |
continue?= |
|
11 |
date= |
|
12 |
date_value= |
|
13 |
description=Description |
|
14 |
double_value= |
|
15 |
error=Error |
|
16 |
error_expression= |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
18 |
evaluate= |
|
19 |
evaluate_expression_with_errors= |
|
20 |
explorer= |
|
21 |
expression= |
|
22 |
expressions= |
|
23 |
expressions_from_file= |
|
24 |
field=Colonne |
|
25 |
general=G\u00e9n\u00e9ral |
|
26 |
incorrect_file= |
|
27 |
information= |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue= |
|
30 |
limit_rows_in_memory= |
|
31 |
numeric= |
|
32 |
numeric_value= |
|
33 |
operator= |
|
34 |
parameter= |
|
35 |
python= |
|
36 |
returns= |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
38 |
string= |
|
39 |
string_value= |
|
40 |
type=Type |
|
41 |
value=Valeur |
|
42 |
without_limit= |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_de.properties | ||
---|---|---|
1 |
#Translations for language [de] |
|
2 |
#Tue Jan 20 17:39:04 CET 2009 |
|
3 |
advanced=Erweitert |
|
4 |
boolean_value=Boolscher Wert |
|
5 |
calculate_expression= |
|
6 |
charged_operators= |
|
7 |
charging_operators=Ladezeit Operator |
|
8 |
clear_expression= |
|
9 |
column=Spalte |
|
10 |
commands=Kommandos |
|
11 |
continue?=Fortfahren? |
|
12 |
date=Datum |
|
13 |
date_value=Datums-Wert |
|
14 |
description=Beschreibung |
|
15 |
double_value= |
|
16 |
error=Fehler |
|
17 |
error_expression= |
|
18 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
19 |
evaluate=Auswerten |
|
20 |
evaluate_expression_with_errors= |
|
21 |
explorer=Durchsuchen |
|
22 |
expression= |
|
23 |
expressions= |
|
24 |
expressions_from_file= |
|
25 |
field=Feld |
|
26 |
field_toolbar= |
|
27 |
format=Format |
|
28 |
general=Allgemein |
|
29 |
incorrect_file=Ung\u00fcltige Datei |
|
30 |
information=Information |
|
31 |
integer_value= |
|
32 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue=Zeilen- Limit wurde erreicht in den Eigenschaften, dieser Schritt kann nicht r\u00fcckg\u00e4ngi gemacht werden. Wollen Sie fortfahren? |
|
33 |
limit_rows_in_memory=Zeilen- Limit erreicht |
|
34 |
numeric=Numerisch |
|
35 |
numeric_value=Numerischer Wert |
|
36 |
operator= |
|
37 |
optional= |
|
38 |
parameter=Parameter |
|
39 |
python= |
|
40 |
returns=Ergebnis |
|
41 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
42 |
string=Zeichenkette |
|
43 |
string_value=Wert der Zeichenkette |
|
44 |
type=Typ |
|
45 |
value=Wert |
|
46 |
without_limit=Ohne Beschr\u00e4nkung |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_eu.properties | ||
---|---|---|
1 |
#Translations for language [eu] |
|
2 |
#Mon Aug 06 08:50:49 CEST 2007 |
|
3 |
advanced=Aurreratua |
|
4 |
boolean_value= |
|
5 |
calculate_expression= |
|
6 |
charging_operators= |
|
7 |
clear_expression= |
|
8 |
column=Zutabea |
|
9 |
commands= |
|
10 |
continue?= |
|
11 |
date= |
|
12 |
date_value= |
|
13 |
description=Deskripzioa |
|
14 |
double_value= |
|
15 |
error=Errorea |
|
16 |
error_expression= |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
18 |
evaluate= |
|
19 |
evaluate_expression_with_errors= |
|
20 |
explorer= |
|
21 |
expression= |
|
22 |
expressions= |
|
23 |
expressions_from_file= |
|
24 |
field=Eremua |
|
25 |
general=Orokorra |
|
26 |
incorrect_file= |
|
27 |
information= |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue= |
|
30 |
limit_rows_in_memory= |
|
31 |
numeric= |
|
32 |
numeric_value= |
|
33 |
operator= |
|
34 |
parameter= |
|
35 |
python= |
|
36 |
returns= |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
38 |
string= |
|
39 |
string_value= |
|
40 |
type=Mota |
|
41 |
value=Balioa |
|
42 |
without_limit= |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_nl.properties | ||
---|---|---|
1 |
#Translations for language [nl] |
|
2 |
#Mon Aug 06 08:50:49 CEST 2007 |
|
3 |
advanced= |
|
4 |
boolean_value= |
|
5 |
calculate_expression= |
|
6 |
charging_operators= |
|
7 |
clear_expression= |
|
8 |
column= |
|
9 |
commands= |
|
10 |
continue?= |
|
11 |
date= |
|
12 |
date_value= |
|
13 |
description= |
|
14 |
double_value= |
|
15 |
error= |
|
16 |
error_expression= |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
18 |
evaluate= |
|
19 |
evaluate_expression_with_errors= |
|
20 |
explorer= |
|
21 |
expression= |
|
22 |
expressions= |
|
23 |
expressions_from_file= |
|
24 |
field= |
|
25 |
general= |
|
26 |
incorrect_file= |
|
27 |
information= |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue= |
|
30 |
limit_rows_in_memory= |
|
31 |
numeric= |
|
32 |
numeric_value= |
|
33 |
operator= |
|
34 |
parameter= |
|
35 |
python= |
|
36 |
returns= |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
38 |
string= |
|
39 |
string_value= |
|
40 |
type= |
|
41 |
value= |
|
42 |
without_limit= |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_pl.properties | ||
---|---|---|
1 |
#Translations for language [pl] |
|
2 |
#Mon Aug 06 12:43:02 CEST 2007 |
|
3 |
advanced=Zaawansowane |
|
4 |
boolean_value= |
|
5 |
calculate_expression= |
|
6 |
charging_operators= |
|
7 |
clear_expression= |
|
8 |
column= |
|
9 |
commands= |
|
10 |
continue?= |
|
11 |
date= |
|
12 |
date_value= |
|
13 |
description=Opis |
|
14 |
double_value= |
|
15 |
error=B\u0142\u0105d |
|
16 |
error_expression= |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table= |
|
18 |
evaluate= |
|
19 |
evaluate_expression_with_errors= |
|
20 |
explorer= |
|
21 |
expression= |
|
22 |
expressions= |
|
23 |
expressions_from_file= |
|
24 |
field=Kolumna |
|
25 |
general=Og\u00f3lne |
|
26 |
incorrect_file= |
|
27 |
information= |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue= |
|
30 |
limit_rows_in_memory= |
|
31 |
numeric= |
|
32 |
numeric_value= |
|
33 |
operator= |
|
34 |
parameter= |
|
35 |
python= |
|
36 |
returns= |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression= |
|
38 |
string= |
|
39 |
string_value= |
|
40 |
type=Typ |
|
41 |
value=warto\u015b\u0107 |
|
42 |
without_limit= |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/i18n/text_it.properties | ||
---|---|---|
1 |
#Translations for language [it] |
|
2 |
#Mon Aug 13 13:02:41 CEST 2007 |
|
3 |
advanced=Avanzata |
|
4 |
boolean_value=Valore boleano |
|
5 |
calculate_expression=Calcola espressione |
|
6 |
charging_operators=Caricamento operatori |
|
7 |
clear_expression=Cancella espressione |
|
8 |
column=Colonna |
|
9 |
commands=Comandi |
|
10 |
continue?=Continuare? |
|
11 |
date=Data |
|
12 |
date_value=Valore della data |
|
13 |
description=Descrizione |
|
14 |
double_value= |
|
15 |
error=Errore |
|
16 |
error_expression=Errore nell'espressione |
|
17 |
eval_expression_will_be_carried_out_right_now_with_current_values_in_table=L'espressione verr\u00e0 processata ora, \ncon gli attuali dati della tabella |
|
18 |
evaluate=Processa |
|
19 |
evaluate_expression_with_errors=Espressione processata con errori |
|
20 |
explorer=Esplorare |
|
21 |
expression=Espressione |
|
22 |
expressions=Espressioni |
|
23 |
expressions_from_file=Espressioni da un file |
|
24 |
field=Campo |
|
25 |
general=Generale |
|
26 |
incorrect_file=File incorretto |
|
27 |
information=Informazione |
|
28 |
integer_value= |
|
29 |
it_has_established_a_limit_of_rows_will_lose_the_possibility_to_undo_wants_to_continue=E' stato stabilito un limite di righe nelle preferenze, non sar\u00e0 possibile annullare l'operazione. Proseguire? |
|
30 |
limit_rows_in_memory=Limite di righe in memoria |
|
31 |
numeric=Numerico |
|
32 |
numeric_value=Valore numerico |
|
33 |
operator= |
|
34 |
parameter=Parametro |
|
35 |
python= |
|
36 |
returns=Torna |
|
37 |
specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression=Specifica il numero di righe \n in memoria quando viene processata un'espressione,\n riducendo drasticamente il tempo di esecuzione\n quando viene diminuito. |
|
38 |
string=Stringa |
|
39 |
string_value=Valore stringa |
|
40 |
type=Tipo |
|
41 |
value=Valore |
|
42 |
without_limit=Senza limite |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<libraries library-dir="lib"/> |
|
4 |
<depends plugin-name="org.gvsig.editing.app.mainplugin"/> |
|
5 |
<depends plugin-name="org.gvsig.app.document.table.app.mainplugin" /> |
|
6 |
<resourceBundle name="text"/> |
|
7 |
<extensions> |
|
8 |
<extension class-name="org.gvsig.expressionfield.ExpressionFieldExtension" |
|
9 |
description="Extension that evaluate the expression to a column." |
|
10 |
active="true"> |
|
11 |
|
|
12 |
<action |
|
13 |
name="table-expression-field" |
|
14 |
label="_Expression_field" |
|
15 |
tooltip="_Expression_field" |
|
16 |
position="501100000" |
|
17 |
action-command="table-expression-field" |
|
18 |
icon="table-expression-field" |
|
19 |
accelerator="" |
|
20 |
/> |
|
21 |
|
|
22 |
<menu |
|
23 |
name="table-expression-field" |
|
24 |
text="Table/_Expression_field" |
|
25 |
/> |
|
26 |
|
|
27 |
<tool-bar name="table_tools"> |
|
28 |
<action-tool |
|
29 |
name="table-expression-field" |
|
30 |
/> |
|
31 |
</tool-bar> |
|
32 |
|
|
33 |
</extension> |
|
34 |
|
|
35 |
<extension class-name="org.gvsig.expressionfield.AboutExpressionFieldExtension" |
|
36 |
description="Extension to add about panel." |
|
37 |
active="false" |
|
38 |
priority="1"> |
|
39 |
</extension> |
|
40 |
</extensions> |
|
41 |
</plugin-config> |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
36 |
<outputDirectory>lib</outputDirectory> |
|
37 |
</file> |
|
38 |
<file> |
|
39 |
<source>target/package.info</source> |
|
40 |
</file> |
|
41 |
</files> |
|
42 |
|
|
43 |
<fileSets> |
|
44 |
<fileSet> |
|
45 |
<directory>src/main/resources-plugin</directory> |
|
46 |
<outputDirectory>.</outputDirectory> |
|
47 |
</fileSet> |
|
48 |
</fileSets> |
|
49 |
|
|
50 |
<dependencySets> |
|
51 |
<dependencySet> |
|
52 |
<useProjectArtifact>false</useProjectArtifact> |
|
53 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
54 |
<outputDirectory>lib</outputDirectory> |
|
55 |
<includes> |
|
56 |
<include>bsf:bsf</include> |
|
57 |
<include>org.python:jython</include> |
|
58 |
</includes> |
|
59 |
</dependencySet> |
|
60 |
</dependencySets> |
|
61 |
|
|
62 |
</assembly> |
|
63 |
|
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/java/org/gvsig/expressionfield/ExpressionFieldExtension.java | ||
---|---|---|
1 |
/******************************************************************************* |
|
2 |
* |
|
3 |
* gvSIG. Desktop Geographic Information System. |
|
4 |
* |
|
5 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
* |
|
7 |
* This program is free software; you can redistribute it and/or |
|
8 |
* modify it under the terms of the GNU General Public License |
|
9 |
* as published by the Free Software Foundation; either version 3 |
|
10 |
* of the License, or (at your option) any later version. |
|
11 |
* |
|
12 |
* This program is distributed in the hope that it will be useful, |
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
* GNU General Public License for more details. |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License |
|
18 |
* along with this program; if not, write to the Free Software |
|
19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
* MA 02110-1301, USA. |
|
21 |
* |
|
22 |
* For any additional information, do not hesitate to contact us |
|
23 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
* |
|
25 |
*******************************************************************************/ |
|
26 |
package org.gvsig.expressionfield; |
|
27 |
|
|
28 |
import java.awt.Component; |
|
29 |
import java.util.ArrayList; |
|
30 |
import java.util.Iterator; |
|
31 |
|
|
32 |
import javax.swing.JOptionPane; |
|
33 |
|
|
34 |
import org.apache.bsf.BSFManager; |
|
35 |
import org.gvsig.andami.IconThemeHelper; |
|
36 |
import org.gvsig.andami.PluginServices; |
|
37 |
import org.gvsig.andami.messages.NotificationManager; |
|
38 |
import org.gvsig.andami.plugins.Extension; |
|
39 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
|
40 |
import org.gvsig.expressionfield.gui.FieldExpressionPage; |
|
41 |
import org.gvsig.expressionfield.project.documents.table.IOperator; |
|
42 |
import org.gvsig.expressionfield.project.documents.table.gui.EvalExpressionDialog; |
|
43 |
import org.gvsig.expressionfield.project.documents.table.operators.Abs; |
|
44 |
import org.gvsig.expressionfield.project.documents.table.operators.Acos; |
|
45 |
import org.gvsig.expressionfield.project.documents.table.operators.After; |
|
46 |
import org.gvsig.expressionfield.project.documents.table.operators.Area; |
|
47 |
import org.gvsig.expressionfield.project.documents.table.operators.Asin; |
|
48 |
import org.gvsig.expressionfield.project.documents.table.operators.Atan; |
|
49 |
import org.gvsig.expressionfield.project.documents.table.operators.Before; |
|
50 |
import org.gvsig.expressionfield.project.documents.table.operators.Ceil; |
|
51 |
import org.gvsig.expressionfield.project.documents.table.operators.Cos; |
|
52 |
import org.gvsig.expressionfield.project.documents.table.operators.DateToString; |
|
53 |
import org.gvsig.expressionfield.project.documents.table.operators.Distinct; |
|
54 |
import org.gvsig.expressionfield.project.documents.table.operators.Division; |
|
55 |
import org.gvsig.expressionfield.project.documents.table.operators.E; |
|
56 |
import org.gvsig.expressionfield.project.documents.table.operators.EndsWith; |
|
57 |
import org.gvsig.expressionfield.project.documents.table.operators.Equal; |
|
58 |
import org.gvsig.expressionfield.project.documents.table.operators.Equals; |
|
59 |
import org.gvsig.expressionfield.project.documents.table.operators.Exp; |
|
60 |
import org.gvsig.expressionfield.project.documents.table.operators.Floor; |
|
61 |
import org.gvsig.expressionfield.project.documents.table.operators.Geometry; |
|
62 |
import org.gvsig.expressionfield.project.documents.table.operators.GetTimeDate; |
|
63 |
import org.gvsig.expressionfield.project.documents.table.operators.IndexOf; |
|
64 |
import org.gvsig.expressionfield.project.documents.table.operators.IsNumber; |
|
65 |
import org.gvsig.expressionfield.project.documents.table.operators.LastIndexOf; |
|
66 |
import org.gvsig.expressionfield.project.documents.table.operators.Length; |
|
67 |
import org.gvsig.expressionfield.project.documents.table.operators.LessEquals; |
|
68 |
import org.gvsig.expressionfield.project.documents.table.operators.LessThan; |
|
69 |
import org.gvsig.expressionfield.project.documents.table.operators.Log; |
|
70 |
import org.gvsig.expressionfield.project.documents.table.operators.Max; |
|
71 |
import org.gvsig.expressionfield.project.documents.table.operators.Min; |
|
72 |
import org.gvsig.expressionfield.project.documents.table.operators.Minus; |
|
73 |
import org.gvsig.expressionfield.project.documents.table.operators.MoreEquals; |
|
74 |
import org.gvsig.expressionfield.project.documents.table.operators.MoreThan; |
|
75 |
import org.gvsig.expressionfield.project.documents.table.operators.Perimeter; |
|
76 |
import org.gvsig.expressionfield.project.documents.table.operators.Pi; |
|
77 |
import org.gvsig.expressionfield.project.documents.table.operators.Plus; |
|
78 |
import org.gvsig.expressionfield.project.documents.table.operators.PointX; |
|
79 |
import org.gvsig.expressionfield.project.documents.table.operators.PointY; |
|
80 |
import org.gvsig.expressionfield.project.documents.table.operators.Pow; |
|
81 |
import org.gvsig.expressionfield.project.documents.table.operators.Random; |
|
82 |
import org.gvsig.expressionfield.project.documents.table.operators.RecordIndex; |
|
83 |
import org.gvsig.expressionfield.project.documents.table.operators.Replace; |
|
84 |
import org.gvsig.expressionfield.project.documents.table.operators.Round; |
|
85 |
import org.gvsig.expressionfield.project.documents.table.operators.SetTimeDate; |
|
86 |
import org.gvsig.expressionfield.project.documents.table.operators.Sin; |
|
87 |
import org.gvsig.expressionfield.project.documents.table.operators.Sqrt; |
|
88 |
import org.gvsig.expressionfield.project.documents.table.operators.StartsWith; |
|
89 |
import org.gvsig.expressionfield.project.documents.table.operators.SubString; |
|
90 |
import org.gvsig.expressionfield.project.documents.table.operators.Tan; |
|
91 |
import org.gvsig.expressionfield.project.documents.table.operators.Times; |
|
92 |
import org.gvsig.expressionfield.project.documents.table.operators.ToDate; |
|
93 |
import org.gvsig.expressionfield.project.documents.table.operators.ToDegrees; |
|
94 |
import org.gvsig.expressionfield.project.documents.table.operators.ToLowerCase; |
|
95 |
import org.gvsig.expressionfield.project.documents.table.operators.ToNumber; |
|
96 |
import org.gvsig.expressionfield.project.documents.table.operators.ToRadians; |
|
97 |
import org.gvsig.expressionfield.project.documents.table.operators.ToString; |
|
98 |
import org.gvsig.expressionfield.project.documents.table.operators.ToUpperCase; |
|
99 |
import org.gvsig.expressionfield.project.documents.table.operators.Trim; |
|
100 |
import org.gvsig.fmap.dal.exception.DataException; |
|
101 |
import org.gvsig.tools.ToolsLocator; |
|
102 |
import org.gvsig.tools.extensionpoint.ExtensionPoint; |
|
103 |
import org.gvsig.utils.swing.threads.AbstractMonitorableTask; |
|
104 |
import org.slf4j.Logger; |
|
105 |
import org.slf4j.LoggerFactory; |
|
106 |
|
|
107 |
/** |
|
108 |
* @author Vicente Caballero Navarro |
|
109 |
*/ |
|
110 |
public class ExpressionFieldExtension extends Extension{ |
|
111 |
|
|
112 |
private static Logger logger = LoggerFactory.getLogger(ExpressionFieldExtension.class); |
|
113 |
|
|
114 |
public static final String JYTHON="jython"; |
|
115 |
private static BSFManager interpreter=new BSFManager(); |
|
116 |
private FeatureTableDocumentPanel table=null; |
|
117 |
private static ArrayList<IOperator> operators=new ArrayList<IOperator>(); |
|
118 |
|
|
119 |
public void initialize() { |
|
120 |
registerIcons(); |
|
121 |
registerOperations(); |
|
122 |
} |
|
123 |
|
|
124 |
public void execute(String actionCommand) { |
|
125 |
if( "table-expression-field".equalsIgnoreCase(actionCommand) ) { |
|
126 |
org.gvsig.andami.ui.mdiManager.IWindow window = PluginServices.getMDIManager().getActiveWindow(); |
|
127 |
table=(FeatureTableDocumentPanel)window; |
|
128 |
if (!table.getModel().getStore().isEditing()){ |
|
129 |
int option=JOptionPane.showConfirmDialog((Component)PluginServices.getMainFrame(), PluginServices.getText(this,"is_not_in_editing_are_you_sure")); |
|
130 |
if (option != JOptionPane.OK_OPTION){ |
|
131 |
return; |
|
132 |
} |
|
133 |
} |
|
134 |
if (operators.isEmpty()) { |
|
135 |
PluginServices.cancelableBackgroundExecution(new EvalOperatorsTask()); |
|
136 |
}else{ |
|
137 |
EvalExpressionDialog eed=new EvalExpressionDialog(table,interpreter,operators); |
|
138 |
PluginServices.getMDIManager().addWindow(eed); |
|
139 |
} |
|
140 |
} |
|
141 |
} |
|
142 |
public void postInitialize() { |
|
143 |
|
|
144 |
} |
|
145 |
|
|
146 |
public boolean isEnabled() { |
|
147 |
org.gvsig.andami.ui.mdiManager.IWindow window = PluginServices.getMDIManager().getActiveWindow(); |
|
148 |
if (window instanceof FeatureTableDocumentPanel) { |
|
149 |
FeatureTableDocumentPanel table=(FeatureTableDocumentPanel)window; |
|
150 |
int columnSelected = 0; |
|
151 |
try { |
|
152 |
columnSelected = table.getTablePanel().getTable().getSelectedColumnCount(); |
|
153 |
} catch (DataException e) { |
|
154 |
logger.error("Can't get selected column in table.",e); |
|
155 |
} |
|
156 |
if (columnSelected > 0 && table.getModel().getStore().isEditing()) { |
|
157 |
return true; |
|
158 |
} |
|
159 |
} |
|
160 |
return false; |
|
161 |
} |
|
162 |
|
|
163 |
public boolean isVisible() { |
|
164 |
org.gvsig.andami.ui.mdiManager.IWindow window = PluginServices.getMDIManager().getActiveWindow(); |
|
165 |
if (window instanceof FeatureTableDocumentPanel) { |
|
166 |
return true; |
|
167 |
} |
|
168 |
return false; |
|
169 |
} |
|
170 |
private void registerOperations() { |
|
171 |
ExtensionPoint extensionPoints = ToolsLocator.getExtensionPointManager().add( |
|
172 |
"cad_editing_properties_pages", ""); |
|
173 |
extensionPoints.append("fieldExpression", "",new FieldExpressionPage()); |
|
174 |
|
|
175 |
extensionPoints = ToolsLocator.getExtensionPointManager().add( |
|
176 |
"ColumnOperators", ""); |
|
177 |
extensionPoints.append(Abs.class.toString(),"",Abs.class); |
|
178 |
extensionPoints.append(Acos.class.toString(),"",Acos.class); |
|
179 |
extensionPoints.append(After.class.toString(),"",After.class); |
|
180 |
extensionPoints.append(Area.class.toString(),"",Area.class); |
|
181 |
extensionPoints.append(Asin.class.toString(),"",Asin.class); |
|
182 |
extensionPoints.append(Atan.class.toString(),"",Atan.class); |
|
183 |
extensionPoints.append(Acos.class.toString(),"",Acos.class); |
|
184 |
extensionPoints.append(Before.class.toString(),"",Before.class); |
|
185 |
extensionPoints.append(Ceil.class.toString(),"",Ceil.class); |
|
186 |
extensionPoints.append(Cos.class.toString(),"",Cos.class); |
|
187 |
extensionPoints.append(DateToString.class.toString(),"",DateToString.class); |
|
188 |
extensionPoints.append(Distinct.class.toString(),"",Distinct.class); |
|
189 |
extensionPoints.append(Division.class.toString(),"",Division.class); |
|
190 |
extensionPoints.append(E.class.toString(),"",E.class); |
|
191 |
extensionPoints.append(EndsWith.class.toString(),"",EndsWith.class); |
|
192 |
extensionPoints.append(Equal.class.toString(),"",Equal.class); |
|
193 |
extensionPoints.append(Equals.class.toString(),"",Equals.class); |
|
194 |
extensionPoints.append(Exp.class.toString(),"",Exp.class); |
|
195 |
extensionPoints.append(Floor.class.toString(),"",Floor.class); |
|
196 |
extensionPoints.append(Geometry.class.toString(),"",Geometry.class); |
|
197 |
extensionPoints.append(GetTimeDate.class.toString(),"",GetTimeDate.class); |
|
198 |
extensionPoints.append(IndexOf.class.toString(),"",IndexOf.class); |
|
199 |
extensionPoints.append(IsNumber.class.toString(),"",IsNumber.class); |
|
200 |
extensionPoints.append(LastIndexOf.class.toString(),"",LastIndexOf.class); |
|
201 |
extensionPoints.append(Length.class.toString(),"",Length.class); |
|
202 |
extensionPoints.append(LessEquals.class.toString(),"",LessEquals.class); |
|
203 |
extensionPoints.append(LessThan.class.toString(),"",LessThan.class); |
|
204 |
extensionPoints.append(Log.class.toString(),"",Log.class); |
|
205 |
extensionPoints.append(Max.class.toString(),"",Max.class); |
|
206 |
extensionPoints.append(Min.class.toString(),"",Min.class); |
|
207 |
extensionPoints.append(Minus.class.toString(),"",Minus.class); |
|
208 |
extensionPoints.append(MoreEquals.class.toString(),"",MoreEquals.class); |
|
209 |
extensionPoints.append(MoreThan.class.toString(),"",MoreThan.class); |
|
210 |
extensionPoints.append(Perimeter.class.toString(),"",Perimeter.class); |
|
211 |
extensionPoints.append(Pi.class.toString(),"",Pi.class); |
|
212 |
extensionPoints.append(Plus.class.toString(),"",Plus.class); |
|
213 |
extensionPoints.append(PointX.class.toString(),"",PointX.class); |
|
214 |
extensionPoints.append(PointY.class.toString(),"",PointY.class); |
|
215 |
extensionPoints.append(Pow.class.toString(),"",Pow.class); |
|
216 |
extensionPoints.append(Random.class.toString(),"",Random.class); |
|
217 |
|
|
218 |
// Added November 2013 |
|
219 |
extensionPoints.append(RecordIndex.class.toString(),"",RecordIndex.class); |
|
220 |
|
|
221 |
extensionPoints.append(Replace.class.toString(),"",Replace.class); |
|
222 |
extensionPoints.append(Round.class.toString(),"",Round.class); |
|
223 |
extensionPoints.append(SetTimeDate.class.toString(),"",SetTimeDate.class); |
|
224 |
extensionPoints.append(Sin.class.toString(),"",Sin.class); |
|
225 |
extensionPoints.append(Sqrt.class.toString(),"",Sqrt.class); |
|
226 |
extensionPoints.append(StartsWith.class.toString(),"",StartsWith.class); |
|
227 |
extensionPoints.append(SubString.class.toString(),"",SubString.class); |
|
228 |
extensionPoints.append(Tan.class.toString(),"",Tan.class); |
|
229 |
extensionPoints.append(Times.class.toString(),"",Times.class); |
|
230 |
extensionPoints.append(ToDate.class.toString(),"",ToDate.class); |
|
231 |
extensionPoints.append(ToDegrees.class.toString(),"",ToDegrees.class); |
|
232 |
extensionPoints.append(ToLowerCase.class.toString(),"",ToLowerCase.class); |
|
233 |
extensionPoints.append(ToNumber.class.toString(),"",ToNumber.class); |
|
234 |
extensionPoints.append(ToRadians.class.toString(),"",ToRadians.class); |
|
235 |
extensionPoints.append(ToString.class.toString(),"",ToString.class); |
|
236 |
extensionPoints.append(ToUpperCase.class.toString(),"",ToUpperCase.class); |
|
237 |
extensionPoints.append(Trim.class.toString(),"",Trim.class); |
|
238 |
} |
|
239 |
|
|
240 |
private void registerIcons(){ |
|
241 |
IconThemeHelper.registerIcon("action", "table-expression-field", this); |
|
242 |
IconThemeHelper.registerIcon("preferences", "expression-field-preferences", this); |
|
243 |
} |
|
244 |
|
|
245 |
private class EvalOperatorsTask extends AbstractMonitorableTask{ |
|
246 |
private ExtensionPoint extensionPoint; |
|
247 |
public EvalOperatorsTask(){ |
|
248 |
setInitialStep(0); |
|
249 |
setDeterminatedProcess(true); |
|
250 |
setStatusMessage(PluginServices.getText(this, "charging_operators")+"..."); |
|
251 |
this.extensionPoint = ToolsLocator.getExtensionPointManager().get( |
|
252 |
"ColumnOperators"); |
|
253 |
setFinalStep(extensionPoint.getCount()+1); |
|
254 |
} |
|
255 |
public void run() throws Exception { |
|
256 |
NotificationManager.addInfo(PluginServices.getText(this,"charging_operators")); |
|
257 |
long t1=System.currentTimeMillis(); |
|
258 |
Iterator iterator = extensionPoint.iterator(); |
|
259 |
while (iterator.hasNext()) { |
|
260 |
try { |
|
261 |
if (isCanceled()) |
|
262 |
return; |
|
263 |
org.gvsig.tools.extensionpoint.ExtensionPoint.Extension obj= (org.gvsig.tools.extensionpoint.ExtensionPoint.Extension)iterator.next(); |
|
264 |
IOperator operator = (IOperator)extensionPoint.create(obj.getName()); |
|
265 |
|
|
266 |
operator.eval(interpreter); |
|
267 |
operators.add(operator); |
|
268 |
reportStep(); |
|
269 |
setNote(operator.getClass().getName()); |
|
270 |
} catch (InstantiationException e) { |
|
271 |
e.printStackTrace(); |
|
272 |
} catch (IllegalAccessException e) { |
|
273 |
e.printStackTrace(); |
|
274 |
} catch (ClassCastException e) { |
|
275 |
e.printStackTrace(); |
|
276 |
} |
|
277 |
} |
|
278 |
long t2=System.currentTimeMillis(); |
|
279 |
System.out.println("Tiempo en evaluar y crear del extension point = "+(t2-t1) ); |
|
280 |
long t3=System.currentTimeMillis(); |
|
281 |
System.out.println("Tiempo en a?adir los operadores correctos = "+(t3-t2) ); |
|
282 |
reportStep(); |
|
283 |
} |
|
284 |
public void finished() { |
|
285 |
if (isCanceled()) |
|
286 |
return; |
|
287 |
NotificationManager.addInfo(PluginServices.getText(this,"charged_operators")); |
|
288 |
EvalExpressionDialog eed=new EvalExpressionDialog(table,interpreter,operators); |
|
289 |
PluginServices.getMDIManager().addWindow(eed); |
|
290 |
} |
|
291 |
|
|
292 |
} |
|
293 |
} |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/java/org/gvsig/expressionfield/gui/FieldExpressionPage.java | ||
---|---|---|
1 |
/******************************************************************************* |
|
2 |
* |
|
3 |
* gvSIG. Desktop Geographic Information System. |
|
4 |
* |
|
5 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
* |
|
7 |
* This program is free software; you can redistribute it and/or |
|
8 |
* modify it under the terms of the GNU General Public License |
|
9 |
* as published by the Free Software Foundation; either version 3 |
|
10 |
* of the License, or (at your option) any later version. |
|
11 |
* |
|
12 |
* This program is distributed in the hope that it will be useful, |
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
* GNU General Public License for more details. |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License |
|
18 |
* along with this program; if not, write to the Free Software |
|
19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
* MA 02110-1301, USA. |
|
21 |
* |
|
22 |
* For any additional information, do not hesitate to contact us |
|
23 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
* |
|
25 |
*******************************************************************************/ |
|
26 |
package org.gvsig.expressionfield.gui; |
|
27 |
|
|
28 |
import java.awt.event.MouseEvent; |
|
29 |
import java.awt.event.MouseListener; |
|
30 |
import java.util.prefs.Preferences; |
|
31 |
|
|
32 |
import javax.swing.ImageIcon; |
|
33 |
import javax.swing.JCheckBox; |
|
34 |
import javax.swing.JPanel; |
|
35 |
import javax.swing.JTextArea; |
|
36 |
import javax.swing.JTextField; |
|
37 |
|
|
38 |
import org.gvsig.andami.IconThemeHelper; |
|
39 |
import org.gvsig.andami.PluginServices; |
|
40 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
|
41 |
import org.gvsig.andami.preferences.StoreException; |
|
42 |
|
|
43 |
|
|
44 |
/** |
|
45 |
* @author Vicente Caballero Navarro |
|
46 |
*/ |
|
47 |
public class FieldExpressionPage extends AbstractPreferencePage { |
|
48 |
private static Preferences prefs = Preferences.userRoot().node( "fieldExpressionOptions" ); |
|
49 |
private JTextArea jTextArea = null; |
|
50 |
private JTextField txtLimit; |
|
51 |
private JCheckBox ckLimit=null; |
|
52 |
private ImageIcon icon; |
|
53 |
|
|
54 |
public FieldExpressionPage() { |
|
55 |
super(); |
|
56 |
|
|
57 |
icon = IconThemeHelper.getImageIcon("expression-field-preferences"); |
|
58 |
|
|
59 |
addComponent(getJTextArea()); |
|
60 |
|
|
61 |
addComponent(PluginServices.getText(this, "limit_rows_in_memory") + ":", |
|
62 |
txtLimit = new JTextField("", 15)); |
|
63 |
addComponent(ckLimit = new JCheckBox(PluginServices.getText(this, "without_limit"))); |
|
64 |
ckLimit.addMouseListener(new MouseListener() { |
|
65 |
public void mouseClicked(MouseEvent e) { |
|
66 |
if (ckLimit.isSelected()) { |
|
67 |
txtLimit.setText(PluginServices.getText(this, "without_limit")); |
|
68 |
}else { |
|
69 |
if (txtLimit.getText().equals(PluginServices.getText(this, "without_limit"))) |
|
70 |
txtLimit.setText("500000"); |
|
71 |
} |
|
72 |
|
|
73 |
} |
|
74 |
public void mouseEntered(MouseEvent e) { |
|
75 |
} |
|
76 |
public void mouseExited(MouseEvent e) { |
|
77 |
} |
|
78 |
public void mousePressed(MouseEvent e) { |
|
79 |
} |
|
80 |
public void mouseReleased(MouseEvent e) { |
|
81 |
} |
|
82 |
|
|
83 |
}); |
|
84 |
} |
|
85 |
|
|
86 |
public void initializeValues() { |
|
87 |
int limit = prefs.getInt("limit_rows_in_memory",-1); |
|
88 |
if (limit==-1) { |
|
89 |
ckLimit.setSelected(true); |
|
90 |
txtLimit.setText(PluginServices.getText(this,"without_limit")); |
|
91 |
}else { |
|
92 |
ckLimit.setSelected(false); |
|
93 |
txtLimit.setText(String.valueOf(limit)); |
|
94 |
} |
|
95 |
} |
|
96 |
|
|
97 |
public String getID() { |
|
98 |
return this.getClass().getName(); |
|
99 |
} |
|
100 |
|
|
101 |
public String getTitle() { |
|
102 |
return PluginServices.getText(this, "limit_rows_in_memory"); |
|
103 |
} |
|
104 |
|
|
105 |
public JPanel getPanel() { |
|
106 |
return this; |
|
107 |
} |
|
108 |
|
|
109 |
public void storeValues() throws StoreException { |
|
110 |
int limit; |
|
111 |
try{ |
|
112 |
if (ckLimit.isSelected()) { |
|
113 |
limit=-1; |
|
114 |
}else { |
|
115 |
// if (txtLimit.getText().equals(PluginServices.getText(this,"without_limit"))) { |
|
116 |
// limit=-1; |
|
117 |
// }else { |
|
118 |
limit=Integer.parseInt(txtLimit.getText()); |
|
119 |
} |
|
120 |
}catch (Exception e) { |
|
121 |
throw new StoreException(PluginServices.getText(this,"limit_rows_in_memory")+PluginServices.getText(this,"error")); |
|
122 |
} |
|
123 |
prefs.putInt("limit_rows_in_memory", limit); |
|
124 |
} |
|
125 |
|
|
126 |
public void initializeDefaults() { |
|
127 |
int limit=prefs.getInt("limit_rows_in_memory",-1); |
|
128 |
if (limit==-1) { |
|
129 |
ckLimit.setSelected(true); |
|
130 |
txtLimit.setText(PluginServices.getText(this,"without_limit")); |
|
131 |
}else { |
|
132 |
ckLimit.setSelected(false); |
|
133 |
txtLimit.setText(String.valueOf(limit)); |
|
134 |
} |
|
135 |
} |
|
136 |
|
|
137 |
public ImageIcon getIcon() { |
|
138 |
return icon; |
|
139 |
} |
|
140 |
/** |
|
141 |
* This method initializes jTextArea |
|
142 |
* |
|
143 |
* @return javax.swing.JTextArea |
|
144 |
*/ |
|
145 |
private JTextArea getJTextArea() { |
|
146 |
if (jTextArea == null) { |
|
147 |
jTextArea = new JTextArea(); |
|
148 |
jTextArea.setBounds(new java.awt.Rectangle(13,7,285,57)); |
|
149 |
jTextArea.setForeground(java.awt.Color.black); |
|
150 |
jTextArea.setBackground(java.awt.SystemColor.control); |
|
151 |
jTextArea.setRows(3); |
|
152 |
jTextArea.setWrapStyleWord(true); |
|
153 |
jTextArea.setLineWrap(true); |
|
154 |
jTextArea.setEditable(false); |
|
155 |
jTextArea.setText(PluginServices.getText(this,"specifies_the_limit_rows_in_memory_when_the_program_eval_the_expression")); |
|
156 |
} |
|
157 |
return jTextArea; |
|
158 |
} |
|
159 |
|
|
160 |
public boolean isValueChanged() { |
|
161 |
return super.hasChanged(); |
|
162 |
} |
|
163 |
|
|
164 |
public void setChangesApplied() { |
|
165 |
setChanged(false); |
|
166 |
} |
|
167 |
} |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/java/org/gvsig/expressionfield/project/documents/table/GraphicOperator.java | ||
---|---|---|
1 |
/******************************************************************************* |
|
2 |
* |
|
3 |
* gvSIG. Desktop Geographic Information System. |
|
4 |
* |
|
5 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
* |
|
7 |
* This program is free software; you can redistribute it and/or |
|
8 |
* modify it under the terms of the GNU General Public License |
|
9 |
* as published by the Free Software Foundation; either version 3 |
|
10 |
* of the License, or (at your option) any later version. |
|
11 |
* |
|
12 |
* This program is distributed in the hope that it will be useful, |
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
* GNU General Public License for more details. |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License |
|
18 |
* along with this program; if not, write to the Free Software |
|
19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
* MA 02110-1301, USA. |
|
21 |
* |
|
22 |
* For any additional information, do not hesitate to contact us |
|
23 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
* |
|
25 |
*******************************************************************************/ |
|
26 |
package org.gvsig.expressionfield.project.documents.table; |
|
27 |
|
|
28 |
import java.awt.geom.PathIterator; |
|
29 |
import java.util.ArrayList; |
|
30 |
|
|
31 |
import org.gvsig.fmap.geom.Geometry; |
|
32 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
33 |
import org.gvsig.fmap.geom.GeometryManager; |
|
34 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
35 |
|
|
36 |
/** |
|
37 |
* @author Vicente Caballero Navarro |
|
38 |
*/ |
|
39 |
public abstract class GraphicOperator extends AbstractOperator{ |
|
40 |
private FLyrVect lv=null; |
|
41 |
private static GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
|
42 |
|
|
43 |
public void setLayer(FLyrVect lv) { |
|
44 |
this.lv=lv; |
|
45 |
} |
|
46 |
public FLyrVect getLayer() { |
|
47 |
return lv; |
|
48 |
} |
|
49 |
public abstract double process(org.gvsig.fmap.dal.feature.Feature feature); |
|
50 |
protected ArrayList getXY(Geometry geometry) { |
|
51 |
ArrayList xs = new ArrayList(); |
|
52 |
ArrayList ys = new ArrayList(); |
|
53 |
ArrayList parts=new ArrayList(); |
|
54 |
double[] theData = new double[6]; |
|
55 |
|
|
56 |
//double[] aux = new double[6]; |
|
57 |
PathIterator theIterator; |
|
58 |
int theType; |
|
59 |
int numParts = 0; |
|
60 |
theIterator = geometry.getPathIterator(null, geomManager.getFlatness()); //, flatness); |
|
61 |
boolean isClosed = false; |
|
62 |
while (!theIterator.isDone()) { |
|
63 |
theType = theIterator.currentSegment(theData); |
|
64 |
|
|
65 |
switch (theType) { |
|
66 |
case PathIterator.SEG_MOVETO: |
|
67 |
if (numParts==0){ |
|
68 |
xs.add(new Double(theData[0])); |
|
69 |
ys.add(new Double(theData[1])); |
|
70 |
}else{ |
|
71 |
if (!isClosed){ |
|
72 |
Double[] x = (Double[]) xs.toArray(new Double[0]); |
|
73 |
Double[] y = (Double[]) ys.toArray(new Double[0]); |
|
74 |
parts.add(new Double[][] { x, y }); |
|
75 |
xs.clear(); |
|
76 |
ys.clear(); |
|
77 |
} |
|
78 |
xs.add(new Double(theData[0])); |
|
79 |
ys.add(new Double(theData[1])); |
|
80 |
} |
|
81 |
numParts++; |
|
82 |
isClosed = false; |
|
83 |
break; |
|
84 |
case PathIterator.SEG_LINETO: |
|
85 |
isClosed=false; |
|
86 |
xs.add(new Double(theData[0])); |
|
87 |
ys.add(new Double(theData[1])); |
|
88 |
break; |
|
89 |
case PathIterator.SEG_CLOSE: |
|
90 |
isClosed=true; |
|
91 |
xs.add(new Double(theData[0])); |
|
92 |
ys.add(new Double(theData[1])); |
|
93 |
Double[] x = (Double[]) xs.toArray(new Double[0]); |
|
94 |
Double[] y = (Double[]) ys.toArray(new Double[0]); |
|
95 |
parts.add(new Double[][] { x, y }); |
|
96 |
xs.clear(); |
|
97 |
ys.clear(); |
|
98 |
break; |
|
99 |
} //end switch |
|
100 |
|
|
101 |
theIterator.next(); |
|
102 |
} //end while loop |
|
103 |
|
|
104 |
if (!isClosed){ |
|
105 |
isClosed=true; |
|
106 |
xs.add(new Double(theData[0])); |
|
107 |
ys.add(new Double(theData[1])); |
|
108 |
Double[] x = (Double[]) xs.toArray(new Double[0]); |
|
109 |
Double[] y = (Double[]) ys.toArray(new Double[0]); |
|
110 |
parts.add(new Double[][] { x, y }); |
|
111 |
xs.clear(); |
|
112 |
ys.clear(); |
|
113 |
} |
|
114 |
return parts; |
|
115 |
|
|
116 |
} |
|
117 |
|
|
118 |
} |
org.gvsig.expressionfield/tags/org.gvsig.expressionfield-2.0.1/src/main/java/org/gvsig/expressionfield/project/documents/table/operators/DateToString.java | ||
---|---|---|
1 |
/******************************************************************************* |
|
2 |
* |
|
3 |
* gvSIG. Desktop Geographic Information System. |
|
4 |
* |
|
5 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
* |
|
7 |
* This program is free software; you can redistribute it and/or |
|
8 |
* modify it under the terms of the GNU General Public License |
|
9 |
* as published by the Free Software Foundation; either version 3 |
|
10 |
* of the License, or (at your option) any later version. |
|
11 |
* |
|
12 |
* This program is distributed in the hope that it will be useful, |
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
* GNU General Public License for more details. |
Also available in: Unified diff