Revision 1723
tags/org.gvsig.app.document.layout2.app-2.0.301/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/maven-v4_0_0.xsd"> |
|
2 |
|
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.app.document.layout2.app</artifactId> |
|
5 |
<packaging>pom</packaging> |
|
6 |
<version>2.0.301</version> |
|
7 |
|
|
8 |
<name>${project.artifactId}</name> |
|
9 |
<description>This plugin adds creation/management of layout (map) documents.</description> |
|
10 |
|
|
11 |
<parent> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.desktop</artifactId> |
|
14 |
<version>2.0.445</version> |
|
15 |
</parent> |
|
16 |
|
|
17 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-app-document-layout</url> |
|
18 |
|
|
19 |
<scm> |
|
20 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-app-document-layout/tags/org.gvsig.app.document.layout2.app-2.0.301</connection> |
|
21 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-app-document-layout/tags/org.gvsig.app.document.layout2.app-2.0.301</developerConnection> |
|
22 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-app-document-layout/repository/show/tags/org.gvsig.app.document.layout2.app-2.0.301</url> |
|
23 |
</scm> |
|
24 |
<repositories> |
|
25 |
<repository> |
|
26 |
<id>gvsig-public-http-repository</id> |
|
27 |
<name>gvSIG maven public HTTP repository</name> |
|
28 |
<url>http://devel.gvsig.org/m2repo/j2se</url> |
|
29 |
<releases> |
|
30 |
<enabled>true</enabled> |
|
31 |
<updatePolicy>daily</updatePolicy> |
|
32 |
<checksumPolicy>warn</checksumPolicy> |
|
33 |
</releases> |
|
34 |
<snapshots> |
|
35 |
<enabled>true</enabled> |
|
36 |
<updatePolicy>daily</updatePolicy> |
|
37 |
<checksumPolicy>warn</checksumPolicy> |
|
38 |
</snapshots> |
|
39 |
</repository> |
|
40 |
</repositories> |
|
41 |
|
|
42 |
<build> |
|
43 |
<plugins> |
|
44 |
<plugin> |
|
45 |
<groupId>org.apache.maven.plugins</groupId> |
|
46 |
<artifactId>maven-release-plugin</artifactId> |
|
47 |
<configuration> |
|
48 |
<tagBase>https://devel.gvsig.org/svn/gvsig-app-document-layout/tags</tagBase> |
|
49 |
</configuration> |
|
50 |
</plugin> |
|
51 |
</plugins> |
|
52 |
</build> |
|
53 |
|
|
54 |
<dependencyManagement> |
|
55 |
<dependencies> |
|
56 |
<!-- |
|
57 |
Versions of child projects |
|
58 |
--> |
|
59 |
<dependency> |
|
60 |
<groupId>org.gvsig</groupId> |
|
61 |
<artifactId>org.gvsig.app.document.layout2.app.mainplugin</artifactId> |
|
62 |
<version>2.0.301</version> |
|
63 |
</dependency> |
|
64 |
<dependency> |
|
65 |
<groupId>org.gvsig</groupId> |
|
66 |
<artifactId>org.gvsig.pdf.swing.api</artifactId> |
|
67 |
<version>${org.gvsig.pdf.version}</version> |
|
68 |
</dependency> |
|
69 |
<dependency> |
|
70 |
<groupId>org.gvsig</groupId> |
|
71 |
<artifactId>org.gvsig.report.lib.api</artifactId> |
|
72 |
<version>${org.gvsig.report.version}</version> |
|
73 |
</dependency> |
|
74 |
|
|
75 |
|
|
76 |
</dependencies> |
|
77 |
</dependencyManagement> |
|
78 |
<properties> |
|
79 |
<org.gvsig.pdf.version>1.0.151</org.gvsig.pdf.version> |
|
80 |
</properties> |
|
81 |
<modules> |
|
82 |
<module>org.gvsig.app.document.layout2.app.mainplugin</module> |
|
83 |
</modules> |
|
84 |
|
|
85 |
</project> |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Fri Apr 12 10:46:21 CEST 2024 |
|
2 |
buildNumber=324 |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>gvsig-plugin-package</id> |
|
3 |
<formats> |
|
4 |
<format>zip</format> |
|
5 |
</formats> |
|
6 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
7 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
8 |
<files> |
|
9 |
<file> |
|
10 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
11 |
<outputDirectory>lib</outputDirectory> |
|
12 |
</file> |
|
13 |
<file> |
|
14 |
<source>target/package.info</source> |
|
15 |
</file> |
|
16 |
</files> |
|
17 |
|
|
18 |
<fileSets> |
|
19 |
<fileSet> |
|
20 |
<directory>src/main/resources-plugin</directory> |
|
21 |
<outputDirectory>.</outputDirectory> |
|
22 |
</fileSet> |
|
23 |
</fileSets> |
|
24 |
|
|
25 |
<dependencySets> |
|
26 |
|
|
27 |
<!-- |
|
28 |
<dependencySet> |
|
29 |
<useProjectArtifact>false</useProjectArtifact> |
|
30 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
31 |
<outputDirectory>lib</outputDirectory> |
|
32 |
<includes> |
|
33 |
</includes> |
|
34 |
</dependencySet> |
|
35 |
|
|
36 |
--> |
|
37 |
|
|
38 |
</dependencySets> |
|
39 |
|
|
40 |
</assembly> |
|
0 | 41 |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/panel/FFrameMapBoxPanelView.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/fdiaz/projects/gvSIG/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/gui/dialogs/FFrameMapBoxView.xml</at> |
|
28 |
<at name="path">org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/gui/dialogs/FFrameMapBoxView.xml</at> |
|
29 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE</at> |
|
30 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
|
31 |
<at name="components"> |
|
32 |
<object classname="java.util.LinkedList"> |
|
33 |
<item > |
|
34 |
<at name="value"> |
|
35 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
36 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
37 |
<at name="cellconstraints"> |
|
38 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
39 |
<at name="column">2</at> |
|
40 |
<at name="row">2</at> |
|
41 |
<at name="colspan">1</at> |
|
42 |
<at name="rowspan">1</at> |
|
43 |
<at name="halign">default</at> |
|
44 |
<at name="valign">default</at> |
|
45 |
<at name="insets" object="insets">0,0,0,0</at> |
|
46 |
</object> |
|
47 |
</at> |
|
48 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
49 |
</super> |
|
50 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
51 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
52 |
<at name="beanproperties"> |
|
53 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
54 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
55 |
<at name="properties"> |
|
56 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
57 |
<at name="border"> |
|
58 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
59 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
60 |
<at name="name">border</at> |
|
61 |
</super> |
|
62 |
<at name="borders"> |
|
63 |
<object classname="java.util.LinkedList"> |
|
64 |
<item > |
|
65 |
<at name="value"> |
|
66 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
67 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
68 |
<at name="name">border</at> |
|
69 |
</super> |
|
70 |
</object> |
|
71 |
</at> |
|
72 |
</item> |
|
73 |
</object> |
|
74 |
</at> |
|
75 |
</object> |
|
76 |
</at> |
|
77 |
<at name="name">lblRows</at> |
|
78 |
<at name="width">86</at> |
|
79 |
<at name="text">_Num_rows</at> |
|
80 |
<at name="fill"> |
|
81 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
82 |
<at name="name">fill</at> |
|
83 |
</object> |
|
84 |
</at> |
|
85 |
<at name="height">14</at> |
|
86 |
</object> |
|
87 |
</at> |
|
88 |
</object> |
|
89 |
</at> |
|
90 |
</object> |
|
91 |
</at> |
|
92 |
</item> |
|
93 |
<item > |
|
94 |
<at name="value"> |
|
95 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
96 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
97 |
<at name="cellconstraints"> |
|
98 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
99 |
<at name="column">2</at> |
|
100 |
<at name="row">4</at> |
|
101 |
<at name="colspan">1</at> |
|
102 |
<at name="rowspan">1</at> |
|
103 |
<at name="halign">default</at> |
|
104 |
<at name="valign">default</at> |
|
105 |
<at name="insets" object="insets">0,0,0,0</at> |
|
106 |
</object> |
|
107 |
</at> |
|
108 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
109 |
</super> |
|
110 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
111 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
112 |
<at name="beanproperties"> |
|
113 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
114 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
115 |
<at name="properties"> |
|
116 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
117 |
<at name="border"> |
|
118 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
119 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
120 |
<at name="name">border</at> |
|
121 |
</super> |
|
122 |
<at name="borders"> |
|
123 |
<object classname="java.util.LinkedList"> |
|
124 |
<item > |
|
125 |
<at name="value"> |
|
126 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
127 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
128 |
<at name="name">border</at> |
|
129 |
</super> |
|
130 |
</object> |
|
131 |
</at> |
|
132 |
</item> |
|
133 |
</object> |
|
134 |
</at> |
|
135 |
</object> |
|
136 |
</at> |
|
137 |
<at name="name">lblColumns</at> |
|
138 |
<at name="width">86</at> |
|
139 |
<at name="text">_Num_columns</at> |
|
140 |
<at name="fill"> |
|
141 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
142 |
<at name="name">fill</at> |
|
143 |
</object> |
|
144 |
</at> |
|
145 |
<at name="height">14</at> |
|
146 |
</object> |
|
147 |
</at> |
|
148 |
</object> |
|
149 |
</at> |
|
150 |
</object> |
|
151 |
</at> |
|
152 |
</item> |
|
153 |
<item > |
|
154 |
<at name="value"> |
|
155 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
156 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
157 |
<at name="cellconstraints"> |
|
158 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
159 |
<at name="column">2</at> |
|
160 |
<at name="row">6</at> |
|
161 |
<at name="colspan">1</at> |
|
162 |
<at name="rowspan">1</at> |
|
163 |
<at name="halign">default</at> |
|
164 |
<at name="valign">default</at> |
|
165 |
<at name="insets" object="insets">0,0,0,0</at> |
|
166 |
</object> |
|
167 |
</at> |
|
168 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
169 |
</super> |
|
170 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
171 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
172 |
<at name="beanproperties"> |
|
173 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
174 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
175 |
<at name="properties"> |
|
176 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
177 |
<at name="border"> |
|
178 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
179 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
180 |
<at name="name">border</at> |
|
181 |
</super> |
|
182 |
<at name="borders"> |
|
183 |
<object classname="java.util.LinkedList"> |
|
184 |
<item > |
|
185 |
<at name="value"> |
|
186 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
187 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
188 |
<at name="name">border</at> |
|
189 |
</super> |
|
190 |
</object> |
|
191 |
</at> |
|
192 |
</item> |
|
193 |
</object> |
|
194 |
</at> |
|
195 |
</object> |
|
196 |
</at> |
|
197 |
<at name="name">lblDegrees</at> |
|
198 |
<at name="width">86</at> |
|
199 |
<at name="text">_Degrees</at> |
|
200 |
<at name="fill"> |
|
201 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
202 |
<at name="name">fill</at> |
|
203 |
</object> |
|
204 |
</at> |
|
205 |
<at name="height">14</at> |
|
206 |
</object> |
|
207 |
</at> |
|
208 |
</object> |
|
209 |
</at> |
|
210 |
</object> |
|
211 |
</at> |
|
212 |
</item> |
|
213 |
<item > |
|
214 |
<at name="value"> |
|
215 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
216 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
217 |
<at name="cellconstraints"> |
|
218 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
219 |
<at name="column">4</at> |
|
220 |
<at name="row">2</at> |
|
221 |
<at name="colspan">1</at> |
|
222 |
<at name="rowspan">1</at> |
|
223 |
<at name="halign">default</at> |
|
224 |
<at name="valign">default</at> |
|
225 |
<at name="insets" object="insets">0,0,0,0</at> |
|
226 |
</object> |
|
227 |
</at> |
|
228 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
229 |
</super> |
|
230 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
231 |
<at name="beanclass">javax.swing.JSpinner</at> |
|
232 |
<at name="beanproperties"> |
|
233 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
234 |
<at name="classname">javax.swing.JSpinner</at> |
|
235 |
<at name="properties"> |
|
236 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
237 |
<at name="name">spnRows</at> |
|
238 |
<at name="width">30</at> |
|
239 |
<at name="height">20</at> |
|
240 |
</object> |
|
241 |
</at> |
|
242 |
</object> |
|
243 |
</at> |
|
244 |
</object> |
|
245 |
</at> |
|
246 |
</item> |
|
247 |
<item > |
|
248 |
<at name="value"> |
|
249 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
250 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
251 |
<at name="cellconstraints"> |
|
252 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
253 |
<at name="column">4</at> |
|
254 |
<at name="row">4</at> |
|
255 |
<at name="colspan">1</at> |
|
256 |
<at name="rowspan">1</at> |
|
257 |
<at name="halign">default</at> |
|
258 |
<at name="valign">default</at> |
|
259 |
<at name="insets" object="insets">0,0,0,0</at> |
|
260 |
</object> |
|
261 |
</at> |
|
262 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
263 |
</super> |
|
264 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
265 |
<at name="beanclass">javax.swing.JSpinner</at> |
|
266 |
<at name="beanproperties"> |
|
267 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
268 |
<at name="classname">javax.swing.JSpinner</at> |
|
269 |
<at name="properties"> |
|
270 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
271 |
<at name="name">spnColumns</at> |
|
272 |
<at name="width">30</at> |
|
273 |
<at name="height">20</at> |
|
274 |
</object> |
|
275 |
</at> |
|
276 |
</object> |
|
277 |
</at> |
|
278 |
</object> |
|
279 |
</at> |
|
280 |
</item> |
|
281 |
<item > |
|
282 |
<at name="value"> |
|
283 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
284 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
285 |
<at name="cellconstraints"> |
|
286 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
287 |
<at name="column">4</at> |
|
288 |
<at name="row">6</at> |
|
289 |
<at name="colspan">1</at> |
|
290 |
<at name="rowspan">1</at> |
|
291 |
<at name="halign">default</at> |
|
292 |
<at name="valign">default</at> |
|
293 |
<at name="insets" object="insets">0,0,0,0</at> |
|
294 |
</object> |
|
295 |
</at> |
|
296 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
297 |
</super> |
|
298 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
299 |
<at name="beanclass">javax.swing.JSpinner</at> |
|
300 |
<at name="beanproperties"> |
|
301 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
302 |
<at name="classname">javax.swing.JSpinner</at> |
|
303 |
<at name="properties"> |
|
304 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
305 |
<at name="name">spnDegrees</at> |
|
306 |
<at name="width">30</at> |
|
307 |
<at name="height">20</at> |
|
308 |
</object> |
|
309 |
</at> |
|
310 |
</object> |
|
311 |
</at> |
|
312 |
</object> |
|
313 |
</at> |
|
314 |
</item> |
|
315 |
<item > |
|
316 |
<at name="value"> |
|
317 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
318 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
319 |
<at name="cellconstraints"> |
|
320 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
321 |
<at name="column">2</at> |
|
322 |
<at name="row">8</at> |
|
323 |
<at name="colspan">5</at> |
|
324 |
<at name="rowspan">1</at> |
|
325 |
<at name="halign">default</at> |
|
326 |
<at name="valign">default</at> |
|
327 |
<at name="insets" object="insets">0,0,0,0</at> |
|
328 |
</object> |
|
329 |
</at> |
|
330 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
331 |
</super> |
|
332 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
333 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
334 |
<at name="beanproperties"> |
|
335 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
336 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
337 |
<at name="properties"> |
|
338 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
339 |
<at name="border"> |
|
340 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
341 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
342 |
<at name="name">border</at> |
|
343 |
</super> |
|
344 |
<at name="borders"> |
|
345 |
<object classname="java.util.LinkedList"> |
|
346 |
<item > |
|
347 |
<at name="value"> |
|
348 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
349 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
350 |
<at name="name">border</at> |
|
351 |
</super> |
|
352 |
</object> |
|
353 |
</at> |
|
354 |
</item> |
|
355 |
</object> |
|
356 |
</at> |
|
357 |
</object> |
|
358 |
</at> |
|
359 |
<at name="name">lblPreview</at> |
|
360 |
<at name="width">795</at> |
|
361 |
<at name="fill"> |
|
362 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
363 |
<at name="name">fill</at> |
|
364 |
</object> |
|
365 |
</at> |
|
366 |
<at name="height">12</at> |
|
367 |
</object> |
|
368 |
</at> |
|
369 |
</object> |
|
370 |
</at> |
|
371 |
</object> |
|
372 |
</at> |
|
373 |
</item> |
|
374 |
</object> |
|
375 |
</at> |
|
376 |
<at name="properties"> |
|
377 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
378 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
379 |
<at name="properties"> |
|
380 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
381 |
<at name="border"> |
|
382 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
383 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
384 |
<at name="name">border</at> |
|
385 |
</super> |
|
386 |
<at name="borders"> |
|
387 |
<object classname="java.util.LinkedList"/> |
|
388 |
</at> |
|
389 |
</object> |
|
390 |
</at> |
|
391 |
<at name="name"></at> |
|
392 |
<at name="fill"> |
|
393 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
394 |
<at name="name">fill</at> |
|
395 |
</object> |
|
396 |
</at> |
|
397 |
<at name="scollBars"> |
|
398 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
399 |
<at name="name">scollBars</at> |
|
400 |
<at name="verticalpolicy">21</at> |
|
401 |
<at name="horizontalpolicy">31</at> |
|
402 |
<at name="border"> |
|
403 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
404 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
405 |
<at name="name">border</at> |
|
406 |
</super> |
|
407 |
<at name="borders"> |
|
408 |
<object classname="java.util.LinkedList"> |
|
409 |
<item > |
|
410 |
<at name="value"> |
|
411 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
412 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
413 |
<at name="name">border</at> |
|
414 |
</super> |
|
415 |
</object> |
|
416 |
</at> |
|
417 |
</item> |
|
418 |
</object> |
|
419 |
</at> |
|
420 |
</object> |
|
421 |
</at> |
|
422 |
</object> |
|
423 |
</at> |
|
424 |
</object> |
|
425 |
</at> |
|
426 |
</object> |
|
427 |
</at> |
|
428 |
<at name="cellpainters"> |
|
429 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
430 |
<at name="rows"> |
|
431 |
<object classname="[Ljava.lang.Object;" size="9"> |
|
432 |
<at name="item" index="0"> |
|
433 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
434 |
</at> |
|
435 |
<at name="item" index="1"> |
|
436 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
437 |
</at> |
|
438 |
<at name="item" index="2"> |
|
439 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
440 |
</at> |
|
441 |
<at name="item" index="3"> |
|
442 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
443 |
</at> |
|
444 |
<at name="item" index="4"> |
|
445 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
446 |
</at> |
|
447 |
<at name="item" index="5"> |
|
448 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
449 |
</at> |
|
450 |
<at name="item" index="6"> |
|
451 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
452 |
</at> |
|
453 |
<at name="item" index="7"> |
|
454 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
455 |
</at> |
|
456 |
<at name="item" index="8"> |
|
457 |
<object classname="[Ljava.lang.Object;" size="7"/> |
|
458 |
</at> |
|
459 |
</object> |
|
460 |
</at> |
|
461 |
</object> |
|
462 |
</at> |
|
463 |
<at name="rowgroups"> |
|
464 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
465 |
<at name="groups"> |
|
466 |
<object classname="java.util.HashMap"/> |
|
467 |
</at> |
|
468 |
</object> |
|
469 |
</at> |
|
470 |
<at name="colgroups"> |
|
471 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
472 |
<at name="groups"> |
|
473 |
<object classname="java.util.HashMap"/> |
|
474 |
</at> |
|
475 |
</object> |
|
476 |
</at> |
|
477 |
</object> |
|
478 |
</at> |
|
479 |
</object> |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/panel/FFrameMapBoxPanelView.java | ||
---|---|---|
1 |
package org.gvsig.layout.mapbox.panel; |
|
2 |
|
|
3 |
import com.jgoodies.forms.layout.CellConstraints; |
|
4 |
import com.jgoodies.forms.layout.FormLayout; |
|
5 |
import java.awt.BorderLayout; |
|
6 |
import java.awt.ComponentOrientation; |
|
7 |
import java.awt.Container; |
|
8 |
import java.awt.Dimension; |
|
9 |
import javax.swing.Box; |
|
10 |
import javax.swing.ImageIcon; |
|
11 |
import javax.swing.JLabel; |
|
12 |
import javax.swing.JPanel; |
|
13 |
import javax.swing.JSpinner; |
|
14 |
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.AbstractFFramePanel; |
|
15 |
|
|
16 |
|
|
17 |
public abstract class FFrameMapBoxPanelView extends AbstractFFramePanel |
|
18 |
{ |
|
19 |
JLabel lblRows = new JLabel(); |
|
20 |
JLabel lblColumns = new JLabel(); |
|
21 |
JLabel lblDegrees = new JLabel(); |
|
22 |
JSpinner spnRows = new JSpinner(); |
|
23 |
JSpinner spnColumns = new JSpinner(); |
|
24 |
JSpinner spnDegrees = new JSpinner(); |
|
25 |
JLabel lblPreview = new JLabel(); |
|
26 |
|
|
27 |
/** |
|
28 |
* Default constructor |
|
29 |
*/ |
|
30 |
public FFrameMapBoxPanelView() |
|
31 |
{ |
|
32 |
initializePanel(); |
|
33 |
} |
|
34 |
|
|
35 |
/** |
|
36 |
* Adds fill components to empty cells in the first row and first column of the grid. |
|
37 |
* This ensures that the grid spacing will be the same as shown in the designer. |
|
38 |
* @param cols an array of column indices in the first row where fill components should be added. |
|
39 |
* @param rows an array of row indices in the first column where fill components should be added. |
|
40 |
*/ |
|
41 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
|
42 |
{ |
|
43 |
Dimension filler = new Dimension(10,10); |
|
44 |
|
|
45 |
boolean filled_cell_11 = false; |
|
46 |
CellConstraints cc = new CellConstraints(); |
|
47 |
if ( cols.length > 0 && rows.length > 0 ) |
|
48 |
{ |
|
49 |
if ( cols[0] == 1 && rows[0] == 1 ) |
|
50 |
{ |
|
51 |
/** add a rigid area */ |
|
52 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
|
53 |
filled_cell_11 = true; |
|
54 |
} |
|
55 |
} |
|
56 |
|
|
57 |
for( int index = 0; index < cols.length; index++ ) |
|
58 |
{ |
|
59 |
if ( cols[index] == 1 && filled_cell_11 ) |
|
60 |
{ |
|
61 |
continue; |
|
62 |
} |
|
63 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
|
64 |
} |
|
65 |
|
|
66 |
for( int index = 0; index < rows.length; index++ ) |
|
67 |
{ |
|
68 |
if ( rows[index] == 1 && filled_cell_11 ) |
|
69 |
{ |
|
70 |
continue; |
|
71 |
} |
|
72 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
|
73 |
} |
|
74 |
|
|
75 |
} |
|
76 |
|
|
77 |
/** |
|
78 |
* Helper method to load an image file from the CLASSPATH |
|
79 |
* @param imageName the package and name of the file to load relative to the CLASSPATH |
|
80 |
* @return an ImageIcon instance with the specified image file |
|
81 |
* @throws IllegalArgumentException if the image resource cannot be loaded. |
|
82 |
*/ |
|
83 |
public ImageIcon loadImage( String imageName ) |
|
84 |
{ |
|
85 |
try |
|
86 |
{ |
|
87 |
ClassLoader classloader = getClass().getClassLoader(); |
|
88 |
java.net.URL url = classloader.getResource( imageName ); |
|
89 |
if ( url != null ) |
|
90 |
{ |
|
91 |
ImageIcon icon = new ImageIcon( url ); |
|
92 |
return icon; |
|
93 |
} |
|
94 |
} |
|
95 |
catch( Exception e ) |
|
96 |
{ |
|
97 |
e.printStackTrace(); |
|
98 |
} |
|
99 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
|
100 |
} |
|
101 |
|
|
102 |
/** |
|
103 |
* Method for recalculating the component orientation for |
|
104 |
* right-to-left Locales. |
|
105 |
* @param orientation the component orientation to be applied |
|
106 |
*/ |
|
107 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
|
108 |
{ |
|
109 |
// Not yet implemented... |
|
110 |
// I18NUtils.applyComponentOrientation(this, orientation); |
|
111 |
super.applyComponentOrientation(orientation); |
|
112 |
} |
|
113 |
|
|
114 |
public JPanel createPanel() |
|
115 |
{ |
|
116 |
JPanel jpanel1 = new JPanel(); |
|
117 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE"); |
|
118 |
CellConstraints cc = new CellConstraints(); |
|
119 |
jpanel1.setLayout(formlayout1); |
|
120 |
|
|
121 |
lblRows.setName("lblRows"); |
|
122 |
lblRows.setText("_Num_rows"); |
|
123 |
jpanel1.add(lblRows,cc.xy(2,2)); |
|
124 |
|
|
125 |
lblColumns.setName("lblColumns"); |
|
126 |
lblColumns.setText("_Num_columns"); |
|
127 |
jpanel1.add(lblColumns,cc.xy(2,4)); |
|
128 |
|
|
129 |
lblDegrees.setName("lblDegrees"); |
|
130 |
lblDegrees.setText("_Degrees"); |
|
131 |
jpanel1.add(lblDegrees,cc.xy(2,6)); |
|
132 |
|
|
133 |
spnRows.setName("spnRows"); |
|
134 |
jpanel1.add(spnRows,cc.xy(4,2)); |
|
135 |
|
|
136 |
spnColumns.setName("spnColumns"); |
|
137 |
jpanel1.add(spnColumns,cc.xy(4,4)); |
|
138 |
|
|
139 |
spnDegrees.setName("spnDegrees"); |
|
140 |
jpanel1.add(spnDegrees,cc.xy(4,6)); |
|
141 |
|
|
142 |
lblPreview.setName("lblPreview"); |
|
143 |
jpanel1.add(lblPreview,cc.xywh(2,8,5,1)); |
|
144 |
|
|
145 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
|
146 |
return jpanel1; |
|
147 |
} |
|
148 |
|
|
149 |
/** |
|
150 |
* Initializer |
|
151 |
*/ |
|
152 |
protected void initializePanel() |
|
153 |
{ |
|
154 |
setLayout(new BorderLayout()); |
|
155 |
add(createPanel(), BorderLayout.CENTER); |
|
156 |
} |
|
157 |
|
|
158 |
|
|
159 |
} |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/panel/menu/SplitCellsHorizontallyMapBoxMenuEntry.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.layout.mapbox.panel.menu; |
|
23 |
|
|
24 |
import java.util.List; |
|
25 |
import org.gvsig.andami.PluginServices; |
|
26 |
import org.gvsig.app.project.documents.layout.LayoutContext; |
|
27 |
import org.gvsig.app.project.documents.layout.contextmenu.gui.*; |
|
28 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
29 |
import org.gvsig.layout.mapbox.fframe.FFrameMapBox; |
|
30 |
import org.gvsig.layout.mapbox.model.Cell; |
|
31 |
import org.gvsig.tools.lang.CloneableUtils; |
|
32 |
|
|
33 |
/** |
|
34 |
* Copia el FFrame seleccionado. |
|
35 |
* |
|
36 |
* @author gvSIG team |
|
37 |
*/ |
|
38 |
public class SplitCellsHorizontallyMapBoxMenuEntry extends AbstractLayoutContextMenuAction { |
|
39 |
|
|
40 |
@Override |
|
41 |
public String getGroup() { |
|
42 |
return "mapbox"; |
|
43 |
} |
|
44 |
|
|
45 |
@Override |
|
46 |
public int getGroupOrder() { |
|
47 |
return 5; |
|
48 |
} |
|
49 |
|
|
50 |
@Override |
|
51 |
public int getOrder() { |
|
52 |
return 3; |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public String getText() { |
|
57 |
return PluginServices.getText(this, "_Split_cells_horizontally"); |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
public boolean isEnabled(LayoutContext layoutContext, |
|
62 |
IFFrame[] selectedFrames) { |
|
63 |
if (selectedFrames.length != 1) { |
|
64 |
return false; |
|
65 |
} |
|
66 |
for (IFFrame selectedFrame : selectedFrames) { |
|
67 |
if (selectedFrame instanceof FFrameMapBox) { |
|
68 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
69 |
List<Cell> selectedCells = frame.getSelectedCells(); |
|
70 |
return !selectedCells.isEmpty(); |
|
71 |
} |
|
72 |
} |
|
73 |
return false; |
|
74 |
} |
|
75 |
|
|
76 |
@Override |
|
77 |
public boolean isVisible(LayoutContext layoutContext, |
|
78 |
IFFrame[] selectedFrames) { |
|
79 |
for (IFFrame selectedFrame : selectedFrames) { |
|
80 |
if (selectedFrame instanceof FFrameMapBox) { |
|
81 |
return true; |
|
82 |
} |
|
83 |
} |
|
84 |
return false; |
|
85 |
} |
|
86 |
|
|
87 |
@Override |
|
88 |
public void execute(LayoutContext layoutContext, IFFrame[] selectedFrames) { |
|
89 |
if (selectedFrames.length != 1) { |
|
90 |
return; |
|
91 |
} |
|
92 |
IFFrame selectedFrame = selectedFrames[0]; |
|
93 |
|
|
94 |
if (selectedFrame instanceof FFrameMapBox) { |
|
95 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
96 |
if (frame.getSelectedCells().isEmpty()) { |
|
97 |
return; |
|
98 |
} |
|
99 |
FFrameMapBox newFrame = (FFrameMapBox) CloneableUtils.cloneQuietly(frame); |
|
100 |
List<Cell> selectedCells = newFrame.getSelectedCells(); |
|
101 |
if (!selectedCells.isEmpty()) { |
|
102 |
newFrame.getModel().splitCellsHorizontally(selectedCells); |
|
103 |
newFrame.getSelection().clear(); |
|
104 |
layoutContext.fullRefresh(); |
|
105 |
layoutContext.getFrameCommandsRecord().update(frame, newFrame); |
|
106 |
layoutContext.updateFFrames(); |
|
107 |
} |
|
108 |
} |
|
109 |
} |
|
110 |
} |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/panel/menu/SplitCellsVerticallyMapBoxMenuEntry.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.layout.mapbox.panel.menu; |
|
23 |
|
|
24 |
import java.util.List; |
|
25 |
import org.gvsig.andami.PluginServices; |
|
26 |
import org.gvsig.app.project.documents.layout.LayoutContext; |
|
27 |
import org.gvsig.app.project.documents.layout.contextmenu.gui.*; |
|
28 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
29 |
import org.gvsig.layout.mapbox.fframe.FFrameMapBox; |
|
30 |
import org.gvsig.layout.mapbox.model.Cell; |
|
31 |
import org.gvsig.tools.lang.CloneableUtils; |
|
32 |
|
|
33 |
/** |
|
34 |
* Copia el FFrame seleccionado. |
|
35 |
* |
|
36 |
* @author gvSIG team |
|
37 |
*/ |
|
38 |
public class SplitCellsVerticallyMapBoxMenuEntry extends AbstractLayoutContextMenuAction { |
|
39 |
|
|
40 |
@Override |
|
41 |
public String getGroup() { |
|
42 |
return "mapbox"; |
|
43 |
} |
|
44 |
|
|
45 |
@Override |
|
46 |
public int getGroupOrder() { |
|
47 |
return 5; |
|
48 |
} |
|
49 |
|
|
50 |
@Override |
|
51 |
public int getOrder() { |
|
52 |
return 2; |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public String getText() { |
|
57 |
return PluginServices.getText(this, "_Split_cells_vertically"); |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
public boolean isEnabled(LayoutContext layoutContext, |
|
62 |
IFFrame[] selectedFrames) { |
|
63 |
if (selectedFrames.length != 1) { |
|
64 |
return false; |
|
65 |
} |
|
66 |
for (IFFrame selectedFrame : selectedFrames) { |
|
67 |
if (selectedFrame instanceof FFrameMapBox) { |
|
68 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
69 |
List<Cell> selectedCells = frame.getSelectedCells(); |
|
70 |
return !selectedCells.isEmpty(); |
|
71 |
} |
|
72 |
} |
|
73 |
return false; |
|
74 |
} |
|
75 |
|
|
76 |
@Override |
|
77 |
public boolean isVisible(LayoutContext layoutContext, |
|
78 |
IFFrame[] selectedFrames) { |
|
79 |
for (IFFrame selectedFrame : selectedFrames) { |
|
80 |
if (selectedFrame instanceof FFrameMapBox) { |
|
81 |
return true; |
|
82 |
} |
|
83 |
} |
|
84 |
return false; |
|
85 |
} |
|
86 |
|
|
87 |
@Override |
|
88 |
public void execute(LayoutContext layoutContext, IFFrame[] selectedFrames) { |
|
89 |
if (selectedFrames.length != 1) { |
|
90 |
return; |
|
91 |
} |
|
92 |
IFFrame selectedFrame = selectedFrames[0]; |
|
93 |
|
|
94 |
if (selectedFrame instanceof FFrameMapBox) { |
|
95 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
96 |
if (frame.getSelectedCells().isEmpty()) { |
|
97 |
return; |
|
98 |
} |
|
99 |
FFrameMapBox newFrame = (FFrameMapBox) CloneableUtils.cloneQuietly(frame); |
|
100 |
List<Cell> selectedCells = newFrame.getSelectedCells(); |
|
101 |
if (!selectedCells.isEmpty()) { |
|
102 |
newFrame.getModel().splitCellsVertically(selectedCells); |
|
103 |
newFrame.getSelection().clear(); |
|
104 |
layoutContext.fullRefresh(); |
|
105 |
layoutContext.getFrameCommandsRecord().update(frame, newFrame); |
|
106 |
layoutContext.updateFFrames(); |
|
107 |
} |
|
108 |
} |
|
109 |
} |
|
110 |
} |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/panel/menu/CombineCellsMapBoxMenuEntry.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.layout.mapbox.panel.menu; |
|
23 |
|
|
24 |
import java.util.List; |
|
25 |
import org.gvsig.andami.PluginServices; |
|
26 |
import org.gvsig.app.project.documents.layout.LayoutContext; |
|
27 |
import org.gvsig.app.project.documents.layout.contextmenu.gui.*; |
|
28 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
29 |
import org.gvsig.layout.mapbox.fframe.FFrameMapBox; |
|
30 |
import org.gvsig.layout.mapbox.model.Cell; |
|
31 |
import org.gvsig.tools.lang.CloneableUtils; |
|
32 |
|
|
33 |
/** |
|
34 |
* Copia el FFrame seleccionado. |
|
35 |
* |
|
36 |
* @author gvSIG team |
|
37 |
*/ |
|
38 |
public class CombineCellsMapBoxMenuEntry extends AbstractLayoutContextMenuAction { |
|
39 |
|
|
40 |
@Override |
|
41 |
public String getGroup() { |
|
42 |
return "mapbox"; |
|
43 |
} |
|
44 |
|
|
45 |
@Override |
|
46 |
public int getGroupOrder() { |
|
47 |
return 5; |
|
48 |
} |
|
49 |
|
|
50 |
@Override |
|
51 |
public int getOrder() { |
|
52 |
return 1; |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public String getText() { |
|
57 |
return PluginServices.getText(this, "_Combine_cells"); |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
public boolean isEnabled(LayoutContext layoutContext, |
|
62 |
IFFrame[] selectedFrames) { |
|
63 |
if (selectedFrames.length != 1) { |
|
64 |
return false; |
|
65 |
} |
|
66 |
for (IFFrame selectedFrame : selectedFrames) { |
|
67 |
if (selectedFrame instanceof FFrameMapBox) { |
|
68 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
69 |
List<Cell> selectedCells = frame.getSelectedCells(); |
|
70 |
return selectedCells.size() > 1; |
|
71 |
} |
|
72 |
} |
|
73 |
return false; |
|
74 |
} |
|
75 |
|
|
76 |
@Override |
|
77 |
public boolean isVisible(LayoutContext layoutContext, |
|
78 |
IFFrame[] selectedFrames) { |
|
79 |
for (IFFrame selectedFrame : selectedFrames) { |
|
80 |
if (selectedFrame instanceof FFrameMapBox) { |
|
81 |
return true; |
|
82 |
} |
|
83 |
} |
|
84 |
return false; |
|
85 |
} |
|
86 |
|
|
87 |
@Override |
|
88 |
public void execute(LayoutContext layoutContext, IFFrame[] selectedFrames) { |
|
89 |
if (selectedFrames.length != 1) { |
|
90 |
return; |
|
91 |
} |
|
92 |
IFFrame selectedFrame = selectedFrames[0]; |
|
93 |
|
|
94 |
if (selectedFrame instanceof FFrameMapBox) { |
|
95 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
96 |
if (frame.getSelectedCells().size() <= 1) { |
|
97 |
return; |
|
98 |
} |
|
99 |
FFrameMapBox newFrame = (FFrameMapBox) CloneableUtils.cloneQuietly(frame); |
|
100 |
List<Cell> selectedCells = newFrame.getSelectedCells(); |
|
101 |
if (!selectedCells.isEmpty()) { |
|
102 |
if (selectedCells.size() > 1) { |
|
103 |
newFrame.getModel().combine(selectedCells); |
|
104 |
newFrame.getSelection().clear(); |
|
105 |
layoutContext.fullRefresh(); |
|
106 |
layoutContext.getFrameCommandsRecord().update(frame, newFrame); |
|
107 |
layoutContext.updateFFrames(); |
|
108 |
} |
|
109 |
} |
|
110 |
} |
|
111 |
} |
|
112 |
} |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/panel/menu/AddRowMapBoxMenuEntry.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.layout.mapbox.panel.menu; |
|
23 |
|
|
24 |
import java.util.List; |
|
25 |
import org.gvsig.andami.PluginServices; |
|
26 |
import org.gvsig.app.project.documents.layout.LayoutContext; |
|
27 |
import org.gvsig.app.project.documents.layout.contextmenu.gui.*; |
|
28 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
29 |
import org.gvsig.layout.mapbox.fframe.FFrameMapBox; |
|
30 |
import org.gvsig.layout.mapbox.model.Cell; |
|
31 |
import org.gvsig.tools.lang.CloneableUtils; |
|
32 |
|
|
33 |
/** |
|
34 |
* Copia el FFrame seleccionado. |
|
35 |
* |
|
36 |
* @author gvSIG team |
|
37 |
*/ |
|
38 |
public class AddRowMapBoxMenuEntry extends AbstractLayoutContextMenuAction { |
|
39 |
|
|
40 |
@Override |
|
41 |
public String getGroup() { |
|
42 |
return "mapbox"; |
|
43 |
} |
|
44 |
|
|
45 |
@Override |
|
46 |
public int getGroupOrder() { |
|
47 |
return 5; |
|
48 |
} |
|
49 |
|
|
50 |
@Override |
|
51 |
public int getOrder() { |
|
52 |
return 7; |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public String getText() { |
|
57 |
return PluginServices.getText(this, "_Add_row"); |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
public boolean isEnabled(LayoutContext layoutContext, |
|
62 |
IFFrame[] selectedFrames) { |
|
63 |
if (selectedFrames.length != 1) { |
|
64 |
return false; |
|
65 |
} |
|
66 |
for (IFFrame selectedFrame : selectedFrames) { |
|
67 |
if (selectedFrame instanceof FFrameMapBox) { |
|
68 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
69 |
List<Cell> selectedCells = frame.getSelectedCells(); |
|
70 |
return selectedCells.size() == 1; |
|
71 |
} |
|
72 |
} |
|
73 |
return false; |
|
74 |
} |
|
75 |
|
|
76 |
@Override |
|
77 |
public boolean isVisible(LayoutContext layoutContext, |
|
78 |
IFFrame[] selectedFrames) { |
|
79 |
for (IFFrame selectedFrame : selectedFrames) { |
|
80 |
if (selectedFrame instanceof FFrameMapBox) { |
|
81 |
return true; |
|
82 |
} |
|
83 |
} |
|
84 |
return false; |
|
85 |
} |
|
86 |
|
|
87 |
@Override |
|
88 |
public void execute(LayoutContext layoutContext, IFFrame[] selectedFrames) { |
|
89 |
if (selectedFrames.length != 1) { |
|
90 |
return; |
|
91 |
} |
|
92 |
IFFrame selectedFrame = selectedFrames[0]; |
|
93 |
|
|
94 |
if (selectedFrame instanceof FFrameMapBox) { |
|
95 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
96 |
if (frame.getSelectedCells().size() != 1) { |
|
97 |
return; |
|
98 |
} |
|
99 |
FFrameMapBox newFrame = (FFrameMapBox) CloneableUtils.cloneQuietly(frame); |
|
100 |
List<Cell> selectedCells = newFrame.getSelectedCells(); |
|
101 |
if (selectedCells.size() == 1) { |
|
102 |
newFrame.getModel().addRow(selectedCells.get(0)); |
|
103 |
newFrame.getSelection().clear(); |
|
104 |
layoutContext.fullRefresh(); |
|
105 |
layoutContext.getFrameCommandsRecord().update(frame, newFrame); |
|
106 |
layoutContext.updateFFrames(); |
|
107 |
} |
|
108 |
} |
|
109 |
} |
|
110 |
} |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/panel/menu/RemoveCellsMapBoxMenuEntry.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.layout.mapbox.panel.menu; |
|
23 |
|
|
24 |
import java.util.List; |
|
25 |
import org.gvsig.andami.PluginServices; |
|
26 |
import org.gvsig.app.project.documents.layout.LayoutContext; |
|
27 |
import org.gvsig.app.project.documents.layout.contextmenu.gui.*; |
|
28 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
29 |
import org.gvsig.layout.mapbox.fframe.FFrameMapBox; |
|
30 |
import org.gvsig.layout.mapbox.model.Cell; |
|
31 |
import org.gvsig.tools.lang.CloneableUtils; |
|
32 |
|
|
33 |
/** |
|
34 |
* Copia el FFrame seleccionado. |
|
35 |
* |
|
36 |
* @author gvSIG team |
|
37 |
*/ |
|
38 |
public class RemoveCellsMapBoxMenuEntry extends AbstractLayoutContextMenuAction { |
|
39 |
|
|
40 |
@Override |
|
41 |
public String getGroup() { |
|
42 |
return "mapbox"; |
|
43 |
} |
|
44 |
|
|
45 |
@Override |
|
46 |
public int getGroupOrder() { |
|
47 |
return 5; |
|
48 |
} |
|
49 |
|
|
50 |
@Override |
|
51 |
public int getOrder() { |
|
52 |
return 10; |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public String getText() { |
|
57 |
return PluginServices.getText(this, "_Remove_cells"); |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
public boolean isEnabled(LayoutContext layoutContext, |
|
62 |
IFFrame[] selectedFrames) { |
|
63 |
if (selectedFrames.length != 1) { |
|
64 |
return false; |
|
65 |
} |
|
66 |
for (IFFrame selectedFrame : selectedFrames) { |
|
67 |
if (selectedFrame instanceof FFrameMapBox) { |
|
68 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
69 |
List<Cell> selectedCells = frame.getSelectedCells(); |
|
70 |
return !selectedCells.isEmpty(); |
|
71 |
} |
|
72 |
} |
|
73 |
return false; |
|
74 |
} |
|
75 |
|
|
76 |
@Override |
|
77 |
public boolean isVisible(LayoutContext layoutContext, |
|
78 |
IFFrame[] selectedFrames) { |
|
79 |
for (IFFrame selectedFrame : selectedFrames) { |
|
80 |
if (selectedFrame instanceof FFrameMapBox) { |
|
81 |
return true; |
|
82 |
} |
|
83 |
} |
|
84 |
return false; |
|
85 |
} |
|
86 |
|
|
87 |
@Override |
|
88 |
public void execute(LayoutContext layoutContext, IFFrame[] selectedFrames) { |
|
89 |
if (selectedFrames.length != 1) { |
|
90 |
return; |
|
91 |
} |
|
92 |
IFFrame selectedFrame = selectedFrames[0]; |
|
93 |
|
|
94 |
if (selectedFrame instanceof FFrameMapBox) { |
|
95 |
FFrameMapBox frame = (FFrameMapBox) selectedFrame; |
|
96 |
if (frame.getSelectedCells().isEmpty()) { |
|
97 |
return; |
|
98 |
} |
|
99 |
FFrameMapBox newFrame = (FFrameMapBox) CloneableUtils.cloneQuietly(frame); |
|
100 |
List<Cell> selectedCells = newFrame.getSelectedCells(); |
|
101 |
if (!selectedCells.isEmpty()) { |
|
102 |
newFrame.getModel().removeCells(selectedCells); |
|
103 |
newFrame.getSelection().clear(); |
|
104 |
layoutContext.fullRefresh(); |
|
105 |
layoutContext.getFrameCommandsRecord().update(frame, newFrame); |
|
106 |
layoutContext.updateFFrames(); |
|
107 |
} |
|
108 |
} |
|
109 |
} |
|
110 |
} |
tags/org.gvsig.app.document.layout2.app-2.0.301/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/panel/menu/InsertColumnMapBoxMenuEntry.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.layout.mapbox.panel.menu; |
|
23 |
|
|
24 |
import java.util.List; |
|
25 |
import org.gvsig.andami.PluginServices; |
|
26 |
import org.gvsig.app.project.documents.layout.LayoutContext; |
|
27 |
import org.gvsig.app.project.documents.layout.contextmenu.gui.*; |
|
28 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
|
29 |
import org.gvsig.layout.mapbox.fframe.FFrameMapBox; |
|
30 |
import org.gvsig.layout.mapbox.model.Cell; |
|
31 |
import org.gvsig.tools.lang.CloneableUtils; |
|
32 |
|
|
33 |
/** |
|
34 |
* Copia el FFrame seleccionado. |
|
35 |
* |
|
36 |
* @author gvSIG team |
|
37 |
*/ |
|
38 |
public class InsertColumnMapBoxMenuEntry extends AbstractLayoutContextMenuAction { |
|
39 |
|
|
40 |
@Override |
|
41 |
public String getGroup() { |
|
42 |
return "mapbox"; |
|
43 |
} |
|
44 |
|
|
45 |
@Override |
|
46 |
public int getGroupOrder() { |
|
47 |
return 5; |
|
48 |
} |
|
49 |
|
|
50 |
@Override |
|
51 |
public int getOrder() { |
|
52 |
return 4; |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public String getText() { |
|
57 |
return PluginServices.getText(this, "_Insert_column"); |
|
58 |
} |
|
59 |
|
|
60 |
@Override |
|
61 |
public boolean isEnabled(LayoutContext layoutContext, |
|
62 |
IFFrame[] selectedFrames) { |
|
63 |
if (selectedFrames.length != 1) { |
|
64 |
return false; |
|
65 |
} |
Also available in: Unified diff