Revision 9677
org.gvsig.raster.tools/tags/org.gvsig.raster.tools-2.2.79/org.gvsig.raster.tools.app.basic/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. |
|
0 | 9 |
org.gvsig.raster.tools/tags/org.gvsig.raster.tools-2.2.79/org.gvsig.raster.tools.app.basic/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.raster"> |
|
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> |
|
0 | 38 |
org.gvsig.raster.tools/tags/org.gvsig.raster.tools-2.2.79/org.gvsig.raster.tools.app.basic/src/test/java/org/gvsig/raster/app/extension/TestNoDataPanel.java | ||
---|---|---|
1 |
package org.gvsig.raster.app.extension; |
|
2 |
|
|
3 |
import javax.swing.JFrame; |
|
4 |
|
|
5 |
import org.gvsig.raster.tools.app.basic.tool.properties.panel.NoDataPanel; |
|
6 |
|
|
7 |
public class TestNoDataPanel { |
|
8 |
private int w = 510; |
|
9 |
private int h = 300; |
|
10 |
private JFrame frame = new JFrame(); |
|
11 |
private NoDataPanel desc = null; |
|
12 |
|
|
13 |
public TestNoDataPanel() { |
|
14 |
desc = new NoDataPanel(); |
|
15 |
frame.getContentPane().add(desc); |
|
16 |
frame.setSize(w, h); |
|
17 |
frame.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
|
18 |
frame.setVisible(true); |
|
19 |
} |
|
20 |
|
|
21 |
public static void main(String[] args) { |
|
22 |
new TestNoDataPanel(); |
|
23 |
} |
|
24 |
} |
|
0 | 25 |
org.gvsig.raster.tools/tags/org.gvsig.raster.tools-2.2.79/org.gvsig.raster.tools.app.basic/src/test/java/org/gvsig/raster/app/extension/TestClipPanel.java | ||
---|---|---|
1 |
package org.gvsig.raster.app.extension; |
|
2 |
|
|
3 |
import javax.swing.JFrame; |
|
4 |
|
|
5 |
import org.gvsig.raster.tools.app.basic.tool.clip.ui.ClippingPanel; |
|
6 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
7 |
|
|
8 |
public class TestClipPanel { |
|
9 |
private int w = 510; |
|
10 |
private int h = 300; |
|
11 |
private JFrame frame = new JFrame(); |
|
12 |
private ClippingPanel desc = null; |
|
13 |
|
|
14 |
public TestClipPanel() { |
|
15 |
new DefaultLibrariesInitializer().fullInitialize(true); |
|
16 |
desc = new ClippingPanel(null); |
|
17 |
frame.getContentPane().add(desc); |
|
18 |
frame.setSize(w, h); |
|
19 |
frame.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
|
20 |
frame.setVisible(true); |
|
21 |
} |
|
22 |
|
|
23 |
public static void main(String[] args) { |
|
24 |
new TestClipPanel(); |
|
25 |
} |
|
26 |
} |
|
0 | 27 |
org.gvsig.raster.tools/tags/org.gvsig.raster.tools-2.2.79/org.gvsig.raster.tools.app.basic/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="org.gvsig.raster.mainplugin" /> |
|
4 |
<depends plugin-name="org.gvsig.app.document.table.app.mainplugin" /> |
|
5 |
|
|
6 |
<depends plugin-name="org.gvsig.geoprocess.app.mainplugin" optional="true" /> |
|
7 |
<depends plugin-name="org.gvsig.geoprocess.app.algorithm" optional="true" /> |
|
8 |
|
|
9 |
<resourceBundle name="text"/> |
|
10 |
<libraries library-dir="lib"/> |
|
11 |
<extensions> |
|
12 |
|
|
13 |
<!--Menu Raster --> |
|
14 |
|
|
15 |
<extension class-name="org.gvsig.raster.tools.app.basic.RasterExtension" |
|
16 |
description="" |
|
17 |
active="true" |
|
18 |
priority="1"> |
|
19 |
|
|
20 |
<menu text="Layer/capa_raster" |
|
21 |
position="000601405" |
|
22 |
is_separator="true"/> |
|
23 |
|
|
24 |
<tool-bar name="View_Tools_Zooms" position="420"> |
|
25 |
<selectable-tool icon="layer-zoom-res-level" action-command="ZoomResolutionLevel" tooltip="goto_resolution_level" position="7"/> |
|
26 |
</tool-bar> |
|
27 |
|
|
28 |
<!--Menu Raster layer --> |
|
29 |
|
|
30 |
<menu text="Layer/capa_raster/seleccionar_capas_raster" |
|
31 |
name="raster-tools-select-layer"/> |
|
32 |
|
|
33 |
<action |
|
34 |
name="raster-tools-select-layer" |
|
35 |
label="seleccionar_capas_raster" |
|
36 |
action-command="SelectLayer" |
|
37 |
icon="view-select-raster-layer" |
|
38 |
position="000601410" |
|
39 |
/> |
|
40 |
|
|
41 |
<menu text="Layer/capa_raster/histograma" |
|
42 |
name="raster-tools-histograma"/> |
|
43 |
|
|
44 |
<action |
|
45 |
name="raster-tools-histograma" |
|
46 |
label="histograma" |
|
47 |
action-command="HistogramPanel" |
|
48 |
icon="layer-histogram" |
|
49 |
position="000601420" |
|
50 |
accelerator="Ctrl+Alt+H" |
|
51 |
/> |
|
52 |
|
|
53 |
<menu text="Layer/capa_raster/tablas_color" |
|
54 |
name="raster-tools-tablas-color"/> |
|
55 |
|
|
56 |
<action |
|
57 |
name="raster-tools-tablas-color" |
|
58 |
label="tablas_color" |
|
59 |
action-command="ViewColorTable" |
|
60 |
icon="layer-color-table" |
|
61 |
position="000601430" |
|
62 |
accelerator="Ctrl+Alt+T" |
|
63 |
/> |
|
64 |
|
|
65 |
<menu text="Layer/capa_raster/regiones_interes" |
|
66 |
name="raster-tools-regiones-interes"/> |
|
67 |
|
|
68 |
<action |
|
69 |
name="raster-tools-regiones-interes" |
|
70 |
label="regiones_interes" |
|
71 |
action-command="RoisManager" |
|
72 |
icon="layer-modify-roi" |
|
73 |
position="000601450" |
|
74 |
accelerator="Ctrl+Alt+A" |
|
75 |
/> |
|
76 |
|
|
77 |
<menu text="Layer/capa_raster/generar_overviews" |
|
78 |
name="raster-tools-generar-overviews"/> |
|
79 |
|
|
80 |
<action |
|
81 |
name="raster-tools-generar-overviews" |
|
82 |
label="generar_overviews" |
|
83 |
action-command="Overviews" |
|
84 |
icon="layer-modify-overviews" |
|
85 |
position="000601460" |
|
86 |
accelerator="Ctrl+Alt+O" |
|
87 |
/> |
|
88 |
|
|
89 |
<menu text="Layer/capa_raster/analysisview" |
|
90 |
name="raster-tools-analysisview"/> |
|
91 |
|
|
92 |
<action |
|
93 |
name="raster-tools-analysisview" |
|
94 |
label="analysisview" |
|
95 |
action-command="ViewRasterAnalysis" |
|
96 |
icon="view-raster-analysis" |
|
97 |
position="000601470" |
|
98 |
accelerator="Ctrl+Alt+K" |
|
99 |
/> |
|
100 |
|
|
101 |
<menu text="Layer/capa_raster/goto_resolution_level" |
|
102 |
name="raster-tools-resolutionlevel"/> |
|
103 |
|
|
104 |
<action |
|
105 |
name="raster-tools-resolutionlevel" |
|
106 |
label="goto_resolution_level" |
|
107 |
action-command="ZoomResolutionLevel" |
|
108 |
icon="layer-zoom-res-level" |
|
109 |
position="000601480" |
|
110 |
accelerator="Ctrl+Alt++" |
|
111 |
/> |
|
112 |
|
|
113 |
<!--FIN Menu Raster layer--> |
|
114 |
|
|
115 |
|
|
116 |
<!--Menu Raster dataset--> |
|
117 |
|
|
118 |
<!--FIN Menu Raster dataset--> |
|
119 |
|
|
120 |
|
|
121 |
<!--Menu Multiespectral layer--> |
|
122 |
|
|
123 |
<!-- FIN Menu Multiespectral layer--> |
|
124 |
|
|
125 |
|
|
126 |
<!--Menu Enhanced--> |
|
127 |
|
|
128 |
<menu text="Layer/enhanced/filtros" |
|
129 |
name="raster-tools-filter"/> |
|
130 |
|
|
131 |
<action |
|
132 |
name="raster-tools-filter" |
|
133 |
label="filtros" |
|
134 |
action-command="FilterPanel" |
|
135 |
icon="layer-filter-raster" |
|
136 |
position="000601700" |
|
137 |
accelerator="Ctrl+Alt+F" |
|
138 |
/> |
|
139 |
|
|
140 |
<menu text="Layer/enhanced/enhanced_rad" |
|
141 |
name="raster-tools-enhanced-rad"/> |
|
142 |
|
|
143 |
<action |
|
144 |
name="raster-tools-enhanced-rad" |
|
145 |
label="enhanced_rad" |
|
146 |
action-command="EnhancedPanel" |
|
147 |
icon="layer-enhanced" |
|
148 |
position="000601710" |
|
149 |
accelerator="Ctrl+Alt+E" |
|
150 |
/> |
|
151 |
|
|
152 |
<!-- FIN Menu Enhanced--> |
|
153 |
|
|
154 |
|
|
155 |
<!--Menu Geographic transformations--> |
|
156 |
|
|
157 |
<menu text="Layer/transformaciones_geograficas/geolocation" |
|
158 |
name="raster-tools-geolocation"/> |
|
159 |
|
|
160 |
<action |
|
161 |
name="raster-tools-geolocation" |
|
162 |
label="geolocation" |
|
163 |
action-command="GeoLocation" |
|
164 |
icon="layer-geolocalization" |
|
165 |
position="000601810" |
|
166 |
accelerator="Ctrl+Alt+G" |
|
167 |
/> |
|
168 |
|
|
169 |
<menu text="Layer/transformaciones_geograficas/set_view_projection" |
|
170 |
name="raster-tools-set-view-projection"/> |
|
171 |
|
|
172 |
<action |
|
173 |
name="raster-tools-set-view-projection" |
|
174 |
label="set_view_projection" |
|
175 |
action-command="SetProjection" |
|
176 |
icon="setviewprojection-raster-icon" |
|
177 |
position="000601820" |
|
178 |
accelerator="" |
|
179 |
/> |
|
180 |
|
|
181 |
<!--FIN Menu Geographic transformations--> |
|
182 |
|
|
183 |
|
|
184 |
<!--Menu Exportar a--> |
|
185 |
|
|
186 |
<menu text="Layer/export_to/saveas" |
|
187 |
name="raster-tools-saveas"/> |
|
188 |
|
|
189 |
<action |
|
190 |
name="raster-tools-saveas" |
|
191 |
label="saveas" |
|
192 |
action-command="SaveAs" |
|
193 |
icon="layer-saveas" |
|
194 |
position="000601910" |
|
195 |
accelerator="Ctrl+Alt+S" |
|
196 |
/> |
|
197 |
|
|
198 |
<menu text="Layer/export_to/recorte" |
|
199 |
name="raster-tools-clip"/> |
|
200 |
|
|
201 |
<action |
|
202 |
name="raster-tools-clip" |
|
203 |
label="recorte" |
|
204 |
action-command="ClippingPanel" |
|
205 |
icon="layer-clip-raster" |
|
206 |
position="000601920" |
|
207 |
accelerator="Ctrl+Alt+C" |
|
208 |
/> |
|
209 |
|
|
210 |
<menu text="Layer/export_to/change_datatype" |
|
211 |
name="raster-tools-change-datatype"/> |
|
212 |
|
|
213 |
<action |
|
214 |
name="raster-tools-change-datatype" |
|
215 |
label="change_datatype" |
|
216 |
action-command="LayerDatatype" |
|
217 |
icon="datatype-icon" |
|
218 |
position="000601930" |
|
219 |
accelerator="" |
|
220 |
/> |
|
221 |
|
|
222 |
<!-- ************* --> |
|
223 |
|
|
224 |
<menu text="View/seleccionar_capas_raster" |
|
225 |
name="raster-tools-select-layer"/> |
|
226 |
|
|
227 |
<action |
|
228 |
name="raster-tools-select-layer" |
|
229 |
label="seleccionar_capas_raster" |
|
230 |
action-command="SelectLayer" |
|
231 |
icon="view-select-raster-layer" |
|
232 |
position="0" |
|
233 |
/> |
|
234 |
|
|
235 |
|
|
236 |
<!--Menu Vista/Exportar --> |
|
237 |
|
|
238 |
<menu text="View/export/export_view_to_image" |
|
239 |
name="raster-tools-export-view"/> |
|
240 |
|
|
241 |
<action |
|
242 |
name="raster-tools-export-view" |
|
243 |
label="export_view_to_image" |
|
244 |
action-command="SaveViewToImageRaster" |
|
245 |
icon="view-export-image" |
|
246 |
position="0" |
|
247 |
accelerator="Ctrl+Alt+V" |
|
248 |
/> |
|
249 |
|
|
250 |
<menu text="View/export/salvar_raster_geo" |
|
251 |
name="raster-tools-save-geo"/> |
|
252 |
|
|
253 |
<action |
|
254 |
name="raster-tools-save-geo" |
|
255 |
label="salvar_raster_geo" |
|
256 |
action-command="SaveViewToRaster" |
|
257 |
icon="view-export-georeferenced-raster" |
|
258 |
position="0" |
|
259 |
accelerator="Ctrl+Alt+W" |
|
260 |
/> |
|
261 |
|
|
262 |
<!-- ************* --> |
|
263 |
|
|
264 |
|
|
265 |
<menu text="Layer" |
|
266 |
position="000601935" |
|
267 |
is_separator="true"/> |
|
268 |
|
|
269 |
<menu text="Layer/propiedades_raster" |
|
270 |
name="raster-tools-properties"/> |
|
271 |
|
|
272 |
<action |
|
273 |
name="raster-tools-properties" |
|
274 |
label="propiedades_raster" |
|
275 |
action-command="RasterProperties" |
|
276 |
icon="layer-properties-raster" |
|
277 |
position="000601940" |
|
278 |
accelerator="Ctrl+Alt+P" |
|
279 |
/> |
|
280 |
|
|
281 |
<menu text="View/analysisview" |
|
282 |
name="raster-tools-analysisview"/> |
|
283 |
|
|
284 |
<action |
|
285 |
name="raster-tools-analysisview" |
|
286 |
label="analysisview" |
|
287 |
action-command="ViewRasterAnalysis" |
|
288 |
icon="view-raster-analysis" |
|
289 |
position="0" |
|
290 |
accelerator="Ctrl+Alt+K" |
|
291 |
/> |
|
292 |
|
|
293 |
</extension> |
|
294 |
|
|
295 |
<extension class-name="org.gvsig.raster.tools.app.basic.tool.infobypoint.InfoByRasterPointExtension" |
|
296 |
description="Extensi?n encargada de gestionar la herramienta de info." |
|
297 |
active="true"> |
|
298 |
<action |
|
299 |
name="layer-info-by-raster-point" |
|
300 |
label="_point_information" |
|
301 |
tooltip="_Show_point_information" |
|
302 |
action-command="INFO_BY_PIXEL" |
|
303 |
icon="layer-info-by-pixel" |
|
304 |
position="0" |
|
305 |
/> |
|
306 |
</extension> |
|
307 |
|
|
308 |
<!--<extension class-name="org.gvsig.raster.tools.app.basic.tool.infobypoint.InfoByRasterPointExtension" |
|
309 |
description="Informaci?n por p?xel" |
|
310 |
active="true" |
|
311 |
priority="1"> |
|
312 |
<tool-bar name="Info_By_Pixel" position="3"> |
|
313 |
<selectable-tool icon="info-by-pixel" action-command="INFO_BY_PIXEL" tooltip="info_by_pixel" position="7"/> |
|
314 |
</tool-bar> |
|
315 |
</extension> |
|
316 |
<extension class-name="org.gvsig.raster.tools.app.basic.SystemGCExtension" |
|
317 |
description="" |
|
318 |
active="true"> |
|
319 |
<menu text="Test/System GC"/> |
|
320 |
</extension> |
|
321 |
<extension class-name="org.gvsig.raster.tools.app.basic.tool.infobypoint.InfoByRasterPointExtension" |
|
322 |
description="Extensi?n encargada de gestionar la herramienta de info." |
|
323 |
active="true" |
|
324 |
priority="29"> |
|
325 |
<menu text="Vista/consulta" |
|
326 |
position="30030" |
|
327 |
is_separator="true"/> |
|
328 |
<menu text="Vista/consulta/informacion" position="3003010" action-command="INFO_BY_PIXEL" icon="view-query-information"/> |
|
329 |
<tool-bar name="View_Tools_Query" position="5"> |
|
330 |
<selectable-tool icon="view-query-information" action-command="INFO_BY_PIXEL" tooltip="informacion" position="1"/> |
|
331 |
</tool-bar> |
|
332 |
</extension> |
|
333 |
--> |
|
334 |
|
|
335 |
</extensions> |
|
336 |
</plugin-config> |
|
0 | 337 |
org.gvsig.raster.tools/tags/org.gvsig.raster.tools-2.2.79/org.gvsig.raster.tools.app.basic/src/main/resources-plugin/text_cs.properties | ||
---|---|---|
1 |
#Translations for language [cs] |
|
2 |
#Mon Nov 06 09:04:31 CET 2006 |
|
3 |
activar=Activate |
|
4 |
brillo=Jas |
|
5 |
brillo_y_contraste=Jas a kontrats |
|
6 |
compress=Komprese |
|
7 |
confirmacion=Potvr\u010f \u017ee |
|
8 |
contraste=Contrast |
|
9 |
eliminar_extremos=Odstranit hrany |
|
10 |
endinfo=Finalization Statistics |
|
11 |
error_file_exists=Soubor u\u017e existuje. P\u0159ejete si jej p\u0159epsat? |
|
12 |
error_file_not_writable=Nen\u00ed mo\u017en\u00e9 vytvo\u0159it v\u00fdstupn\u00ed soubor. |
|
13 |
espere=Pros\u00edm \u010dekejte |
|
14 |
file=Soubor |
|
15 |
height=V\u00fd\u0161ka |
|
16 |
lineal_directo=P\u0159\u00edmo line\u00e1rn\u00ed |
|
17 |
linf_der=dole vpravo X |
|
18 |
lsup_izq=Naho\u0159e vlevo X |
|
19 |
msg_save_raster=Operace bude zru\u0161ena. Chcete pokra\u010dovat? |
|
20 |
mtspixel=Mts/pixel |
|
21 |
no=No |
|
22 |
onSharpening=Aktivace doost\u0159ov\u00e1n\u00ed |
|
23 |
previsualizacion=Preview |
|
24 |
props=Vlastnosti |
|
25 |
realce=vylep\u0161en\u00ed |
|
26 |
realces=Vylep\u0161en\u00ed |
|
27 |
recorte_colas=O\u0159ez fronty |
|
28 |
resolution=Rozli\u0161en\u00ed ?? |
|
29 |
salvar_raster=Ulo\u017eit jako rastr |
|
30 |
scale=M\u011b\u0159\u00edtko |
|
31 |
seleccionar_fichero=vyber soubor |
|
32 |
select=Vyber |
|
33 |
selectBandaRefinado=V\u00fdb\u011br Panchromatick\u00e9ho p\u00e1sma |
|
34 |
size=Velikost |
|
35 |
tarea_en_progreso=B\u011b\u017e\u00edc\u00ed proces |
|
36 |
time=\u010cas |
|
37 |
width=Ampl\u00e0ria |
|
38 |
yes=Ano |
|
0 | 39 |
Also available in: Unified diff