Revision 1320
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/pom.xml | ||
---|---|---|
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.educa.portableview</artifactId> |
|
6 |
<version>1.0.204</version> |
|
7 |
</parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.educa.portableview.swing</artifactId> |
|
10 |
<packaging>pom</packaging> |
|
11 |
<name>org.gvsig.educa.portableview.swing</name> |
|
12 |
|
|
13 |
<modules> |
|
14 |
<module>org.gvsig.educa.portableview.swing.api</module> |
|
15 |
<module>org.gvsig.educa.portableview.swing.impl</module> |
|
16 |
</modules> |
|
17 |
</project> |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/resources/org/gvsig/educa/portableview/swing/impl/i18n/text_it.properties | ||
---|---|---|
1 |
#text_it.properties |
|
2 |
accept=Accetta |
|
3 |
add=Aggiungi |
|
4 |
add_layer_group=Aggiungi gruppo di layer |
|
5 |
add_layers=Aggiungi layer |
|
6 |
are_you_sure_to_remove_selected_layers=Sei sicuro di voler rimuovere i layer selezionati? |
|
7 |
cancel=Cancella |
|
8 |
clean_messages=Cancella messaggi |
|
9 |
current_values_are_not_valid=I valori attuali non sono validi |
|
10 |
default=Predefinito |
|
11 |
edit_source_properties=Edita le propriet\u00E0 della fonte di dati |
|
12 |
explorer=Esploratore di fonte di dati |
|
13 |
explorer_parameters=Parametri dell'esploratore |
|
14 |
explorer_parameters_not_valid=Parametri dell'esploratore non validi |
|
15 |
get_layer_group_name=Introdurre il nome del gruppo di layer |
|
16 |
layer_name=Nome |
|
17 |
layer_properties=Propriet\u00E0 del layer |
|
18 |
layer_show_in_toc=Mostra nella TOC |
|
19 |
layer_visible=Visibile |
|
20 |
list_data_explorer=Elenca fonti di dati |
|
21 |
list_sources=Elenca fonti di dati |
|
22 |
new=Nuovo |
|
23 |
no_layers_added=Nessun layer \u00E8 stato aggiunto |
|
24 |
no_layers_to_add=Nessun layer da aggiungere |
|
25 |
open_portable_view=Apri mappa tematica |
|
26 |
parameters=Parametri |
|
27 |
problem_adding_group=Problema nell'aggiunta del gruppo di layer |
|
28 |
problems_opening_explorer=Problema nell'apertura dell'esploratore |
|
29 |
remove_layers=Rimuovi layer |
|
30 |
select_layer_show_properties=Seleziona layer per mostrare le sue propriet\u00E0 |
|
31 |
select_layers_to_remove=Seleziona layer da rimuovere |
|
32 |
select_only_one_layer=Seleziona un unico layer |
|
33 |
source_parameters=Parametri della fonte di dati |
|
34 |
portable_view_compilation_editor=Editor di compilazione di mappa tematica |
|
35 |
portable_view_description=Descrizione |
|
36 |
portable_view_id=Identificatore |
|
37 |
portable_view_information=Informazioni |
|
38 |
portable_view_layers=Layer della mappa tematica |
|
39 |
portable_view_name=Nome |
|
40 |
portable_view_validation=Validazione della mappa tematica |
|
41 |
portable_view_version=Versione |
|
42 |
updateing_compilation_info=Aggiornamento delle informazioni di compilazione |
|
43 |
validate=Valida |
|
44 |
version=Versione |
|
45 |
version_must_be_a_integer=La versione deve essere un intero |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/resources/org/gvsig/educa/portableview/swing/impl/i18n/text.properties | ||
---|---|---|
1 |
#text.properties |
|
2 |
accept=Aceptar |
|
3 |
add=A\u00F1adir |
|
4 |
add_layer_group=A\u00F1adir agrupaci\u00F3n de capas |
|
5 |
add_layers=A\u00F1adir capas |
|
6 |
are_you_sure_to_remove_selected_layers=\u00BFEst\u00E1 seguro de eliminar las capas seleccionadas? |
|
7 |
cancel=Cancelar |
|
8 |
clean_messages=Limpiar mensajes |
|
9 |
current_values_are_not_valid=Los valores actuales no son v\u00E1lidos |
|
10 |
default=Por defecto |
|
11 |
edit_source_properties=Editar propiedades de la fuente de datos |
|
12 |
explorer=Explorador de fuentes de datos |
|
13 |
explorer_parameters=Par\u00E1metros del explorador |
|
14 |
explorer_parameters_not_valid=Par\u00E1metro del explorador no v\u00E1lidos |
|
15 |
get_layer_group_name=Introduzca el nombre para la agrupaci\u00F3n |
|
16 |
layer_name=Nombre |
|
17 |
layer_properties=Propiedades de capa |
|
18 |
layer_show_in_toc=Se muestra en el TOC |
|
19 |
layer_visible=Visible |
|
20 |
list_data_explorer=Listar fuentes de datos |
|
21 |
list_sources=Listar fuentes |
|
22 |
new=nuevo |
|
23 |
no_layers_added=No se han a\u00F1adido capas |
|
24 |
no_layers_to_add=No hay capas para a\u00F1adir |
|
25 |
open_portable_view=Abrir Vista Portable |
|
26 |
parameters=Par\u00E1metros |
|
27 |
problem_adding_group=Se ha encontrado un problema a\u00F1adiendo la agrupaci\u00F3n |
|
28 |
problems_opening_explorer=Se han encontrado problemas abriendo el explorador |
|
29 |
remove_layers=Eliminar capas |
|
30 |
select_layer_show_properties=Seleccione una capa para mostrar sus propiedades |
|
31 |
select_layers_to_remove=Seleccione las capas a eliminar |
|
32 |
select_only_one_layer=Seleccione una \u00FAnica capa |
|
33 |
source_parameters=Par\u00E1metros de la fuente |
|
34 |
portable_view_compilation_editor=Editor de compilaci\u00F3n de la vista portable |
|
35 |
portable_view_description=Descripci\u00F3n |
|
36 |
portable_view_id=Identificador |
|
37 |
portable_view_information=Informaci\u00F3n de la vista portable |
|
38 |
portable_view_layers=Capas de la vista portable |
|
39 |
portable_view_name=Nombre |
|
40 |
portable_view_validation=Validaci\u00F3n de la vista portable |
|
41 |
portable_view_version=Versi\u00F3n |
|
42 |
updateing_compilation_info=Actualizando datos de la compilaci\u00F3n |
|
43 |
validate=Validar |
|
44 |
version=Versi\u00F3n |
|
45 |
version_must_be_a_integer=Versi\u00F3n debe ser un entero |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/resources/org/gvsig/educa/portableview/swing/impl/i18n/text_en.properties | ||
---|---|---|
1 |
#text_en.properties |
|
2 |
accept=Accept |
|
3 |
add=Add |
|
4 |
add_layer_group=Add layer group |
|
5 |
add_layers=Add layers |
|
6 |
are_you_sure_to_remove_selected_layers=Are you sure to remove selected layers? |
|
7 |
cancel=Cancel |
|
8 |
clean_messages=Clean messages |
|
9 |
current_values_are_not_valid=Current values are not valid\n |
|
10 |
default=Default |
|
11 |
edit_source_properties=Edit source properties |
|
12 |
explorer=Sources Explorer |
|
13 |
explorer_parameters=Explorer parameters |
|
14 |
explorer_parameters_not_valid=Explorer parameters are not valid |
|
15 |
get_layer_group_name=Input layer group name |
|
16 |
layer_name=Name |
|
17 |
layer_properties=Layer properties |
|
18 |
layer_show_in_toc=Show in TOC |
|
19 |
layer_visible=Visible |
|
20 |
list_data_explorer=List sources |
|
21 |
list_sources=List sources |
|
22 |
new=New |
|
23 |
no_layers_added=None layer has been added |
|
24 |
no_layers_to_add=No layers to add |
|
25 |
open_portable_view=Open Portable View |
|
26 |
parameters=Parameters |
|
27 |
problem_adding_group=Problems found adding layer group |
|
28 |
problems_opening_explorer=Problems found opening explorer |
|
29 |
remove_layers=Remove layers |
|
30 |
select_layer_show_properties=Select a layer to show its properties |
|
31 |
select_layers_to_remove=Select the layers to remove |
|
32 |
select_only_one_layer=Select just one layer |
|
33 |
source_parameters=Source parameters |
|
34 |
portable_view_compilation_editor=Portable View Compilation Editor |
|
35 |
portable_view_description=Description |
|
36 |
portable_view_id=Identifier |
|
37 |
portable_view_information=Information |
|
38 |
portable_view_layers=Portable View Layers |
|
39 |
portable_view_name=Name |
|
40 |
portable_view_validation=Portable View Validation |
|
41 |
portable_view_version=Version |
|
42 |
updateing_compilation_info=Updating compilation information |
|
43 |
validate=Validate |
|
44 |
version=Version |
|
45 |
version_must_be_a_integer=Version must be an integer |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/resources/org/gvsig/educa/portableview/swing/impl/i18n/text_pt_BR.properties | ||
---|---|---|
1 |
#text_pt_BR.properties |
|
2 |
accept=Aceitar |
|
3 |
add=Adicionar |
|
4 |
add_layer_group=Adicionar grupo de camadas |
|
5 |
add_layers=Adicionar camadas |
|
6 |
are_you_sure_to_remove_selected_layers=Deseja realmente remover as camadas selecionadas? |
|
7 |
cancel=Cancelar |
|
8 |
clean_messages=Apagar mensagens |
|
9 |
current_values_are_not_valid=Valores inv\u00E1lidos |
|
10 |
default=Default |
|
11 |
edit_source_properties=Editar propriedades da fonte de dados |
|
12 |
explorer=Explorador de fonte de dados |
|
13 |
explorer_parameters=Explorador de par\u00E2metros |
|
14 |
explorer_parameters_not_valid=Explorador de par\u00E2metros inv\u00E1lido |
|
15 |
get_layer_group_name=Forne\u00E7a um nome para o grupo de camadas |
|
16 |
layer_name=Nome da camada |
|
17 |
layer_properties=Propriedades da camada |
|
18 |
layer_show_in_toc=Camada vis\u00EDvel no TOC |
|
19 |
layer_visible=Camada vis\u00EDvel |
|
20 |
list_data_explorer=Listar fontes de dados |
|
21 |
list_sources=Listar fontes |
|
22 |
new=Novo |
|
23 |
no_layers_added=Nenhuma camada adicionada |
|
24 |
no_layers_to_add=Nenhuma camada a adicionar |
|
25 |
open_portable_view=Abrir mapa tem\u00E1tico |
|
26 |
parameters=Par\u00E2metros |
|
27 |
problem_adding_group=Problema ao adicionar grupo |
|
28 |
problems_opening_explorer=Problemas ao abrir o explorador |
|
29 |
remove_layers=Remover camadas |
|
30 |
select_layer_show_properties=Selecione uma camada para mostrar suas propriedades |
|
31 |
select_layers_to_remove=Selecione as camadas a remover |
|
32 |
select_only_one_layer=Selecione apenas uma camada |
|
33 |
source_parameters=Par\u00E2metros da fonte |
|
34 |
portable_view_compilation_editor=Editor de compila\u00E7\u00E3o de mapa tem\u00E1tico |
|
35 |
portable_view_description=Descri\u00E7\u00E3o do mapa tem\u00E1tico |
|
36 |
portable_view_id=Identificador do mapa tem\u00E1tico |
|
37 |
portable_view_information=Informa\u00E7\u00E3o do mapa tem\u00E1tico |
|
38 |
portable_view_layers=Camadas do mapa tem\u00E1tico |
|
39 |
portable_view_name=Nome do mapa tem\u00E1tico |
|
40 |
portable_view_validation=Valida\u00E7\u00E3o do mapa tem\u00E1tico |
|
41 |
portable_view_version=Vers\u00E3o do mapa tem\u00E1tico |
|
42 |
updateing_compilation_info=Atualizadno dados da compila\u00E7\u00E3o |
|
43 |
validate=Validar |
|
44 |
version=Vers\u00E3o |
|
45 |
version_must_be_a_integer=Vers\u00E3o deve ser n\u00FAmero inteiro |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/resources/org/gvsig/educa/portableview/swing/impl/i18n/text_ru.properties | ||
---|---|---|
1 |
#text_ru.properties |
|
2 |
accept=\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C |
|
3 |
add=\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C |
|
4 |
add_layer_group=\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u0443 \u0441\u043B\u043E\u0435\u0432 |
|
5 |
add_layers=\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u043B\u043E\u0438 |
|
6 |
are_you_sure_to_remove_selected_layers=\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u0441\u043B\u043E\u0438? |
|
7 |
cancel=\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C |
|
8 |
clean_messages=\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F |
|
9 |
current_values_are_not_valid=\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0442\u0435\u043A\u0443\u0449\u0435\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 |
|
10 |
default=\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E |
|
11 |
edit_source_properties=\u0418\u0437\u043C\u0435\u043D\u0438\u0442 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 |
|
12 |
explorer=\u041C\u0435\u043D\u0435\u0434\u0436\u0435\u0440 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u0434\u0430\u043D\u043D\u044B\u0445 |
|
13 |
explorer_parameters=\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B |
|
14 |
explorer_parameters_not_valid=\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B |
|
15 |
get_layer_group_name=\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043C\u044F \u0433\u0440\u0443\u043F\u043F\u044B \u0441\u043B\u043E\u0435\u0432 |
|
16 |
layer_name=\u0418\u043C\u044F |
|
17 |
layer_properties=\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u043B\u043E\u044F |
|
18 |
layer_show_in_toc=\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0432 \u0422\u041E\u0421 |
|
19 |
layer_visible=\u0412\u0438\u0434\u0438\u043C\u044B\u0439 |
|
20 |
list_data_explorer=\u0421\u043F\u0438\u0441\u043E\u043A \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u0434\u0430\u043D\u043D\u044B\u0445 |
|
21 |
list_sources=\u0421\u043F\u0438\u0441\u043E\u043A \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 |
|
22 |
new=\u041D\u043E\u0432\u044B\u0439 |
|
23 |
no_layers_added=\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0441\u043B\u043E\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442 |
|
24 |
no_layers_to_add=\u041D\u0435\u0442 \u0441\u043B\u043E\u0435\u0432 \u0434\u043B\u044F \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u044F |
|
25 |
open_portable_view=\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0422\u0435\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u043A\u0430\u0440\u0442\u0443 |
|
26 |
parameters=\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B |
|
27 |
problem_adding_group=\u041F\u0440\u0438 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0433\u0440\u0443\u043F\u043F\u044B \u0441\u043B\u043E\u0435\u0432 \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 |
|
28 |
problems_opening_explorer=\u041F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440\u0430 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 |
|
29 |
remove_layers=\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u043B\u043E\u0438 |
|
30 |
select_layer_show_properties=\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043B\u043E\u0439, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0435\u0433\u043E \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430 |
|
31 |
select_layers_to_remove=\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043B\u043E\u0438 \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F |
|
32 |
select_only_one_layer=\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0441\u043B\u043E\u0439 |
|
33 |
source_parameters=\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0430 |
|
34 |
portable_view_compilation_editor=\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440 \u043A\u043E\u043C\u043F\u0438\u043B\u044F\u0446\u0438\u0438 \u0422\u0435\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043A\u0430\u0440\u0442\u044B |
|
35 |
portable_view_description=\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 |
|
36 |
portable_view_id=\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 |
|
37 |
portable_view_information=\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F |
|
38 |
portable_view_layers=\u0421\u043B\u043E\u0438 \u0422\u0435\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043A\u0430\u0440\u0442\u044B |
|
39 |
portable_view_name=\u0418\u043C\u044F |
|
40 |
portable_view_validation=\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0422\u0435\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043A\u0430\u0440\u0442\u044B |
|
41 |
portable_view_version=\u0412\u0435\u0440\u0441\u0438\u044F |
|
42 |
updateing_compilation_info=\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u043C\u043F\u0438\u043B\u044F\u0446\u0438\u0438 |
|
43 |
validate=\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C |
|
44 |
version=\u0412\u0435\u0440\u0441\u0438\u044F |
|
45 |
version_must_be_a_integer=\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0446\u0435\u043B\u044B\u043C \u0447\u0438\u0441\u043B\u043E\u043C |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/resources/org/gvsig/educa/portableview/swing/impl/i18n/text_es.properties | ||
---|---|---|
1 |
#text_es.properties |
|
2 |
accept=Aceptar |
|
3 |
add=A\u00F1adir |
|
4 |
add_layer_group=A\u00F1adir agrupaci\u00F3n de capas |
|
5 |
add_layers=A\u00F1adir capas |
|
6 |
are_you_sure_to_remove_selected_layers=\u00BFEst\u00E1 seguro de eliminar las capas seleccionadas? |
|
7 |
cancel=Cancelar |
|
8 |
clean_messages=Limpiar mensajes |
|
9 |
current_values_are_not_valid=Los valores actuales no son v\u00E1lidos |
|
10 |
default=Por defecto |
|
11 |
edit_source_properties=Editar propiedades de la fuente de datos |
|
12 |
explorer=Explorador de fuentes de datos |
|
13 |
explorer_parameters=Par\u00E1metros del explorador |
|
14 |
explorer_parameters_not_valid=Par\u00E1metro del explorador no v\u00E1lidos |
|
15 |
get_layer_group_name=Introduzca el nombre para la agrupaci\u00F3n |
|
16 |
layer_name=Nombre |
|
17 |
layer_properties=Propiedades de capa |
|
18 |
layer_show_in_toc=Se muestra en el TOC |
|
19 |
layer_visible=Visible |
|
20 |
list_data_explorer=Listar fuentes de datos |
|
21 |
list_sources=Listar fuentes |
|
22 |
new=nuevo |
|
23 |
no_layers_added=No se han a\u00F1adido capas |
|
24 |
no_layers_to_add=No hay capas para a\u00F1adir |
|
25 |
open_portable_view=Abrir Vista Portable |
|
26 |
parameters=Par\u00E1metros |
|
27 |
problem_adding_group=Se ha encontrado un problema a\u00F1adiendo la agrupaci\u00F3n |
|
28 |
problems_opening_explorer=Se han encontrado problemas abriendo el explorador |
|
29 |
remove_layers=Eliminar capas |
|
30 |
select_layer_show_properties=Seleccione una capa para mostrar sus propiedades |
|
31 |
select_layers_to_remove=Seleccione las capas a eliminar |
|
32 |
select_only_one_layer=Seleccione una \u00FAnica capa |
|
33 |
source_parameters=Par\u00E1metros de la fuente |
|
34 |
portable_view_compilation_editor=Editor de compilaci\u00F3n de la vista portable |
|
35 |
portable_view_description=Descripci\u00F3n |
|
36 |
portable_view_id=Identificador |
|
37 |
portable_view_information=Informaci\u00F3n de la vista portable |
|
38 |
portable_view_layers=Capas de la vista portable |
|
39 |
portable_view_name=Nombre |
|
40 |
portable_view_validation=Validaci\u00F3n de la vista portable |
|
41 |
portable_view_version=Versi\u00F3n |
|
42 |
updateing_compilation_info=Actualizando datos de la compilaci\u00F3n |
|
43 |
validate=Validar |
|
44 |
version=Versi\u00F3n |
|
45 |
version_must_be_a_integer=Versi\u00F3n debe ser un entero |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/resources/org/gvsig/educa/portableview/swing/impl/i18n/text_de.properties | ||
---|---|---|
1 |
#text_de.properties |
|
2 |
accept=Akzeptieren |
|
3 |
add=Hinzuf\u00FCgen |
|
4 |
add_layer_group=Layergruppe hinzuf\u00FCgen |
|
5 |
add_layers=Layer hinzuf\u00FCgen |
|
6 |
are_you_sure_to_remove_selected_layers=M\u00F6chten Sie die ausgew\u00E4hlten Layer wirklich l\u00F6schen? |
|
7 |
cancel=Abbrechen |
|
8 |
clean_messages=Benachrichtigungen l\u00F6schen |
|
9 |
current_values_are_not_valid=Aktuelle Werte sind nicht g\u00FCltig |
|
10 |
default=Standard |
|
11 |
edit_source_properties=Quelldaten-Eigenschaften bearbeiten |
|
12 |
explorer=Explorer |
|
13 |
explorer_parameters=Explorer Parameter |
|
14 |
explorer_parameters_not_valid=Explorer Parameter ung\u00FCltig |
|
15 |
get_layer_group_name=Layergruppenname eingeben |
|
16 |
layer_name=Name |
|
17 |
layer_properties=Layer Eigenschaften |
|
18 |
layer_show_in_toc=Layer in TOC anzeigen |
|
19 |
layer_visible=Sichtbar |
|
20 |
list_data_explorer=Datenquellen anzeigen |
|
21 |
list_sources=Quellen anzeigen |
|
22 |
new=Neu |
|
23 |
no_layers_added=Keine Layer hinzugef\u00FCgt |
|
24 |
no_layers_to_add=Keine Layer zum hinzuf\u00FCgen vorhanden |
|
25 |
open_portable_view=Thematische Karte \u00F6ffnen |
|
26 |
parameters=Parameter |
|
27 |
problem_adding_group=Problem beim Hinzuf\u00FCgen der Layergruppe |
|
28 |
problems_opening_explorer=Problem beim \u00D6ffnen des Explorer |
|
29 |
remove_layers=Layer entfernen |
|
30 |
select_layer_show_properties=Layer Ausw\u00E4hlen um seine Eigenschaften anzuzeigen |
|
31 |
select_layers_to_remove=Layer zum Entfernen ausw\u00E4hlen |
|
32 |
select_only_one_layer=Nur einen Layer ausw\u00E4hlen |
|
33 |
source_parameters=Quellparameter |
|
34 |
portable_view_compilation_editor=Editor zum Kompilieren Thematischer Karten |
|
35 |
portable_view_description=Beschreibung |
|
36 |
portable_view_id=ID |
|
37 |
portable_view_information=Information |
|
38 |
portable_view_layers=Layer der Thematischen Karte |
|
39 |
portable_view_name=Name |
|
40 |
portable_view_validation=Validierung der Thematischen Karte |
|
41 |
portable_view_version=Version |
|
42 |
updateing_compilation_info=Kompilierungsinformationen aktualisieren |
|
43 |
validate=Validieren |
|
44 |
version=Version |
|
45 |
version_must_be_a_integer=Version muss eine Ganzzahl sein |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.educa.portableview.swing.impl.PortableViewSwingDefaultImplLibrary |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/java/org/gvsig/educa/portableview/swing/impl/DefaultInformationJPanelComponent.java | ||
---|---|---|
1 |
package org.gvsig.educa.portableview.swing.impl; |
|
2 |
|
|
3 |
import java.awt.BorderLayout; |
|
4 |
import java.awt.Component; |
|
5 |
import java.awt.Container; |
|
6 |
import java.awt.Dimension; |
|
7 |
import java.awt.GridBagConstraints; |
|
8 |
import java.awt.GridBagLayout; |
|
9 |
import java.awt.Insets; |
|
10 |
import java.text.DateFormat; |
|
11 |
import java.text.SimpleDateFormat; |
|
12 |
import java.util.Date; |
|
13 |
import java.util.Locale; |
|
14 |
|
|
15 |
import javax.swing.Box; |
|
16 |
import javax.swing.JLabel; |
|
17 |
import javax.swing.JPanel; |
|
18 |
import javax.swing.JTextArea; |
|
19 |
import javax.swing.JTextField; |
|
20 |
|
|
21 |
import org.gvsig.educa.portableview.swing.InformationJPanelComponent; |
|
22 |
import org.gvsig.educa.portableview.swing.PortableViewSwingLocator; |
|
23 |
import org.gvsig.educa.portableview.swing.PortableViewSwingManager; |
|
24 |
import org.gvsig.tools.dynobject.DynObject; |
|
25 |
import org.jfree.ui.tabbedui.VerticalLayout; |
|
26 |
|
|
27 |
public class DefaultInformationJPanelComponent implements |
|
28 |
InformationJPanelComponent { |
|
29 |
|
|
30 |
private JPanel infoPanel; |
|
31 |
private final PortableViewSwingManager swingManager; |
|
32 |
private static final Insets insets = new Insets(3, 3, 3, 3); |
|
33 |
|
|
34 |
public DefaultInformationJPanelComponent(DynObject mapInfo) { |
|
35 |
super(); |
|
36 |
swingManager = PortableViewSwingLocator.getSwingManager(); |
|
37 |
infoPanel = init(mapInfo); |
|
38 |
} |
|
39 |
|
|
40 |
private JPanel init(DynObject map) { |
|
41 |
JPanel panel = new JPanel(); |
|
42 |
|
|
43 |
GridBagLayout gbl = new GridBagLayout(); |
|
44 |
GridBagConstraints gbc = new GridBagConstraints(); |
|
45 |
panel.setLayout(gbl); |
|
46 |
|
|
47 |
Object id = map.getDynValue("id"); |
|
48 |
Date createDate = (Date) map.getDynValue("creationTimestamp"); |
|
49 |
Object description = map.getDynValue("description"); |
|
50 |
Object name = map.getDynValue("name"); |
|
51 |
Object buildVersion = map.getDynValue("buildNumber"); |
|
52 |
Object version = map.getDynValue("version"); |
|
53 |
|
|
54 |
// Create label and textField id |
|
55 |
JLabel idLabel = new JLabel( |
|
56 |
swingManager.getTranslation("portable_view_id")); |
|
57 |
JTextField idTextField = new JTextField(id.toString()); |
|
58 |
|
|
59 |
|
|
60 |
// Create label and texfield date |
|
61 |
JLabel dateLabel = new JLabel( |
|
62 |
swingManager.getTranslation("creationTimestamp")); |
|
63 |
DateFormat formatter = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault()); |
|
64 |
JTextField dateTextField = new JTextField(formatter.format(createDate)); |
|
65 |
|
|
66 |
// Create label and textArea description |
|
67 |
JLabel descriptionLabel = new JLabel( |
|
68 |
swingManager.getTranslation("portable_view_description")); |
|
69 |
JTextArea descriptionArea = new JTextArea(description.toString()); |
|
70 |
|
|
71 |
// Create label and textField name |
|
72 |
JLabel nameLabel = new JLabel( |
|
73 |
swingManager.getTranslation("name")); |
|
74 |
JTextField nameTextField = new JTextField(name.toString()); |
|
75 |
|
|
76 |
//Create label and textField buildVersion |
|
77 |
JLabel buildVersionLabel = new JLabel( |
|
78 |
swingManager.getTranslation("buildNumber")); |
|
79 |
JTextField buildVersionTextField = new JTextField(buildVersion.toString()); |
|
80 |
|
|
81 |
//Create label and textField version |
|
82 |
JLabel versionLabel = new JLabel( |
|
83 |
swingManager.getTranslation("version")); |
|
84 |
JTextField versionTextField = new JTextField(version.toString()); |
|
85 |
|
|
86 |
addLabelComponent(panel, idLabel, 0, 0); |
|
87 |
addTextComponent(panel, idTextField, 1, GridBagConstraints.RELATIVE); |
|
88 |
|
|
89 |
addLabelComponent(panel, dateLabel, 0, 1); |
|
90 |
addTextComponent(panel, dateTextField, 1, GridBagConstraints.RELATIVE); |
|
91 |
|
|
92 |
addLabelComponent(panel, descriptionLabel, 0, 2); |
|
93 |
addTextComponent(panel, descriptionArea, 1, GridBagConstraints.RELATIVE); |
|
94 |
|
|
95 |
addLabelComponent(panel, nameLabel, 0, 3); |
|
96 |
addTextComponent(panel, nameTextField, 1, GridBagConstraints.RELATIVE); |
|
97 |
|
|
98 |
addLabelComponent(panel, buildVersionLabel, 0, 4); |
|
99 |
addTextComponent(panel, buildVersionTextField, 1, GridBagConstraints.RELATIVE); |
|
100 |
|
|
101 |
addLabelComponent(panel, versionLabel, 0, 5); |
|
102 |
addTextComponent(panel, versionTextField, 1, GridBagConstraints.RELATIVE); |
|
103 |
|
|
104 |
panel.add(new JLabel(" "), new GridBagConstraints(GridBagConstraints.RELATIVE, |
|
105 |
GridBagConstraints.RELATIVE, GridBagConstraints.REMAINDER, 1, 1, 1, |
|
106 |
GridBagConstraints.CENTER, GridBagConstraints.BOTH, insets, 0, |
|
107 |
0)); |
|
108 |
|
|
109 |
return panel; |
|
110 |
} |
|
111 |
|
|
112 |
private void addTextComponent(Container container, Component text, int gridx, |
|
113 |
int gridy) { |
|
114 |
int gridwidth = GridBagConstraints.REMAINDER; |
|
115 |
int gridheight = 1; |
|
116 |
double weightx = 1; |
|
117 |
double weighty = 0.0; |
|
118 |
int anchor = GridBagConstraints.WEST; |
|
119 |
int fill = GridBagConstraints.HORIZONTAL; |
|
120 |
|
|
121 |
GridBagConstraints gbc = new GridBagConstraints(gridx, gridy, |
|
122 |
gridwidth, gridheight, weightx, weighty, anchor, fill, insets, 0, 0); |
|
123 |
container.add(text, gbc); |
|
124 |
} |
|
125 |
|
|
126 |
private void addLabelComponent(Container container, Component component, |
|
127 |
int gridx, int gridy) { |
|
128 |
|
|
129 |
int gridwidth = 1; |
|
130 |
int gridheight = 1; |
|
131 |
double weightx = 0.0; |
|
132 |
double weighty = 0.0; |
|
133 |
int anchor = GridBagConstraints.WEST; |
|
134 |
int fill = GridBagConstraints.NONE; |
|
135 |
|
|
136 |
GridBagConstraints gbc = new GridBagConstraints(gridx, gridy, |
|
137 |
gridwidth, gridheight, weightx, weighty, anchor, fill, insets, 0, 0); |
|
138 |
container.add(component, gbc); |
|
139 |
|
|
140 |
} |
|
141 |
|
|
142 |
public Component getJPanel() { |
|
143 |
return this.infoPanel; |
|
144 |
} |
|
145 |
|
|
146 |
} |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/java/org/gvsig/educa/portableview/swing/impl/PortableViewSwingDefaultImplLibrary.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.educa.portableview.swing.impl; |
|
23 |
|
|
24 |
import java.util.Locale; |
|
25 |
|
|
26 |
import org.gvsig.educa.portableview.swing.PortableViewSwingLibrary; |
|
27 |
import org.gvsig.educa.portableview.swing.PortableViewSwingLocator; |
|
28 |
import org.gvsig.i18n.Messages; |
|
29 |
import org.gvsig.tools.library.AbstractLibrary; |
|
30 |
import org.gvsig.tools.library.LibraryException; |
|
31 |
|
|
32 |
/** |
|
33 |
* Library for default swing implementation initialization and configuration. |
|
34 |
* |
|
35 |
* @author gvSIG team |
|
36 |
* @version $Id$ |
|
37 |
*/ |
|
38 |
public class PortableViewSwingDefaultImplLibrary extends AbstractLibrary { |
|
39 |
|
|
40 |
public void doRegistration(){ |
|
41 |
this.registerAsImplementationOf(PortableViewSwingLibrary.class); |
|
42 |
} |
|
43 |
|
|
44 |
/** {@inheridDoc} */ |
|
45 |
@Override |
|
46 |
protected void doInitialize() throws LibraryException { |
|
47 |
PortableViewSwingLocator |
|
48 |
.registerSwingManager(DefaultPortableViewSwingManager.class); |
|
49 |
} |
|
50 |
|
|
51 |
/** {@inheridDoc} */ |
|
52 |
@Override |
|
53 |
protected void doPostInitialize() throws LibraryException { |
|
54 |
// Register i18n messages |
|
55 |
Messages.addLocale(Locale.getDefault()); |
|
56 |
Messages.addLocale(new Locale(Locale.getDefault().getLanguage())); |
|
57 |
Messages.addResourceFamily( |
|
58 |
"org.gvsig.educa.portableview.swing.impl.i18n.text", |
|
59 |
PortableViewSwingDefaultImplLibrary.class.getClassLoader(), |
|
60 |
PortableViewSwingDefaultImplLibrary.class.getClass().getName()); |
|
61 |
} |
|
62 |
|
|
63 |
} |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/java/org/gvsig/educa/portableview/swing/impl/DefaultPortableViewSwingManager.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.educa.portableview.swing.impl; |
|
23 |
|
|
24 |
import java.io.IOException; |
|
25 |
import java.util.ArrayList; |
|
26 |
import java.util.Collections; |
|
27 |
import java.util.List; |
|
28 |
|
|
29 |
import org.gvsig.educa.portableview.PortableViewLocator; |
|
30 |
import org.gvsig.educa.portableview.PortableViewManager; |
|
31 |
import org.gvsig.educa.portableview.PortableViewRuntimeException; |
|
32 |
import org.gvsig.educa.portableview.compilation.PortableViewCompilation; |
|
33 |
import org.gvsig.educa.portableview.map.CantLoadContextException; |
|
34 |
import org.gvsig.educa.portableview.map.InvalidPortableViewFormatException; |
|
35 |
import org.gvsig.educa.portableview.map.PortableView; |
|
36 |
import org.gvsig.educa.portableview.swing.InformationJPanelComponent; |
|
37 |
import org.gvsig.educa.portableview.swing.PortableViewSwingManager; |
|
38 |
import org.gvsig.educa.portableview.swing.PortableViewWindowManager; |
|
39 |
import org.gvsig.educa.portableview.swing.editor.PortableViewAddLayerComponent; |
|
40 |
import org.gvsig.educa.portableview.swing.editor.PortableViewCompilationEditor; |
|
41 |
import org.gvsig.educa.portableview.swing.editor.PortableViewLayerPropertiesEditor; |
|
42 |
import org.gvsig.educa.portableview.swing.editor.PortableViewLayersEditor; |
|
43 |
import org.gvsig.educa.portableview.swing.impl.editor.DefaultPortableViewCompilationEditor; |
|
44 |
import org.gvsig.educa.portableview.swing.impl.editor.addlayer.DefaultPortableViewAddLayerComponent; |
|
45 |
import org.gvsig.educa.portableview.swing.impl.editor.layers.DefaultPortableViewLayerPropertiesEditor; |
|
46 |
import org.gvsig.educa.portableview.swing.impl.editor.layers.DefaultPortableViewLayersEditor; |
|
47 |
import org.gvsig.educa.portableview.swing.impl.viewer.DefaultPortableViewInformationViewer; |
|
48 |
import org.gvsig.educa.portableview.swing.impl.viewer.DefaultPortableViewToc; |
|
49 |
import org.gvsig.educa.portableview.swing.impl.viewer.DefaultPortableViewViewer; |
|
50 |
import org.gvsig.educa.portableview.swing.viewer.MapControlToolRegistrant; |
|
51 |
import org.gvsig.educa.portableview.swing.viewer.PortableViewInforamtionViewer; |
|
52 |
import org.gvsig.educa.portableview.swing.viewer.PortableViewToc; |
|
53 |
import org.gvsig.educa.portableview.swing.viewer.PortableViewTocImageProvider; |
|
54 |
import org.gvsig.educa.portableview.swing.viewer.PortableViewViewer; |
|
55 |
import org.gvsig.i18n.Messages; |
|
56 |
import org.gvsig.tools.dynobject.DynObject; |
|
57 |
|
|
58 |
/** |
|
59 |
* Default implementation of the {@link PortableViewSwingManager}. |
|
60 |
* |
|
61 |
* @author gvSIG Team |
|
62 |
* @version $Id$ |
|
63 |
*/ |
|
64 |
public class DefaultPortableViewSwingManager implements |
|
65 |
PortableViewSwingManager { |
|
66 |
|
|
67 |
private final PortableViewManager manager; |
|
68 |
// private I18nManager i18nmanager = null; |
|
69 |
private PortableViewWindowManager windowManager; |
|
70 |
public static final String MODE_FORM = "form"; |
|
71 |
|
|
72 |
/** |
|
73 |
* Class to use for {@link #newToc()} |
|
74 |
*/ |
|
75 |
private Class<? extends PortableViewToc> tocClass = DefaultPortableViewToc.class; |
|
76 |
|
|
77 |
/** |
|
78 |
* Class to use for {@link #informationViewerClass} |
|
79 |
*/ |
|
80 |
private Class<? extends PortableViewInforamtionViewer> informationViewerClass = DefaultPortableViewInformationViewer.class; |
|
81 |
|
|
82 |
/** |
|
83 |
* Class to use for {@link #newLayersEditor()} |
|
84 |
*/ |
|
85 |
private Class<? extends PortableViewLayersEditor> layersEditorClass = DefaultPortableViewLayersEditor.class; |
|
86 |
|
|
87 |
/** |
|
88 |
* Class to use for {@link #newLayerPropertiesEditor()} |
|
89 |
*/ |
|
90 |
private Class<? extends PortableViewLayerPropertiesEditor> layerPropertiesEditorClass = DefaultPortableViewLayerPropertiesEditor.class; |
|
91 |
|
|
92 |
/** |
|
93 |
* Class to use for {@link #newAddLayerComponent()} |
|
94 |
*/ |
|
95 |
private Class<? extends PortableViewAddLayerComponent> addLayerClass = DefaultPortableViewAddLayerComponent.class; |
|
96 |
|
|
97 |
private PortableViewTocImageProvider tocImageProvider; |
|
98 |
|
|
99 |
private final List<MapControlToolRegistrant> mapControlToolRegistrants = new ArrayList<MapControlToolRegistrant>(); |
|
100 |
|
|
101 |
private final List<MapControlToolRegistrant> mapControlToolRegistrants_readonly = Collections |
|
102 |
.unmodifiableList(mapControlToolRegistrants); |
|
103 |
|
|
104 |
public DefaultPortableViewSwingManager() { |
|
105 |
this.manager = PortableViewLocator.getManager(); |
|
106 |
// this.i18nmanager = ToolsLocator.getI18nManager(); |
|
107 |
this.windowManager = new DefaultPortableViewWindowManager(this); |
|
108 |
} |
|
109 |
|
|
110 |
/** {@inheridDoc} */ |
|
111 |
public PortableViewManager getManager() { |
|
112 |
return this.manager; |
|
113 |
} |
|
114 |
|
|
115 |
/** {@inheridDoc} */ |
|
116 |
public String getTranslation(String key) { |
|
117 |
// TODO: add I18nManager usage when org.gvsig.tools.lib 2.1.0 becomes |
|
118 |
// available |
|
119 |
// return this.i18nmanager.getTranslation(key); |
|
120 |
return Messages.getText(key); |
|
121 |
} |
|
122 |
|
|
123 |
/** {@inheridDoc} */ |
|
124 |
public void registerWindowManager(PortableViewWindowManager manager) { |
|
125 |
this.windowManager = manager; |
|
126 |
} |
|
127 |
|
|
128 |
/** {@inheridDoc} */ |
|
129 |
public PortableViewWindowManager getWindowManager() { |
|
130 |
return this.windowManager; |
|
131 |
} |
|
132 |
|
|
133 |
/** {@inheridDoc} */ |
|
134 |
public PortableViewViewer getViewer(PortableView portableView) |
|
135 |
throws InvalidPortableViewFormatException, |
|
136 |
CantLoadContextException, IOException { |
|
137 |
return new DefaultPortableViewViewer(portableView); |
|
138 |
} |
|
139 |
|
|
140 |
/** {@inheridDoc} */ |
|
141 |
public PortableViewCompilationEditor getCopilationEditor( |
|
142 |
PortableViewCompilation portableViewCompilation, boolean editLayers) { |
|
143 |
return new DefaultPortableViewCompilationEditor( |
|
144 |
portableViewCompilation, editLayers); |
|
145 |
} |
|
146 |
|
|
147 |
/** {@inheridDoc} */ |
|
148 |
public PortableViewToc newToc() { |
|
149 |
try { |
|
150 |
return tocClass.newInstance(); |
|
151 |
} catch (Exception e) { |
|
152 |
throw new PortableViewRuntimeException( |
|
153 |
"Problem creating Portable View viewer TOC", e); |
|
154 |
} |
|
155 |
} |
|
156 |
|
|
157 |
/** {@inheridDoc} */ |
|
158 |
public void registerTocComponent( |
|
159 |
Class<? extends PortableViewToc> tocComponentClass) { |
|
160 |
tocClass = tocComponentClass; |
|
161 |
} |
|
162 |
|
|
163 |
/** {@inheridDoc} */ |
|
164 |
public PortableViewAddLayerComponent newAddLayerComponent() { |
|
165 |
try { |
|
166 |
return addLayerClass.newInstance(); |
|
167 |
} catch (Exception e) { |
|
168 |
throw new PortableViewRuntimeException( |
|
169 |
"Problem creating Portable View Compilation editor add Layer component", |
|
170 |
e); |
|
171 |
} |
|
172 |
} |
|
173 |
|
|
174 |
/** {@inheridDoc} */ |
|
175 |
public void registerAddLayerComponent( |
|
176 |
Class<? extends PortableViewAddLayerComponent> addLayerComponent) { |
|
177 |
addLayerClass = addLayerComponent; |
|
178 |
} |
|
179 |
|
|
180 |
/** {@inheridDoc} */ |
|
181 |
public PortableViewLayerPropertiesEditor newLayerPropertiesEditor() { |
|
182 |
try { |
|
183 |
return layerPropertiesEditorClass.newInstance(); |
|
184 |
} catch (Exception e) { |
|
185 |
throw new PortableViewRuntimeException( |
|
186 |
"Problem creating Portable View Copilation editor layer propierties", |
|
187 |
e); |
|
188 |
} |
|
189 |
} |
|
190 |
|
|
191 |
/** {@inheridDoc} */ |
|
192 |
public void registerLayerPropertiesEditor( |
|
193 |
Class<? extends PortableViewLayerPropertiesEditor> layerPropertiesEditorClass) { |
|
194 |
this.layerPropertiesEditorClass = layerPropertiesEditorClass; |
|
195 |
} |
|
196 |
|
|
197 |
/** {@inheridDoc} */ |
|
198 |
public PortableViewLayersEditor newLayersEditor() { |
|
199 |
try { |
|
200 |
return layersEditorClass.newInstance(); |
|
201 |
} catch (Exception e) { |
|
202 |
throw new PortableViewRuntimeException( |
|
203 |
"Problem creating Portable View Copilation editor layers editor", |
|
204 |
e); |
|
205 |
} |
|
206 |
} |
|
207 |
|
|
208 |
/** {@inheridDoc} */ |
|
209 |
public void registerLayersEditor( |
|
210 |
Class<? extends PortableViewLayersEditor> layersEditorClass) { |
|
211 |
this.layersEditorClass = layersEditorClass; |
|
212 |
|
|
213 |
} |
|
214 |
|
|
215 |
/** {@inheridDoc} */ |
|
216 |
public PortableViewInforamtionViewer newInformationViewer() { |
|
217 |
try { |
|
218 |
return informationViewerClass.newInstance(); |
|
219 |
} catch (Exception e) { |
|
220 |
throw new PortableViewRuntimeException( |
|
221 |
"Problem creating Portable View Information viewer", e); |
|
222 |
} |
|
223 |
} |
|
224 |
|
|
225 |
/** {@inheridDoc} */ |
|
226 |
public void registerInformationViewer( |
|
227 |
Class<? extends PortableViewInforamtionViewer> informationViewerClass) { |
|
228 |
this.informationViewerClass = informationViewerClass; |
|
229 |
|
|
230 |
} |
|
231 |
|
|
232 |
/** {@inheridDoc} */ |
|
233 |
public void setDefaultTocImageProvider( |
|
234 |
PortableViewTocImageProvider imageProvider) { |
|
235 |
this.tocImageProvider = imageProvider; |
|
236 |
} |
|
237 |
|
|
238 |
/** {@inheridDoc} */ |
|
239 |
public PortableViewTocImageProvider getDefaultTocImageProvider() { |
|
240 |
return tocImageProvider; |
|
241 |
} |
|
242 |
|
|
243 |
/** {@inheridDoc} */ |
|
244 |
public List<MapControlToolRegistrant> getMapControlRegistrantList() { |
|
245 |
return mapControlToolRegistrants_readonly; |
|
246 |
} |
|
247 |
|
|
248 |
/** {@inheridDoc} */ |
|
249 |
public void addMapControlRegistrant(MapControlToolRegistrant registrant) { |
|
250 |
mapControlToolRegistrants.add(registrant); |
|
251 |
} |
|
252 |
|
|
253 |
public InformationJPanelComponent createInformationJpanelComponent( |
|
254 |
DynObject mapInfo) { |
|
255 |
return new DefaultInformationJPanelComponent(mapInfo); |
|
256 |
} |
|
257 |
} |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/java/org/gvsig/educa/portableview/swing/impl/DefaultPortableViewWindowManager.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.educa.portableview.swing.impl; |
|
23 |
|
|
24 |
import java.awt.Component; |
|
25 |
|
|
26 |
import javax.swing.JComponent; |
|
27 |
import javax.swing.JOptionPane; |
|
28 |
|
|
29 |
import org.gvsig.educa.portableview.swing.PortableViewSwingComponent; |
|
30 |
import org.gvsig.educa.portableview.swing.PortableViewWindowManager; |
|
31 |
import org.gvsig.educa.portableview.swing.editor.PortableViewCompilationEditor; |
|
32 |
import org.gvsig.educa.portableview.swing.viewer.PortableViewViewer; |
|
33 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
34 |
|
|
35 |
/** |
|
36 |
* Default implementation for the {@link PortableViewWindowManager}. |
|
37 |
* |
|
38 |
* @author gvSIG Team |
|
39 |
* @version $Id$ |
|
40 |
*/ |
|
41 |
public class DefaultPortableViewWindowManager implements |
|
42 |
PortableViewWindowManager { |
|
43 |
|
|
44 |
private final DefaultPortableViewSwingManager manager; |
|
45 |
|
|
46 |
public DefaultPortableViewWindowManager( |
|
47 |
DefaultPortableViewSwingManager manager) { |
|
48 |
this.manager = manager; |
|
49 |
; |
|
50 |
} |
|
51 |
|
|
52 |
/** {@inheridDoc} */ |
|
53 |
public void showWindow(JComponent panel, String tittle, MODE mode) { |
|
54 |
ToolsSwingLocator.getWindowManager().showWindow(panel, tittle, mode); |
|
55 |
} |
|
56 |
|
|
57 |
/** {@inheridDoc} */ |
|
58 |
public void showInWindow(PortableViewSwingComponent swingComponent, |
|
59 |
String title, MODE mode) { |
|
60 |
showWindow(swingComponent.getSwingComponent(), title, mode); |
|
61 |
|
|
62 |
} |
|
63 |
|
|
64 |
/** {@inheridDoc} */ |
|
65 |
public void showViewer(PortableViewViewer mapViewer, MODE mode) { |
|
66 |
String title = |
|
67 |
String.format("%1s [%2s]", mapViewer.getPortableView() |
|
68 |
.getInformation().getName(), |
|
69 |
manager.getTranslation("Portable_View")); |
|
70 |
showInWindow(mapViewer, title, MODE.WINDOW); |
|
71 |
} |
|
72 |
|
|
73 |
/** {@inheridDoc} */ |
|
74 |
public void showCompilationEditor( |
|
75 |
PortableViewCompilationEditor mapCompilationEditor, MODE mode) { |
|
76 |
String name = "{".concat(manager.getTranslation("new")).concat("}"); |
|
77 |
String title = |
|
78 |
String.format("%1s [%2s]", name, |
|
79 |
manager.getTranslation("Portable_View_Compilation")); |
|
80 |
showInWindow(mapCompilationEditor, title, MODE.WINDOW); |
|
81 |
|
|
82 |
} |
|
83 |
|
|
84 |
/** {@inheridDoc} */ |
|
85 |
public void showMessageDialog(Component component, String title, |
|
86 |
String text, MESSAGE_DIALOG_TYPE type) { |
|
87 |
showAMessageDialog(component, title, text, type); |
|
88 |
} |
|
89 |
|
|
90 |
/** {@inheridDoc} */ |
|
91 |
public void showMessageDialog(String title, String text, |
|
92 |
MESSAGE_DIALOG_TYPE type) { |
|
93 |
showAMessageDialog(null, title, text, type); |
|
94 |
} |
|
95 |
|
|
96 |
/** {@inheridDoc} */ |
|
97 |
public void showMessageDialog(PortableViewSwingComponent component, |
|
98 |
String title, String text, MESSAGE_DIALOG_TYPE type) { |
|
99 |
showAMessageDialog(component.getSwingComponent(), title, text, type); |
|
100 |
} |
|
101 |
|
|
102 |
/** |
|
103 |
* Transforms {@link MESSAGE_DIALOG_TYPE} value to the {@link JOptionPane} |
|
104 |
* value. |
|
105 |
* |
|
106 |
* @param type |
|
107 |
* {@link MESSAGE_DIALOG_TYPE} value |
|
108 |
* @return {@link JOptionPane} dialog type value |
|
109 |
*/ |
|
110 |
private int getJOptionPaneMessageType(MESSAGE_DIALOG_TYPE type) { |
|
111 |
switch (type) { |
|
112 |
case ERROR: |
|
113 |
return JOptionPane.ERROR_MESSAGE; |
|
114 |
|
|
115 |
case INFO: |
|
116 |
return JOptionPane.INFORMATION_MESSAGE; |
|
117 |
|
|
118 |
case WARNING: |
|
119 |
return JOptionPane.WARNING_MESSAGE; |
|
120 |
|
|
121 |
case QUESTION: |
|
122 |
return JOptionPane.QUESTION_MESSAGE; |
|
123 |
|
|
124 |
default: |
|
125 |
return JOptionPane.PLAIN_MESSAGE; |
|
126 |
} |
|
127 |
} |
|
128 |
|
|
129 |
/** |
|
130 |
* Shows a dialog using |
|
131 |
* {@link JOptionPane#showMessageDialog(Component, Object, String, int)} |
|
132 |
* |
|
133 |
* @param parent |
|
134 |
* @param title |
|
135 |
* @param text |
|
136 |
* @param type |
|
137 |
*/ |
|
138 |
private void showAMessageDialog(Component parent, String title, |
|
139 |
String text, MESSAGE_DIALOG_TYPE type) { |
|
140 |
int messageType = getJOptionPaneMessageType(type); |
|
141 |
JOptionPane.showMessageDialog(parent, text, title, messageType); |
|
142 |
} |
|
143 |
|
|
144 |
/** {@inheridDoc} */ |
|
145 |
public CONFIRM_DIALOG_OPTION showConfirmDialog(Component parent, |
|
146 |
String message, String title, CONFIRM_DIALOG_TYPE type, |
|
147 |
MESSAGE_DIALOG_TYPE messageType) { |
|
148 |
// Gets confirmation type value to use in JOptionPane |
|
149 |
int optType; |
|
150 |
switch (type) { |
|
151 |
case YES_NO: |
|
152 |
optType = JOptionPane.YES_NO_OPTION; |
|
153 |
break; |
|
154 |
case YES_NO_CANCEL: |
|
155 |
optType = JOptionPane.YES_NO_CANCEL_OPTION; |
|
156 |
break; |
|
157 |
case OK_CANCEL: |
|
158 |
optType = JOptionPane.OK_CANCEL_OPTION; |
|
159 |
break; |
|
160 |
default: |
|
161 |
throw new IllegalArgumentException(); |
|
162 |
} |
|
163 |
|
|
164 |
// Gets message type value to use in JOptionPane |
|
165 |
int msgType = getJOptionPaneMessageType(messageType); |
|
166 |
|
|
167 |
// Shows dialog and gets result |
|
168 |
int ret = |
|
169 |
JOptionPane.showConfirmDialog(parent, message, title, optType, |
|
170 |
msgType); |
|
171 |
|
|
172 |
// Transforms JOptionPanel return in a CONFIRM_DIALOG_OPTION |
|
173 |
switch (ret) { |
|
174 |
case JOptionPane.CANCEL_OPTION: |
|
175 |
return CONFIRM_DIALOG_OPTION.CANCEL; |
|
176 |
case JOptionPane.OK_OPTION: |
|
177 |
return CONFIRM_DIALOG_OPTION.OK_YES; |
|
178 |
case JOptionPane.NO_OPTION: |
|
179 |
return CONFIRM_DIALOG_OPTION.NO; |
|
180 |
case JOptionPane.CLOSED_OPTION: |
|
181 |
return CONFIRM_DIALOG_OPTION.CLOSED_PANEL; |
|
182 |
default: |
|
183 |
throw new IllegalStateException(); |
|
184 |
} |
|
185 |
} |
|
186 |
|
|
187 |
/** {@inheridDoc} */ |
|
188 |
public CONFIRM_DIALOG_OPTION showConfirmDialog(String translation, |
|
189 |
String title, CONFIRM_DIALOG_TYPE type, MESSAGE_DIALOG_TYPE messageType) { |
|
190 |
return showConfirmDialog(null, translation, title, type, messageType); |
|
191 |
} |
|
192 |
|
|
193 |
/** {@inheridDoc} */ |
|
194 |
public String showInputStringDialog(String translation, String title, |
|
195 |
String defautValue, MESSAGE_DIALOG_TYPE messageType) { |
|
196 |
|
|
197 |
return showInputStringDialog(null, translation, title, defautValue, |
|
198 |
messageType); |
|
199 |
|
|
200 |
} |
|
201 |
|
|
202 |
/** {@inheridDoc} */ |
|
203 |
public String showInputStringDialog(Component parent, String translation, |
|
204 |
String title, String defautValue, MESSAGE_DIALOG_TYPE messageType) { |
|
205 |
int msgType = getJOptionPaneMessageType(messageType); |
|
206 |
return (String) JOptionPane.showInputDialog(parent, translation, title, |
|
207 |
msgType, null, null, defautValue); |
|
208 |
} |
|
209 |
|
|
210 |
} |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/java/org/gvsig/educa/portableview/swing/impl/package.html | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
4 |
<head> |
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
6 |
<title>org.gvsig.educa.portableview package documentation</title> |
|
7 |
</head> |
|
8 |
<body> |
|
9 |
|
|
10 |
<p>PortableView swing library API default implementation.</p> |
|
11 |
|
|
12 |
</body> |
|
13 |
</html> |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/java/org/gvsig/educa/portableview/swing/impl/viewer/DefaultPortableViewViewer.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.educa.portableview.swing.impl.viewer; |
|
23 |
|
|
24 |
import java.awt.BorderLayout; |
|
25 |
import java.awt.Dimension; |
|
26 |
import java.io.IOException; |
|
27 |
import java.util.List; |
|
28 |
|
|
29 |
import javax.swing.JComponent; |
|
30 |
import javax.swing.JPanel; |
|
31 |
import javax.swing.JSplitPane; |
|
32 |
|
|
33 |
import org.apache.commons.lang3.StringUtils; |
|
34 |
|
|
35 |
import org.gvsig.educa.portableview.PortableViewRuntimeException; |
|
36 |
import org.gvsig.educa.portableview.map.CantLoadContextException; |
|
37 |
import org.gvsig.educa.portableview.map.InvalidPortableViewFormatException; |
|
38 |
import org.gvsig.educa.portableview.map.PortableView; |
|
39 |
import org.gvsig.educa.portableview.swing.PortableViewSwingLocator; |
|
40 |
import org.gvsig.educa.portableview.swing.PortableViewSwingManager; |
|
41 |
import org.gvsig.educa.portableview.swing.viewer.MapControlToolRegistrant; |
|
42 |
import org.gvsig.educa.portableview.swing.viewer.PortableViewToc; |
|
43 |
import org.gvsig.educa.portableview.swing.viewer.PortableViewViewer; |
|
44 |
import org.gvsig.fmap.dal.exception.ReadException; |
|
45 |
import org.gvsig.fmap.mapcontext.MapContext; |
|
46 |
import org.gvsig.fmap.mapcontext.layers.LayerEvent; |
|
47 |
import org.gvsig.fmap.mapcontext.layers.LayerListener; |
|
48 |
import org.gvsig.fmap.mapcontrol.MapControl; |
|
49 |
import org.gvsig.fmap.mapcontrol.MapControlCreationException; |
|
50 |
import org.gvsig.fmap.mapcontrol.MapControlLocator; |
|
51 |
import org.gvsig.tools.ToolsLocator; |
|
52 |
import org.gvsig.tools.dispose.DisposableManager; |
|
53 |
|
|
54 |
/** |
|
55 |
* |
|
56 |
* Implementation of {@link PortableViewViewer} |
|
57 |
* |
|
58 |
* @author gvSIG Team |
|
59 |
* @version $Id$ |
|
60 |
* |
|
61 |
*/ |
|
62 |
public class DefaultPortableViewViewer extends JPanel implements |
|
63 |
PortableViewViewer { |
|
64 |
|
|
65 |
/** |
|
66 |
* |
|
67 |
*/ |
|
68 |
private static final long serialVersionUID = -8405474764132950973L; |
|
69 |
|
|
70 |
private final DisposableManager disposableManager; |
|
71 |
|
|
72 |
private final PortableView portableView; |
|
73 |
private final PortableViewToc toc; |
|
74 |
|
|
75 |
private MapControl mapControl; |
|
76 |
|
|
77 |
private final PortableViewSwingManager swingManager; |
|
78 |
|
|
79 |
private final JSplitPane splitPane; |
|
80 |
|
|
81 |
public DefaultPortableViewViewer(PortableView portableView) |
|
82 |
throws InvalidPortableViewFormatException, CantLoadContextException, |
|
83 |
IOException { |
|
84 |
super(); |
|
85 |
swingManager = PortableViewSwingLocator.getSwingManager(); |
|
86 |
disposableManager = ToolsLocator.getDisposableManager(); |
|
87 |
|
|
88 |
disposableManager.bind(this); |
|
89 |
|
|
90 |
this.portableView = portableView; |
|
91 |
|
|
92 |
if (portableView == null) { |
|
93 |
throw new IllegalArgumentException(); |
|
94 |
} |
|
95 |
|
|
96 |
if (!portableView.isOpen()) { |
|
97 |
portableView.open(); |
|
98 |
} |
|
99 |
|
|
100 |
toc = PortableViewSwingLocator.getSwingManager().newToc(); |
|
101 |
|
|
102 |
toc.attachTo(this); |
|
103 |
|
|
104 |
try { |
|
105 |
this.mapControl = |
|
106 |
MapControlLocator.getMapControlManager() |
|
107 |
.createJMapControlPanel(null); |
|
108 |
} catch (MapControlCreationException e) { |
|
109 |
// FIMXE exception |
|
110 |
throw new PortableViewRuntimeException( |
|
111 |
"Problem creating MapControl for viewer", e); |
|
112 |
} |
|
113 |
// Hide grid (avoid problem of Global grid configuration) |
|
114 |
mapControl.setGridVisibility(false); |
|
115 |
|
|
116 |
MapContext mapContext = portableView.getMapContext(); |
|
117 |
mapControl.setMapContext(mapContext); |
|
118 |
mapContext.getLayers().addLayerListener(new LayerListener() { |
|
119 |
|
|
120 |
public void visibilityChanged(LayerEvent e) { |
|
121 |
// Nothing to do |
|
122 |
mapControl.rePaintDirtyLayers(); |
|
123 |
} |
|
124 |
|
|
125 |
public void nameChanged(LayerEvent e) { |
|
126 |
// Nothing to do |
|
127 |
} |
|
128 |
|
|
129 |
public void editionChanged(LayerEvent e) { |
|
130 |
// Nothing to do |
|
131 |
} |
|
132 |
|
|
133 |
public void drawValueChanged(LayerEvent e) { |
|
134 |
// XXX removed this redraw to avoid problem in raster layers |
|
135 |
// which always changed "drawValue" in every draw process |
|
136 |
// (so drawing never ends ) |
|
137 |
|
|
138 |
// mapControl.rePaintDirtyLayers(); |
|
139 |
} |
|
140 |
|
|
141 |
public void activationChanged(LayerEvent e) { |
|
142 |
// Nothing to do |
|
143 |
} |
|
144 |
}); |
|
145 |
|
|
146 |
loadMapTools(mapControl); |
|
147 |
|
|
148 |
setLayout(new BorderLayout(10, 10)); |
|
149 |
|
|
150 |
mapControl.setMinimumSize(new Dimension(300, 300)); |
|
151 |
|
|
152 |
splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, false); |
|
153 |
splitPane.setLeftComponent(toc.getSwingComponent()); |
|
154 |
splitPane.setResizeWeight(0); |
|
155 |
splitPane.setRightComponent(mapControl); |
|
156 |
splitPane.setOneTouchExpandable(true); |
|
157 |
|
|
158 |
add(splitPane, BorderLayout.CENTER); |
|
159 |
} |
|
160 |
|
|
161 |
protected void loadMapTools(MapControl theMapControl) { |
|
162 |
// Register tools |
|
163 |
List<MapControlToolRegistrant> registrants = |
|
164 |
swingManager.getMapControlRegistrantList(); |
|
165 |
for (MapControlToolRegistrant registrant : registrants) { |
|
166 |
registrant.registerTools(theMapControl); |
|
167 |
} |
|
168 |
if (StringUtils.isBlank(theMapControl.getCurrentTool())) { |
|
169 |
if (!theMapControl.getNamesMapTools().isEmpty()) { |
|
170 |
theMapControl.setTool((String) theMapControl.getNamesMapTools() |
|
171 |
.keySet().iterator().next()); |
|
172 |
} |
|
173 |
} |
|
174 |
} |
|
175 |
|
|
176 |
/** {@inheridDoc} */ |
|
177 |
public JComponent getSwingComponent() { |
|
178 |
return this; |
|
179 |
} |
|
180 |
|
|
181 |
/** {@inheridDoc} */ |
|
182 |
public PortableView getPortableView() { |
|
183 |
return portableView; |
|
184 |
} |
|
185 |
|
|
186 |
/** {@inheridDoc} */ |
|
187 |
public void zoomAll() { |
|
188 |
try { |
|
189 |
mapControl.getViewPort().setEnvelope( |
|
190 |
mapControl.getMapContext().getFullEnvelope()); |
|
191 |
} catch (ReadException e) { |
|
192 |
mapControl.setEnabled(false); |
|
193 |
throw new PortableViewRuntimeException("Problem in zoom all", e); |
|
194 |
} |
|
195 |
} |
|
196 |
|
|
197 |
/** {@inheridDoc} */ |
|
198 |
public void setTool(String toolId) { |
|
199 |
mapControl.setTool(toolId); |
|
200 |
} |
|
201 |
|
|
202 |
/** {@inheridDoc} */ |
|
203 |
public MapControl getMapControl() { |
|
204 |
return mapControl; |
|
205 |
} |
|
206 |
|
|
207 |
/** {@inheridDoc} */ |
|
208 |
public PortableViewToc getTOC() { |
|
209 |
return toc; |
|
210 |
} |
|
211 |
|
|
212 |
/** {@inheridDoc} */ |
|
213 |
public String getCurrentToolId() { |
|
214 |
return mapControl.getCurrentTool(); |
|
215 |
} |
|
216 |
|
|
217 |
/** {@inheridDoc} */ |
|
218 |
public void dispose() { |
|
219 |
disposableManager.release(this); |
|
220 |
mapControl = null; |
|
221 |
} |
|
222 |
|
|
223 |
public boolean isTocVisible() { |
|
224 |
return splitPane.getDividerLocation() > 5; |
|
225 |
} |
|
226 |
|
|
227 |
public void setTocVisible(boolean visible) { |
|
228 |
if (isTocVisible() == visible) { |
|
229 |
return; |
|
230 |
} |
|
231 |
if (visible) { |
|
232 |
splitPane.resetToPreferredSizes(); |
|
233 |
} else { |
|
234 |
splitPane.setDividerLocation(0); |
|
235 |
} |
|
236 |
|
|
237 |
} |
|
238 |
} |
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.204/org.gvsig.educa.portableview.swing/org.gvsig.educa.portableview.swing.impl/src/main/java/org/gvsig/educa/portableview/swing/impl/viewer/TocTreeNode.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.educa.portableview.swing.impl.viewer; |
|
23 |
|
|
24 |
import java.awt.Image; |
|
25 |
|
|
26 |
import javax.swing.ImageIcon; |
|
27 |
import javax.swing.tree.DefaultMutableTreeNode; |
|
28 |
|
|
29 |
import org.gvsig.educa.portableview.swing.impl.editor.layers.DefaultPortableViewLayersEditor; |
|
30 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
31 |
import org.gvsig.fmap.mapcontext.layers.operations.IHasImageLegend; |
|
32 |
import org.gvsig.fmap.mapcontext.layers.operations.LayerCollection; |
|
33 |
import org.gvsig.fmap.mapcontext.layers.operations.SingleLayer; |
|
34 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
|
35 |
|
|
36 |
/** |
|
37 |
* Node representation of a layer in JTree of |
|
38 |
* {@link DefaultPortableViewLayersEditor} |
|
39 |
* |
|
40 |
* @author gvSIG Team |
|
41 |
* @version $Id$ |
|
42 |
* |
|
43 |
*/ |
|
44 |
public class TocTreeNode extends DefaultMutableTreeNode { |
|
45 |
|
|
46 |
/** |
|
47 |
* |
|
48 |
*/ |
|
49 |
private static final long serialVersionUID = -5660745136587795464L; |
|
50 |
|
|
51 |
/** |
|
52 |
* Nodes type |
|
53 |
* |
|
54 |
* @author gvSIG Team |
|
55 |
* @version $Id$ |
|
56 |
* |
|
57 |
*/ |
|
58 |
public enum TYPE { |
|
59 |
LAYER_COLLECTION, LAYER_WITHOUT_LEGEND, LAYER_WITH_LEGEND, LAYER_WITH_IMAGE_LEGEND, LEGEND, IMAGE_LEGEND |
|
60 |
}; |
|
61 |
|
|
62 |
private final FLayer layer; |
|
63 |
private final FLayer sourceLayer; |
|
64 |
private final Image image; |
|
65 |
private final TYPE type; |
|
66 |
private final ISymbol symbol; |
|
67 |
private final String symbolDescription; |
|
68 |
|
|
69 |
/** |
|
70 |
* Constructor for a {@link LayerCollection} node |
|
71 |
* |
|
72 |
* @param layer |
|
73 |
*/ |
|
74 |
public TocTreeNode(LayerCollection layer) { |
|
75 |
super(layer); |
|
76 |
this.layer = (FLayer) layer; |
|
77 |
this.symbol = null; |
|
78 |
this.symbolDescription = null; |
|
79 |
this.sourceLayer = null; |
|
80 |
this.image = null; |
|
81 |
type = TYPE.LAYER_COLLECTION; |
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* Constructor for a {@link SingleLayer} node |
|
86 |
* |
|
87 |
* @param layer |
|
88 |
* @param hasLegend |
|
89 |
* whatever layer has legend defined or not |
|
90 |
*/ |
|
91 |
public TocTreeNode(SingleLayer layer, boolean hasLegend) { |
|
92 |
super(layer); |
|
93 |
this.layer = layer; |
|
94 |
this.symbol = null; |
|
95 |
this.symbolDescription = null; |
|
96 |
this.sourceLayer = null; |
|
97 |
this.image = null; |
|
98 |
if (hasLegend) { |
|
99 |
type = TYPE.LAYER_WITH_LEGEND; |
|
100 |
} else { |
|
101 |
type = TYPE.LAYER_WITHOUT_LEGEND; |
|
102 |
} |
|
103 |
} |
|
104 |
|
|
105 |
/** |
|
106 |
* Constructor for a {@link SingleLayer} node without legend defined |
|
107 |
* |
|
108 |
* @param layer |
|
109 |
*/ |
|
110 |
public TocTreeNode(SingleLayer layer) { |
|
111 |
this(layer, false); |
|
112 |
} |
|
113 |
|
|
114 |
/** |
|
115 |
* Constructor for a {@link SingleLayer} which has a image legend ( |
|
116 |
* implements {@link IHasImageLegend} ) |
|
117 |
* |
|
118 |
* @param layer |
|
119 |
* @param image |
|
120 |
*/ |
|
121 |
public TocTreeNode(SingleLayer layer, Image image) { |
|
122 |
super(layer); |
|
123 |
this.layer = layer; |
|
124 |
this.symbol = null; |
|
125 |
this.symbolDescription = null; |
|
126 |
this.sourceLayer = null; |
|
127 |
this.image = null; |
|
128 |
if (image != null) { |
|
129 |
type = TYPE.LAYER_WITH_IMAGE_LEGEND; |
|
130 |
} else { |
|
131 |
type = TYPE.LAYER_WITHOUT_LEGEND; |
|
132 |
} |
|
133 |
} |
|
134 |
|
|
135 |
/** |
|
136 |
* Constructor for a {@link ISymbol} node |
|
137 |
* |
|
138 |
* @param symbol |
|
139 |
* @param description |
|
140 |
* @param sourceLayer |
|
141 |
*/ |
|
142 |
public TocTreeNode(ISymbol symbol, String description, FLayer sourceLayer) { |
|
143 |
super(symbol); |
|
144 |
this.layer = null; |
|
145 |
this.symbol = symbol; |
|
146 |
this.symbolDescription = description; |
|
147 |
this.sourceLayer = sourceLayer; |
|
148 |
this.image = null; |
Also available in: Unified diff