Revision 38297
tags/v2_0_0_Build_2047/extensions/org.gvsig.app.document.layout.app/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
|
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
5 |
<modelVersion>4.0.0</modelVersion> |
|
6 |
<artifactId>org.gvsig.app.document.layout.app</artifactId> |
|
7 |
<packaging>pom</packaging> |
|
8 |
<version>2.0.0-SNAPSHOT</version> |
|
9 |
<name>Layout document plugins</name> |
|
10 |
<description>Layout document plugins</description> |
|
11 |
<parent> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.maven.base.extension.pom</artifactId> |
|
14 |
<version>1.0.8-SNAPSHOT</version> |
|
15 |
</parent> |
|
16 |
|
|
17 |
<scm> |
|
18 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/extensions/org.gvsig.app.document.layout.app</connection> |
|
19 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/branches/v2_0_0_prep/extensions/org.gvsig.app.document.layout.app</developerConnection> |
|
20 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-desktop/repository/show/branches/v2_0_0_prep/extensions/org.gvsig.app.document.layout.app</url> |
|
21 |
</scm> |
|
22 |
|
|
23 |
<developers> |
|
24 |
<developer> |
|
25 |
<id>jjdelcerro</id> |
|
26 |
<name>Joaqu?n Jos? del Cerro</name> |
|
27 |
<email>jjdelcerro@gvsig.org</email> |
|
28 |
<roles> |
|
29 |
<role>Architect</role> |
|
30 |
<role>Developer</role> |
|
31 |
</roles> |
|
32 |
</developer> |
|
33 |
<developer> |
|
34 |
<id>cordinyana</id> |
|
35 |
<name>C?sar Ordi?ana</name> |
|
36 |
<email>cordinyana@gvsig.com</email> |
|
37 |
<roles> |
|
38 |
<role>Architect</role> |
|
39 |
<role>Developer</role> |
|
40 |
</roles> |
|
41 |
</developer> |
|
42 |
</developers> |
|
43 |
<repositories> |
|
44 |
<repository> |
|
45 |
<id>gvsig-public-http-repository</id> |
|
46 |
<name>gvSIG maven public HTTP repository</name> |
|
47 |
<url>http://devel.gvsig.org/m2repo/j2se</url> |
|
48 |
<releases> |
|
49 |
<enabled>true</enabled> |
|
50 |
<updatePolicy>daily</updatePolicy> |
|
51 |
<checksumPolicy>warn</checksumPolicy> |
|
52 |
</releases> |
|
53 |
<snapshots> |
|
54 |
<enabled>true</enabled> |
|
55 |
<updatePolicy>daily</updatePolicy> |
|
56 |
<checksumPolicy>warn</checksumPolicy> |
|
57 |
</snapshots> |
|
58 |
</repository> |
|
59 |
</repositories> |
|
60 |
<dependencyManagement> |
|
61 |
<dependencies> |
|
62 |
<dependency> |
|
63 |
<groupId>org.gvsig</groupId> |
|
64 |
<artifactId>org.gvsig.core.maven.dependencies</artifactId> |
|
65 |
<version>2.0.1-SNAPSHOT</version> |
|
66 |
<type>pom</type> |
|
67 |
<scope>import</scope> |
|
68 |
</dependency> |
|
69 |
<dependency> |
|
70 |
<groupId>org.gvsig</groupId> |
|
71 |
<artifactId>org.gvsig.andami</artifactId> |
|
72 |
<version>2.0-SNAPSHOT</version> |
|
73 |
<scope>compile</scope> |
|
74 |
</dependency> |
|
75 |
<dependency> |
|
76 |
<groupId>org.gvsig</groupId> |
|
77 |
<artifactId>org.gvsig.app</artifactId> |
|
78 |
<version>2.0-SNAPSHOT</version> |
|
79 |
<scope>compile</scope> |
|
80 |
</dependency> |
|
81 |
</dependencies> |
|
82 |
</dependencyManagement> |
|
83 |
<modules> |
|
84 |
<module>org.gvsig.app.document.layout.app.mainplugin</module> |
|
85 |
</modules> |
|
86 |
<properties> |
|
87 |
<package.info.state>alpha5</package.info.state> |
|
88 |
</properties> |
|
89 |
</project> |
tags/v2_0_0_Build_2047/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/test/resources/README.txt | ||
---|---|---|
1 |
Put into this folder the resources needed by your test classes. |
|
2 |
|
|
3 |
This folder is added to the Tests classpath, so you can load any resources |
|
4 |
through the ClassLoader. |
|
5 |
|
|
6 |
By default, in this folder you can find an example of log4j configuration, |
|
7 |
prepared to log messages through the console, so logging works when you |
|
8 |
run your tests classes. |
tags/v2_0_0_Build_2047/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/test/resources/log4j.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1" ?> |
|
2 |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> |
|
3 |
|
|
4 |
<!-- |
|
5 |
Log4J configuration file for unit tests execution. |
|
6 |
--> |
|
7 |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> |
|
8 |
|
|
9 |
<!-- Appender configuration to show logging messages through the console --> |
|
10 |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> |
|
11 |
<layout class="org.apache.log4j.PatternLayout"> |
|
12 |
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n %m%n" /> |
|
13 |
</layout> |
|
14 |
</appender> |
|
15 |
|
|
16 |
<!-- |
|
17 |
Activate logging messages of DEBUG level of higher only for the |
|
18 |
org.gvsig.tools packages. |
|
19 |
You can put full classes names or packages instead, to configure |
|
20 |
logging for all the classes and subpackages of the package. |
|
21 |
--> |
|
22 |
<category name="org.gvsig.tools"> |
|
23 |
<priority value="DEBUG" /> |
|
24 |
</category> |
|
25 |
<category name="org.gvsig.app.document.layout"> |
|
26 |
<priority value="DEBUG" /> |
|
27 |
</category> |
|
28 |
|
|
29 |
<!-- |
|
30 |
By default, show only logging messages of INFO level or higher, |
|
31 |
through the previously configured CONSOLE appender. |
|
32 |
--> |
|
33 |
<root> |
|
34 |
<priority value="INFO" /> |
|
35 |
<appender-ref ref="CONSOLE" /> |
|
36 |
</root> |
|
37 |
</log4j:configuration> |
tags/v2_0_0_Build_2047/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/resources/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.app" /> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<label-set class-name="org.gvsig.app.project.documents.layout.gui.LayoutPanel"> |
|
7 |
<label id="units" size="80"/> |
|
8 |
<label id="2" size="180"/> |
|
9 |
<label id="3" size="180"/> |
|
10 |
<label id="4" size="50"/> |
|
11 |
<label id="5" size="50"/> |
|
12 |
</label-set> |
|
13 |
<extensions> |
|
14 |
<extension class-name="org.gvsig.app.extension.LayoutMainExtension" |
|
15 |
description="Extensi?n encargada de gestionar los layouts." |
|
16 |
active="true" |
|
17 |
priority="10"> |
|
18 |
|
|
19 |
<menu text="Mapa" |
|
20 |
position="500" |
|
21 |
is_separator="true"/> |
|
22 |
|
|
23 |
<menu text="Mapa/abrir_plantilla" |
|
24 |
action-command="OPENTEMPLATE" |
|
25 |
tooltip="abrir_plantilla" |
|
26 |
icon="layout-template-open" |
|
27 |
position="50010" |
|
28 |
last="true"/> |
|
29 |
</extension> |
|
30 |
|
|
31 |
<extension class-name="org.gvsig.app.extension.ExportLayoutExtension" |
|
32 |
description="Extension for exporting the layout to PDF and PostScript." |
|
33 |
active="true"> |
|
34 |
<menu text="Mapa/exportar" |
|
35 |
position="50010" |
|
36 |
is_separator="true"/> |
|
37 |
<menu text="Mapa/exportar/exportar_pdf" action-command="PDF" |
|
38 |
tooltip="exportar_pdf" icon="layout-export-pdf" |
|
39 |
position="5001010"/> |
|
40 |
<menu text="Mapa/exportar/exportar_ps" action-command="PS" |
|
41 |
tooltip="exportar_ps" icon="layout-export-ps" |
|
42 |
position="5001020"/> |
|
43 |
<tool-bar name="gvSIG" position="1"> |
|
44 |
<action-tool icon="layout-export-pdf" action-command="PDF" tooltip="exportar_pdf" position="4"/> |
|
45 |
<action-tool icon="layout-export-ps" action-command="PS" tooltip="exportar_ps" position="5"/> |
|
46 |
</tool-bar> |
|
47 |
</extension> |
|
48 |
|
|
49 |
<extension class-name="org.gvsig.app.extension.LayoutExtension" |
|
50 |
description="Extensi?n encargada de gestionar los eventos realizados sobre el Layout." |
|
51 |
active="true"> |
|
52 |
|
|
53 |
<menu text="Mapa/guardar_como_plantilla" action-command="SAVETEMPLATE" |
|
54 |
tooltip="guardar" |
|
55 |
icon="save-icon" |
|
56 |
position="50020"/> |
|
57 |
<menu text="Mapa/navegacion" |
|
58 |
position="50030" |
|
59 |
is_separator="true"/> |
|
60 |
<menu text="Mapa/navegacion/Zoom_Mas" position="5003010" action-command="LAYOUT_ZOOM_IN" tooltip="Zoom_Mas" icon="layout-zoom-in"/> |
|
61 |
<menu text="Mapa/navegacion/Zoom_Menos" position="5003020" action-command="LAYOUT_ZOOM_OUT" tooltip="Zoom_Menos" icon="layout-zoom-out"/> |
|
62 |
<menu text="Mapa/navegacion/Zoom_Acercar" position="5003030" action-command="LAYOUT_ZOOMIN" tooltip="Zoom_Acercar" icon="view-zoom-center-in"/> |
|
63 |
<menu text="Mapa/navegacion/Zoom_Alejar" position="5003040" action-command="LAYOUT_ZOOMOUT" tooltip="Zoom_Alejar" icon="view-zoom-center-out"/> |
|
64 |
<menu text="Mapa/navegacion/Zoom_Completo" position="5003050" action-command="LAYOUT_FULL" tooltip="Zoom_Completo" icon="layout-zoom-fit"/> |
|
65 |
<menu text="Mapa/navegacion/Zoom_Real" position="5003060" action-command="REALZOOM" tooltip="Zoom_Real" icon="layout-zoom-real"/> |
|
66 |
<menu text="Mapa/navegacion/Zoom_Select" position="5003070" action-command="ZOOMSELECT" tooltip="Zoom_Select" icon="layout-zoom-selected"/> |
|
67 |
<menu text="Mapa/navegacion/Desplazamiento" position="5003080" action-command="LAYOUT_PAN" tooltip="Encuadre" icon="layout-pan"/> |
|
68 |
<tool-bar name="Layout_Tools_Zooms" position="20"> |
|
69 |
<selectable-tool icon="layout-zoom-in" action-command="LAYOUT_ZOOM_IN" tooltip="Zoom_Mas"/> |
|
70 |
<selectable-tool icon="layout-zoom-out" action-command="LAYOUT_ZOOM_OUT" tooltip="Zoom_Menos"/> |
|
71 |
<action-tool icon="view-zoom-center-in" action-command="LAYOUT_ZOOMIN" tooltip="Zoom_Acercar"/> |
|
72 |
<action-tool icon="view-zoom-center-out" action-command="LAYOUT_ZOOMOUT" tooltip="Zoom_Alejar"/> |
|
73 |
<action-tool icon="layout-zoom-fit" action-command="LAYOUT_FULL" tooltip="Zoom_Completo"/> |
|
74 |
<action-tool icon="layout-zoom-real" action-command="REALZOOM" tooltip="Zoom_Real"/> |
|
75 |
<action-tool icon="layout-zoom-selected" action-command="ZOOMSELECT" tooltip="Zoom_Select"/> |
|
76 |
<selectable-tool icon="layout-pan" action-command="LAYOUT_PAN" tooltip="Encuadre"/> |
|
77 |
</tool-bar> |
|
78 |
</extension> |
|
79 |
|
|
80 |
<extension class-name="org.gvsig.app.extension.LayoutEditableControls" |
|
81 |
description="Extensi?n encargada de gestionar los eventos de edici?n realizados sobre el Layout." |
|
82 |
active="true"> |
|
83 |
<menu text="Mapa/propiedades" position="50040" action-command="PROPERTIES" tooltip="propiedades_mapa"/> |
|
84 |
</extension> |
|
85 |
|
|
86 |
<extension class-name="org.gvsig.app.extension.LayoutEditVertexExtension" |
|
87 |
description="Extensi?n encargada de gestionar los eventos de edici?n realizados sobre el Layout." |
|
88 |
active="true"> |
|
89 |
<menu text="Mapa/edicion" |
|
90 |
position="50050" |
|
91 |
is_separator="true"/> |
|
92 |
<menu text="Mapa/edicion/editar_vertices" position="5005010" action-command="VERTEX" tooltip="editar_vertices" icon="layout-edit-vertex"/> |
|
93 |
<tool-bar name="Tools_Select" position="6"> |
|
94 |
<selectable-tool icon="layout-edit-vertex" action-command="VERTEX" tooltip="editar_vertices" position="4"/> |
|
95 |
</tool-bar> |
|
96 |
</extension> |
|
97 |
|
|
98 |
<extension class-name="org.gvsig.app.extension.LayoutInsertToolsExtension" |
|
99 |
description="Extensi?n encargada de gestionar los eventos de edici?n realizados sobre el Layout." |
|
100 |
active="true"> |
|
101 |
<menu text="Mapa/seleccion" |
|
102 |
position="50060" |
|
103 |
is_separator="true"/> |
|
104 |
<menu text="Mapa/seleccion/seleccionar_por_rectangulo" position="5006010" action-command="SELECT" tooltip="seleccionar_por_rectangulo" icon="view-select-geometry"/> |
|
105 |
<menu text="Mapa/Insertar" |
|
106 |
position="50070" |
|
107 |
is_separator="true"/> |
|
108 |
<menu text="Mapa/Insertar/texto" position="5007010" action-command="RECTANGLETEXT" tooltip="insertar_texto" icon="layout-insert-text"/> |
|
109 |
<menu text="Mapa/Insertar/punto" position="5007015" action-command="POINT" tooltip="insertar_punto" icon="layout-insert-point"/> |
|
110 |
<menu text="Mapa/Insertar/rectangulo" position="5007020" action-command="RECTANGLESIMPLE" tooltip="insertar_rectangulo" icon="layout-insert-polygon"/> |
|
111 |
<menu text="Mapa/Insertar/circulo" position="5007025" action-command="CIRCLE" tooltip="insertar_circulo" icon="layout-insert-circle"/> |
|
112 |
<menu text="Mapa/Insertar/linea" position="5007030" action-command="LINE" tooltip="insertar_linea" icon="layout-insert-line"/> |
|
113 |
<menu text="Mapa/Insertar/polilinea" position="5007035" action-command="POLYLINE" tooltip="insertar_polilinea" icon="layout-insert-polyline"/> |
|
114 |
<menu text="Mapa/Insertar/poligono" position="5007040" action-command="POLYGON" tooltip="insertar_poligono" icon="layout-insert-poligon"/> |
|
115 |
<menu text="Mapa/Insertar/imagen" position="5007045" action-command="RECTANGLEPICTURE" tooltip="insertar_imagen" icon="layout-insert-image"/> |
|
116 |
<menu text="Mapa/Insertar/Vista" position="5007050" action-command="RECTANGLEVIEW" tooltip="insertar_vista" icon="layout-insert-view"/> |
|
117 |
<menu text="Mapa/Insertar/Localizador" position="5007055" action-command="RECTANGLEOVERVIEW" tooltip="insertar_localizador" icon="layout-insert-locator"/> |
|
118 |
<menu text="Mapa/Insertar/leyenda" position="5007060" action-command="RECTANGLELEGEND" tooltip="insertar_leyenda" icon="layout-insert-legend"/> |
|
119 |
<menu text="Mapa/Insertar/escala" position="5007065" action-command="RECTANGLESCALEBAR" tooltip="insertar_escala" icon="layout-insert-scalebar"/> |
|
120 |
<menu text="Mapa/Insertar/north" position="5007070" action-command="RECTANGLENORTH" tooltip="insertar_norte" icon="layout-insert-north"/> |
|
121 |
<menu text="Mapa/Insertar/cajetin" position="5007075" action-command="RECTANGLEBOX" tooltip="insertar_cajetin" icon="layout-insert-box"/> |
|
122 |
|
|
123 |
<tool-bar name="Tools_Select" position="6"> |
|
124 |
<selectable-tool icon="view-select-geometry" action-command="SELECT" tooltip="seleccionar_por_rectangulo" position="5"/> |
|
125 |
<action-tool icon="remove-selection" action-command="REMOVE" tooltip="borra_seleccion" position="6"/> |
|
126 |
</tool-bar> |
|
127 |
|
|
128 |
<tool-bar name="Layout_Tools_Insert_Simple" position="7"> |
|
129 |
<selectable-tool icon="layout-insert-text" action-command="RECTANGLETEXT" tooltip="insertar_texto" position="1"/> |
|
130 |
<selectable-tool icon="layout-insert-image" action-command="RECTANGLEPICTURE" tooltip="insertar_imagen" position="2"/> |
|
131 |
<selectable-tool icon="layout-insert-point" action-command="POINT" tooltip="insertar_punto" position="3"/> |
|
132 |
<selectable-tool icon="layout-insert-polygon" action-command="RECTANGLESIMPLE" tooltip="insertar_rectangulo" position="4"/> |
|
133 |
<selectable-tool icon="layout-insert-circle" action-command="CIRCLE" tooltip="insertar_circulo" position="5"/> |
|
134 |
<selectable-tool icon="layout-insert-line" action-command="LINE" tooltip="insertar_linea" position="6"/> |
|
135 |
<selectable-tool icon="layout-insert-polyline" action-command="POLYLINE" tooltip="insertar_polilinea" position="7"/> |
|
136 |
<selectable-tool icon="layout-insert-poligon" action-command="POLYGON" tooltip="insertar_poligono" position="8"/> |
|
137 |
</tool-bar> |
|
138 |
|
|
139 |
<tool-bar name="Layout_Tools_Insert_Cartografy" position="8"> |
|
140 |
<selectable-tool icon="layout-insert-view" action-command="RECTANGLEVIEW" tooltip="insertar_vista" position="1"/> |
|
141 |
<selectable-tool icon="layout-insert-locator" action-command="RECTANGLEOVERVIEW" tooltip="insertar_localizador" position="2"/> |
|
142 |
<selectable-tool icon="layout-insert-legend" action-command="RECTANGLELEGEND" tooltip="insertar_leyenda" position="3"/> |
|
143 |
<selectable-tool icon="layout-insert-scalebar" action-command="RECTANGLESCALEBAR" tooltip="insertar_escala" position="4"/> |
|
144 |
<selectable-tool icon="layout-insert-north" action-command="RECTANGLENORTH" tooltip="insertar_norte" position="5"/> |
|
145 |
<selectable-tool icon="layout-insert-box" action-command="RECTANGLEBOX" tooltip="insertar_cajetin" position="6"/> |
|
146 |
</tool-bar> |
|
147 |
</extension> |
|
148 |
|
|
149 |
<extension class-name="org.gvsig.app.extension.FFrameViewExtension" |
|
150 |
description="Extensi?n encargada de gestionar los eventos realizados sobre las vistas a?adidas al Layout." |
|
151 |
active="true"> |
|
152 |
<menu text="Mapa/navegacion_vista" |
|
153 |
position="50070" |
|
154 |
is_separator="true"/> |
|
155 |
<menu text="Mapa/navegacion_vista/Zoom_Mas_Vista" position="5007010" action-command="VIEW_ZOOMIN" tooltip="Zoom_Mas_Vista" icon="view-zoom-in"/> |
|
156 |
<menu text="Mapa/navegacion_vista/Zoom_Menos_Vista" position="5007020" action-command="VIEW_ZOOMOUT" tooltip="Zoom_Menos_Vista" icon="view-zoom-out"/> |
|
157 |
<menu text="Mapa/navegacion_vista/Zoom_Completo_Vista" position="5007030" action-command="VIEW_FULL" tooltip="Zoom_Completo_Vista" icon="view-zoom-map-contents"/> |
|
158 |
<menu text="Mapa/navegacion_vista/Encuadre_Vista" position="5007040" action-command="VIEW_PAN" tooltip="Encuadre_Vista" icon="view-pan"/> |
|
159 |
<tool-bar name="Layout_Tools_View" position="9"> |
|
160 |
<action-tool icon="view-zoom-map-contents" action-command="VIEW_FULL" tooltip="Zoom_Completo_Vista" position="1"/> |
|
161 |
<selectable-tool icon="view-zoom-in" action-command="VIEW_ZOOMIN" tooltip="Zoom_Mas_Vista" position="2"/> |
|
162 |
<selectable-tool icon="view-zoom-out" action-command="VIEW_ZOOMOUT" tooltip="Zoom_Menos_Vista" position="3"/> |
|
163 |
<selectable-tool icon="view-pan" action-command="VIEW_PAN" tooltip="Encuadre_Vista" position="4"/> |
|
164 |
</tool-bar> |
|
165 |
</extension> |
|
166 |
|
|
167 |
<extension class-name="org.gvsig.app.extension.TagExtension" |
|
168 |
description="Extensi?n para a?adir un tag a los FFrames." |
|
169 |
active="false"> |
|
170 |
<menu text="Mapa/anadir_tag" position="50075" key="t" action-command="SET_TAG" tooltip="anadir_tag" icon="layout-tag"/> |
|
171 |
<tool-bar name="Mapa" position="10"> |
|
172 |
<action-tool icon="layout-insert-tag" action-command="SET_TAG" tooltip="anadir_tag" position="1"/> |
|
173 |
<action-tool icon="layout-show-tag" action-command="VIEW_TAGS" tooltip="ver_tags" position="2"/> |
|
174 |
</tool-bar> |
|
175 |
</extension> |
|
176 |
|
|
177 |
<extension class-name="org.gvsig.app.extension.LayoutGraphicControls" |
|
178 |
description="Extensi?n encargada de gestionar los eventos realizados sobre los gr?ficos que contiene el Layout." |
|
179 |
active="true"> |
|
180 |
<menu text="Mapa/Graficos" |
|
181 |
position="50080" |
|
182 |
is_separator="true"/> |
|
183 |
<menu text="Mapa/Graficos/propiedades" position="5008010" action-command="PROPIEDADES" tooltip="propiedades" /> |
|
184 |
<menu text="Mapa/Graficos/alinear" position="5008020" action-command="ALINEAR" tooltip="alinear_graficos"/> |
|
185 |
<menu text="Mapa/Graficos/agrupar" position="5008030" action-command="AGRUPAR" tooltip="agrupar_graficos" icon="layout-group"/> |
|
186 |
<menu text="Mapa/Graficos/desagrupar" position="5008040" action-command="DESAGRUPAR" tooltip="desagrupar_graficos" icon="layout-ungroup"/> |
|
187 |
<menu text="Mapa/Graficos/colocar_delante" position="5008050" action-command="DELANTE" tooltip="colocar_delante" icon="layout-bring-to-front"/> |
|
188 |
<menu text="Mapa/Graficos/colocar_detras" position="5008060" action-command="DETRAS" tooltip="colocar_detras" icon="layout-send-to-back"/> |
|
189 |
<menu text="Mapa/Graficos/tamano_posicion" position="5008070" action-command="POSICIONAR" tooltip="tamano_posicion" icon="layout-set-size-position"/> |
|
190 |
<menu text="Mapa/Graficos/linea_grafica" position="5008080" action-command="BORDEAR" tooltip="linea_grafica" icon="layout-add-border"/> |
|
191 |
<tool-bar name="Layout_Tools_Graphics" position="11"> |
|
192 |
<action-tool icon="layout-bring-to-front" action-command="DELANTE" tooltip="colocar_delante" position="1"/> |
|
193 |
<action-tool icon="layout-send-to-back" action-command="DETRAS" tooltip="colocar_detras" position="2"/> |
|
194 |
<action-tool icon="layout-set-size-position" action-command="POSICIONAR" tooltip="tamano_posicion" position="3"/> |
|
195 |
<action-tool icon="layout-group" action-command="AGRUPAR" tooltip="agrupar_graficos" position="4"/> |
|
196 |
<action-tool icon="layout-ungroup" action-command="DESAGRUPAR" tooltip="desagrupar_graficos" position="5"/> |
|
197 |
<action-tool icon="layout-add-border" action-command="BORDEAR" tooltip="linea_grafica" position="6"/> |
|
198 |
</tool-bar> |
|
199 |
</extension> |
|
200 |
|
|
201 |
<extension class-name="org.gvsig.app.extension.FFrameLegendExtension" |
|
202 |
description="Extensi?n encargada de controlar un FFrameLegend." |
|
203 |
active="true"> |
|
204 |
<menu text="Mapa/Graficos/simplificar_leyenda" position="5008090" action-command="SIMPLIFICAR" tooltip="simplificar_leyenda"/> |
|
205 |
</extension> |
|
206 |
|
|
207 |
<extension class-name="org.gvsig.app.extension.LayoutRedoExtension" |
|
208 |
description="Extensi?n para rehacer cambios sobre el Layout." |
|
209 |
active="true"> |
|
210 |
<menu text="Mapa/rehacer" position="50084" action-command="REDO" tooltip="rehacer" icon="layout-redo"/> |
|
211 |
<tool-bar name="Mapa" position="10"> |
|
212 |
<action-tool icon="layout-redo" action-command="REDO" tooltip="rehacer" position="4"/> |
|
213 |
</tool-bar> |
|
214 |
</extension> |
|
215 |
|
|
216 |
<extension class-name="org.gvsig.app.extension.LayoutUndoExtension" |
|
217 |
description="Extensi?n para deshacer cambios sobre el Layout." |
|
218 |
active="true"> |
|
219 |
<menu text="Mapa/deshacer" position="50086" action-command="UNDO" tooltip="dehacer" icon="layout-undo"/> |
|
220 |
<tool-bar name="Mapa" position="10"> |
|
221 |
<action-tool icon="layout-undo" action-command="UNDO" tooltip="deshacer" position="3"/> |
|
222 |
</tool-bar> |
|
223 |
</extension> |
|
224 |
|
|
225 |
<extension class-name="org.gvsig.app.extension.LayoutCommandStackExtension" |
|
226 |
description="Extensi?n encargada de abrir el di?logo para gestionar los comandos apilados." |
|
227 |
active="true"> |
|
228 |
<menu text="Mapa/pila_de_comandos" position="50090" key="k" action-command="COMMANDSTACK" tooltip="pila_de_comandos" icon="edition-command-stack"/> |
|
229 |
<tool-bar name="Mapa" position="10"> |
|
230 |
<action-tool icon="edition-command-stack" action-command="COMMANDSTACK" tooltip="pila_de_comandos" position="5"/> |
|
231 |
</tool-bar> |
|
232 |
</extension> |
|
233 |
|
|
234 |
<extension class-name="org.gvsig.app.extension.Print" |
|
235 |
description="Extensi?n encargada de la impresi?n." |
|
236 |
active="true"> |
|
237 |
<menu text="Mapa/Imprimir" position="50094" icon="document-print" tooltip="Imprimir"/> |
|
238 |
<tool-bar name="Mapa" position="10"> |
|
239 |
<action-tool icon="document-print" tooltip="Imprimir" position="6"/> |
|
240 |
</tool-bar> |
|
241 |
</extension> |
|
242 |
|
|
243 |
<extension class-name="org.gvsig.app.extension.PrintProperties" |
|
244 |
escription="Extensi?n encargada de las propiedades de impresi?n." |
|
245 |
active="true"> |
|
246 |
<menu text="Mapa/preparar_pagina" position="50096" action-command="CONFIG" tooltip="preparar_pagina"/> |
|
247 |
<tool-bar name="Mapa" position="10"> |
|
248 |
<action-tool icon="layout-page-setup" tooltip="preparar_pagina" position="7"/> |
|
249 |
</tool-bar> |
|
250 |
</extension> |
|
251 |
</extensions> |
|
252 |
</plugin-config> |
tags/v2_0_0_Build_2047/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/resources/build.number | ||
---|---|---|
1 |
#Build Number for ANT. Do not edit! |
|
2 |
#Tue Apr 28 16:00:47 CEST 2009 |
|
3 |
build.number=2005 |
tags/v2_0_0_Build_2047/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/LayoutManager.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.app.project.documents.layout; |
|
23 |
|
|
24 |
import java.awt.geom.AffineTransform; |
|
25 |
|
|
26 |
import org.gvsig.app.project.documents.DocumentManager; |
|
27 |
import org.gvsig.app.project.documents.layout.fframes.FrameFactory; |
|
28 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
29 |
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.IFFrameDialog; |
|
30 |
import org.gvsig.app.project.documents.layout.gui.LayoutPanel; |
|
31 |
import org.gvsig.app.project.documents.view.IContextMenuAction; |
|
32 |
|
|
33 |
/** |
|
34 |
* @author gvSIG Team |
|
35 |
* @version $Id: LayoutManager.java 34861 2011-03-31 11:31:50Z nfrancisco $ |
|
36 |
* |
|
37 |
*/ |
|
38 |
public interface LayoutManager extends DocumentManager { |
|
39 |
|
|
40 |
public static String TEMPLATE_FILE_EXTENSION = ".gvsLayoutTemp"; |
|
41 |
|
|
42 |
public IFFrame createFrame(String frameName); |
|
43 |
|
|
44 |
public IFFrameDialog createFFrameDialog(IFFrame fframe, |
|
45 |
LayoutPanel layoutPanel, AffineTransform affineTransform); |
|
46 |
|
|
47 |
public IFFrameDialog createFFrameDialog(IFFrame fframe, |
|
48 |
LayoutPanel layoutPanel); |
|
49 |
|
|
50 |
public void registerFFrameDialog(String name, Class clazz); |
|
51 |
|
|
52 |
/** |
|
53 |
* Registers in the points of extension the Factory with alias. |
|
54 |
* |
|
55 |
* @param frameFactory |
|
56 |
* FrameFactory to register. |
|
57 |
* @param alias |
|
58 |
* Alias. |
|
59 |
*/ |
|
60 |
public void registerFrameFactory(FrameFactory frameFactory, String alias); |
|
61 |
|
|
62 |
/** |
|
63 |
* Registers in the points of extension the Factory |
|
64 |
* |
|
65 |
* @param frameFactory |
|
66 |
* FrameFactory to register. |
|
67 |
*/ |
|
68 |
public void registerFrameFactory(FrameFactory frameFactory); |
|
69 |
|
|
70 |
public void registerLayoutMenuAction(String name, Class<? extends IContextMenuAction> clazz); |
|
71 |
|
|
72 |
public IContextMenuAction[] createLayoutMenuActions(LayoutPanel layoutPanel); |
|
73 |
} |
tags/v2_0_0_Build_2047/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/Size.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.app.project.documents.layout; |
|
23 |
|
|
24 |
import org.gvsig.tools.ToolsLocator; |
|
25 |
import org.gvsig.tools.dynobject.DynStruct; |
|
26 |
import org.gvsig.tools.persistence.PersistenceManager; |
|
27 |
import org.gvsig.tools.persistence.Persistent; |
|
28 |
import org.gvsig.tools.persistence.PersistentState; |
|
29 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
|
30 |
|
|
31 |
/** |
|
32 |
* Clase que almacena la altura y anchura de un folio. |
|
33 |
* |
|
34 |
* @author Vicente Caballero Navarro |
|
35 |
*/ |
|
36 |
public class Size implements Persistent { |
|
37 |
|
|
38 |
public static final String PERSISTENCE_DEFINITION_NAME = "Size"; |
|
39 |
private static final String HEIGHT_FIELD = "height"; |
|
40 |
private static final String WIDTH_FIELD = "width"; |
|
41 |
|
|
42 |
private double alto; |
|
43 |
private double ancho; |
|
44 |
|
|
45 |
public Size() { |
|
46 |
|
|
47 |
} |
|
48 |
|
|
49 |
/** |
|
50 |
* Creates a new Size object. |
|
51 |
* |
|
52 |
* @param al |
|
53 |
* Altura |
|
54 |
* @param an |
|
55 |
* Anchura |
|
56 |
*/ |
|
57 |
public Size(double al, double an) { |
|
58 |
alto = al; |
|
59 |
ancho = an; |
|
60 |
} |
|
61 |
|
|
62 |
/** |
|
63 |
* Devuelve el alto del folio. |
|
64 |
* |
|
65 |
* @return altura. |
|
66 |
*/ |
|
67 |
public double getAlto() { |
|
68 |
return alto; |
|
69 |
} |
|
70 |
|
|
71 |
/** |
|
72 |
* Devuelve la anchura del folio. |
|
73 |
* |
|
74 |
* @return Anchura. |
|
75 |
*/ |
|
76 |
public double getAncho() { |
|
77 |
return ancho; |
|
78 |
} |
|
79 |
|
|
80 |
public static void registerPersistent() { |
|
81 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
|
82 |
if (manager.getDefinition(PERSISTENCE_DEFINITION_NAME) == null) { |
|
83 |
DynStruct definition = |
|
84 |
manager.addDefinition(Size.class, PERSISTENCE_DEFINITION_NAME, |
|
85 |
"Size persistence definition", null, null); |
|
86 |
|
|
87 |
definition.addDynFieldDouble(HEIGHT_FIELD).setMandatory(true); |
|
88 |
definition.addDynFieldDouble(WIDTH_FIELD).setMandatory(true); |
|
89 |
} |
|
90 |
} |
|
91 |
|
|
92 |
public void loadFromState(PersistentState state) |
|
93 |
throws PersistenceException { |
|
94 |
alto = state.getDouble(HEIGHT_FIELD); |
|
95 |
ancho = state.getDouble(WIDTH_FIELD); |
|
96 |
} |
|
97 |
|
|
98 |
public void saveToState(PersistentState state) throws PersistenceException { |
|
99 |
state.set(HEIGHT_FIELD, alto); |
|
100 |
state.set(WIDTH_FIELD, ancho); |
|
101 |
} |
|
102 |
} |
tags/v2_0_0_Build_2047/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/FLayoutZooms.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.app.project.documents.layout; |
|
23 |
|
|
24 |
import java.awt.Point; |
|
25 |
import java.awt.Toolkit; |
|
26 |
import java.awt.geom.AffineTransform; |
|
27 |
import java.awt.geom.Point2D; |
|
28 |
import java.awt.geom.Rectangle2D; |
|
29 |
import java.util.prefs.Preferences; |
|
30 |
|
|
31 |
import org.slf4j.Logger; |
|
32 |
import org.slf4j.LoggerFactory; |
|
33 |
|
|
34 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
35 |
import org.gvsig.app.project.documents.layout.fframes.IFFrameUseFMap; |
|
36 |
import org.gvsig.app.project.documents.layout.gui.LayoutPanel; |
|
37 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
38 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
39 |
import org.gvsig.fmap.geom.GeometryManager; |
|
40 |
import org.gvsig.fmap.geom.exception.CreateEnvelopeException; |
|
41 |
import org.gvsig.fmap.mapcontext.MapContext; |
|
42 |
import org.gvsig.tools.observer.Observable; |
|
43 |
import org.gvsig.tools.observer.ObservableHelper; |
|
44 |
import org.gvsig.tools.observer.Observer; |
|
45 |
|
|
46 |
/** |
|
47 |
* Clase encargada de realizar los zooms al Layout. |
|
48 |
* |
|
49 |
* @author Vicente Caballero Navarro |
|
50 |
*/ |
|
51 |
public class FLayoutZooms implements Observable{ |
|
52 |
|
|
53 |
private static final GeometryManager geomManager = GeometryLocator |
|
54 |
.getGeometryManager(); |
|
55 |
private static final Logger logger = LoggerFactory |
|
56 |
.getLogger(FLayoutZooms.class); |
|
57 |
private LayoutPanel layout = null; |
|
58 |
private ObservableHelper observers; |
|
59 |
|
|
60 |
public FLayoutZooms(LayoutPanel layoutPanel) { |
|
61 |
layout = layoutPanel; |
|
62 |
observers = new ObservableHelper(); |
|
63 |
observers.addObserver(layoutPanel.getLayoutControl()); |
|
64 |
} |
|
65 |
|
|
66 |
/** |
|
67 |
* Realiza un zoom por rect?ngulo o por punto con un escalado por defecto |
|
68 |
* sobre el Layout que se le pasa como par?metro. |
|
69 |
* |
|
70 |
* @param p1 |
|
71 |
* punto de inicio del rect?ngulo. |
|
72 |
* @param p2 |
|
73 |
* punto final del rec?ngulo. |
|
74 |
*/ |
|
75 |
public void setZoomIn(Point p1, Point p2) { |
|
76 |
if (java.lang.Math.abs(layout.getLayoutControl().getFirstPoint().x |
|
77 |
- p2.x) < 4) { |
|
78 |
double difw = 2; |
|
79 |
setZoom(difw, p2); |
|
80 |
} else { |
|
81 |
if (p1.getX() > p2.getX()) { |
|
82 |
int aux = p2.x; |
|
83 |
p2.x = p1.x; |
|
84 |
p1.x = aux; |
|
85 |
} |
|
86 |
|
|
87 |
if (p1.getY() > p2.getY()) { |
|
88 |
int aux = p2.y; |
|
89 |
p2.y = p1.y; |
|
90 |
p1.y = aux; |
|
91 |
} |
|
92 |
|
|
93 |
Point2D.Double pSheet1 = |
|
94 |
FLayoutUtilities.toSheetPoint( |
|
95 |
new Point2D.Double(p1.getX(), p1.getY()), layout |
|
96 |
.getLayoutControl().getAT()); |
|
97 |
Point2D.Double pSheet2 = |
|
98 |
FLayoutUtilities.toSheetPoint( |
|
99 |
new Point2D.Double(p2.getX(), p2.getY()), layout |
|
100 |
.getLayoutControl().getAT()); |
|
101 |
|
|
102 |
double xmin; |
|
103 |
double xmax; |
|
104 |
double ymin; |
|
105 |
double ymax = 0; |
|
106 |
|
|
107 |
if (pSheet1.x > pSheet2.x) { |
|
108 |
xmin = pSheet2.x; |
|
109 |
xmax = pSheet1.x; |
|
110 |
} else { |
|
111 |
xmin = pSheet1.x; |
|
112 |
xmax = pSheet2.x; |
|
113 |
} |
|
114 |
|
|
115 |
if (pSheet1.y > pSheet2.y) { |
|
116 |
ymin = pSheet2.y; |
|
117 |
ymax = pSheet1.y; |
|
118 |
} else { |
|
119 |
ymin = pSheet1.y; |
|
120 |
ymax = pSheet2.y; |
|
121 |
} |
|
122 |
|
|
123 |
Rectangle2D.Double rScreen = new Rectangle2D.Double(); |
|
124 |
Rectangle2D.Double rSheet = new Rectangle2D.Double(); |
|
125 |
double x = |
|
126 |
FLayoutUtilities.toSheetDistance(layout.getLayoutControl() |
|
127 |
.getRect().getX(), layout.getLayoutControl().getAT()); |
|
128 |
double y = |
|
129 |
FLayoutUtilities.toSheetDistance(layout.getLayoutControl() |
|
130 |
.getRect().getY(), layout.getLayoutControl().getAT()); |
|
131 |
double w = |
|
132 |
FLayoutUtilities.toSheetDistance(layout.getLayoutControl() |
|
133 |
.getRect().getWidth(), layout.getLayoutControl().getAT()); |
|
134 |
double h = |
|
135 |
FLayoutUtilities.toSheetDistance(layout.getLayoutControl() |
|
136 |
.getRect().getHeight(), layout.getLayoutControl().getAT()); |
|
137 |
|
|
138 |
double wv = |
|
139 |
FLayoutUtilities.toSheetDistance(layout.getVisibleRect() |
|
140 |
.getWidth(), layout.getLayoutControl().getAT()); |
|
141 |
double hv = |
|
142 |
FLayoutUtilities.toSheetDistance(layout.getVisibleRect() |
|
143 |
.getHeight(), layout.getLayoutControl().getAT()); |
|
144 |
double mw = xmax - xmin; |
|
145 |
double mh = ymax - ymin; |
|
146 |
double difw = wv / mw; |
|
147 |
double difh = hv / mh; |
|
148 |
|
|
149 |
if (difw < difh) { |
|
150 |
rSheet.x = |
|
151 |
(-xmin * difw) |
|
152 |
- x |
|
153 |
+ ((wv - ((pSheet2.getX() - pSheet1.getX()) * difw)) / 2); |
|
154 |
rSheet.y = |
|
155 |
(-ymin * difw) |
|
156 |
- y |
|
157 |
+ ((hv - ((pSheet2.getY() - pSheet1.getY()) * difw)) / 2); |
|
158 |
|
|
159 |
rSheet.width = w * difw; |
|
160 |
rSheet.height = h * difw; |
|
161 |
} else { |
|
162 |
rSheet.x = |
|
163 |
(-xmin * difh) |
|
164 |
- x |
|
165 |
+ ((wv - ((pSheet2.getX() - pSheet1.getX()) * difh)) / 2); |
|
166 |
rSheet.y = |
|
167 |
(-ymin * difh) |
|
168 |
- y |
|
169 |
+ ((hv - ((pSheet2.getY() - pSheet1.getY()) * difh)) / 2); |
|
170 |
|
|
171 |
rSheet.width = w * difh; |
|
172 |
rSheet.height = h * difh; |
|
173 |
} |
|
174 |
setPointsToZoom(p1, p2); |
|
175 |
rScreen.setRect(FLayoutUtilities.fromSheetRect(rSheet, layout |
|
176 |
.getLayoutControl().getAT())); |
|
177 |
if (FLayoutUtilities.isPosible(rScreen)) { |
|
178 |
layout.getLayoutControl().getRect().setRect(rScreen); |
|
179 |
} |
|
180 |
} |
|
181 |
} |
|
182 |
|
|
183 |
/** |
|
184 |
* Realiza un zoom out sobre el Layout que se le pasa como par?metro. |
|
185 |
* |
|
186 |
* @param p2 |
|
187 |
* punto central del rect?ngulo. |
|
188 |
*/ |
|
189 |
public void setZoomOut(Point p2) { |
|
190 |
double difw = 0.5; |
|
191 |
setZoom(difw, p2); |
|
192 |
} |
|
193 |
|
|
194 |
/** |
|
195 |
* Realiza un zoom out sobre el Layout que se le pasa como par?metro. |
|
196 |
* |
|
197 |
* @param dif |
|
198 |
* factor. |
|
199 |
* @param p2 |
|
200 |
* punto final del rec?ngulo. |
|
201 |
*/ |
|
202 |
public void setZoom(double dif, Point p2) { |
|
203 |
Point2D.Double pSheet2 = |
|
204 |
FLayoutUtilities.toSheetPoint( |
Also available in: Unified diff