Revision 1645

View differences:

trunk/examples/exaExample1/docs/Ejemplo.htm
1
<html xmlns:v="urn:schemas-microsoft-com:vml"
2
xmlns:o="urn:schemas-microsoft-com:office:office"
3
xmlns:w="urn:schemas-microsoft-com:office:word"
4
xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
5
xmlns="http://www.w3.org/TR/REC-html40">
6

  
7
<head>
8
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
9
<meta name=ProgId content=Word.Document>
10
<meta name=Generator content="Microsoft Word 11">
11
<meta name=Originator content="Microsoft Word 11">
12
<link rel=File-List href="Ejemplo_archivos/filelist.xml">
13
<link rel=Edit-Time-Data href="Ejemplo_archivos/editdata.mso">
14
<!--[if !mso]>
15
<style>
16
v\:* {behavior:url(#default#VML);}
17
o\:* {behavior:url(#default#VML);}
18
w\:* {behavior:url(#default#VML);}
19
.shape {behavior:url(#default#VML);}
20
</style>
21
<![endif]--><o:SmartTagType
22
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/>
23
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
24
 name="place"/>
25
<!--[if gte mso 9]><xml>
26
 <o:DocumentProperties>
27
  <o:Author>VCN</o:Author>
28
  <o:LastAuthor>VCN</o:LastAuthor>
29
  <o:Revision>4</o:Revision>
30
  <o:TotalTime>446</o:TotalTime>
31
  <o:Created>2005-03-07T08:34:00Z</o:Created>
32
  <o:LastSaved>2005-03-07T15:54:00Z</o:LastSaved>
33
  <o:Pages>1</o:Pages>
34
  <o:Words>477</o:Words>
35
  <o:Characters>2628</o:Characters>
36
  <o:Company>IVER</o:Company>
37
  <o:Lines>21</o:Lines>
38
  <o:Paragraphs>6</o:Paragraphs>
39
  <o:CharactersWithSpaces>3099</o:CharactersWithSpaces>
40
  <o:Version>11.5606</o:Version>
41
 </o:DocumentProperties>
42
</xml><![endif]--><!--[if gte mso 9]><xml>
43
 <w:WordDocument>
44
  <w:SpellingState>Clean</w:SpellingState>
45
  <w:GrammarState>Clean</w:GrammarState>
46
  <w:HyphenationZone>21</w:HyphenationZone>
47
  <w:PunctuationKerning/>
48
  <w:ValidateAgainstSchemas/>
49
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
50
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
51
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
52
  <w:Compatibility>
53
   <w:BreakWrappedTables/>
54
   <w:SnapToGridInCell/>
55
   <w:WrapTextWithPunct/>
56
   <w:UseAsianBreakRules/>
57
   <w:DontGrowAutofit/>
58
  </w:Compatibility>
59
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
60
 </w:WordDocument>
61
</xml><![endif]--><!--[if gte mso 9]><xml>
62
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
63
 </w:LatentStyles>
64
</xml><![endif]--><!--[if !mso]><object
65
 classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
66
<style>
67
st1\:*{behavior:url(#ieooui) }
68
</style>
69
<![endif]-->
70
<link rel=Stylesheet type="text/css" media=all href=style.css>
71
<style>
72
<!--
73
 /* Font Definitions */
74
 @font-face
75
	{font-family:Verdana;
76
	panose-1:2 11 6 4 3 5 4 4 2 4;
77
	mso-font-charset:0;
78
	mso-generic-font-family:swiss;
79
	mso-font-pitch:variable;
80
	mso-font-signature:536871559 0 0 0 415 0;}
81
 /* Style Definitions */
82
 p.MsoNormal, li.MsoNormal, div.MsoNormal
83
	{mso-style-parent:"";
84
	margin:0cm;
85
	margin-bottom:.0001pt;
86
	text-align:left;
87
	mso-pagination:widow-orphan;
88
	font-size:12.0pt;
89
	font-family:"Times New Roman";
90
	mso-fareast-font-family:"Times New Roman";}
91
h1
92
	{mso-style-next:Normal;
93
	margin-top:12.0pt;
94
	margin-right:0cm;
95
	margin-bottom:3.0pt;
96
	margin-left:0cm;
97
	text-align:left;
98
	mso-pagination:widow-orphan;
99
	page-break-after:avoid;
100
	mso-outline-level:1;
101
	font-size:16.0pt;
102
	font-family:Arial;
103
	mso-font-kerning:16.0pt;
104
	font-weight:bold;}
105
a:link, span.MsoHyperlink
106
	{mso-ansi-font-size:9.0pt;
107
	mso-bidi-font-size:9.0pt;
108
	font-family:Verdana;
109
	mso-ascii-font-family:Verdana;
110
	mso-hansi-font-family:Verdana;
111
	color:#E86D26;
112
	font-style:normal;
113
	text-decoration:underline;
114
	text-underline:single;}
115
a:visited, span.MsoHyperlinkFollowed
116
	{mso-ansi-font-size:9.0pt;
117
	mso-bidi-font-size:9.0pt;
118
	font-family:Verdana;
119
	mso-ascii-font-family:Verdana;
120
	mso-hansi-font-family:Verdana;
121
	color:#AD4D12;
122
	font-style:normal;
123
	text-decoration:underline;
124
	text-underline:single;}
125
p
126
	{mso-margin-top-alt:auto;
127
	margin-right:0cm;
128
	mso-margin-bottom-alt:auto;
129
	margin-left:0cm;
130
	mso-pagination:widow-orphan;
131
	font-size:9.0pt;
132
	mso-fareast-font-family:"Times New Roman";
133
	mso-bidi-font-family:"Times New Roman";}
134
p.pequenya, li.pequenya, div.pequenya
135
	{mso-style-name:pequenya;
136
	mso-margin-top-alt:auto;
137
	margin-right:0cm;
138
	mso-margin-bottom-alt:auto;
139
	margin-left:0cm;
140
	mso-pagination:widow-orphan;
141
	font-size:8.0pt;
142
	mso-fareast-font-family:"Times New Roman";
143
	mso-bidi-font-family:"Times New Roman";}
144
p.nivel3, li.nivel3, div.nivel3
145
	{mso-style-name:nivel3;
146
	mso-margin-top-alt:auto;
147
	margin-right:0cm;
148
	mso-margin-bottom-alt:auto;
149
	margin-left:0cm;
150
	mso-pagination:widow-orphan;
151
	background:#999999;
152
	font-size:9.0pt;
153
	mso-fareast-font-family:"Times New Roman";
154
	mso-bidi-font-family:"Times New Roman";
155
	font-weight:bold;}
156
p.nivel2, li.nivel2, div.nivel2
157
	{mso-style-name:nivel2;
158
	mso-margin-top-alt:auto;
159
	margin-right:0cm;
160
	mso-margin-bottom-alt:auto;
161
	margin-left:0cm;
162
	mso-pagination:widow-orphan;
163
	background:#E86D26;
164
	font-size:9.0pt;
165
	mso-fareast-font-family:"Times New Roman";
166
	mso-bidi-font-family:"Times New Roman";
167
	font-weight:bold;}
168
p.pequenyacursiva, li.pequenyacursiva, div.pequenyacursiva
169
	{mso-style-name:pequenyacursiva;
170
	mso-margin-top-alt:auto;
171
	margin-right:0cm;
172
	mso-margin-bottom-alt:auto;
173
	margin-left:0cm;
174
	mso-pagination:widow-orphan;
175
	font-size:8.0pt;
176
	mso-fareast-font-family:"Times New Roman";
177
	mso-bidi-font-family:"Times New Roman";
178
	font-style:italic;}
179
p.justificado, li.justificado, div.justificado
180
	{mso-style-name:justificado;
181
	mso-margin-top-alt:auto;
182
	margin-right:0cm;
183
	mso-margin-bottom-alt:auto;
184
	margin-left:0cm;
185
	mso-pagination:widow-orphan;
186
	font-size:8.0pt;
187
	mso-fareast-font-family:"Times New Roman";
188
	mso-bidi-font-family:"Times New Roman";}
189
p.muypequenyacursiva, li.muypequenyacursiva, div.muypequenyacursiva
190
	{mso-style-name:muypequenyacursiva;
191
	mso-margin-top-alt:auto;
192
	margin-right:0cm;
193
	mso-margin-bottom-alt:auto;
194
	margin-left:0cm;
195
	mso-pagination:widow-orphan;
196
	font-size:7.0pt;
197
	mso-fareast-font-family:"Times New Roman";
198
	mso-bidi-font-family:"Times New Roman";
199
	font-style:italic;}
200
span.SpellE
201
	{mso-style-name:"";
202
	mso-spl-e:yes;}
203
span.GramE
204
	{mso-style-name:"";
205
	mso-gram-e:yes;}
206
@page Section1
207
	{size:595.3pt 841.9pt;
208
	margin:70.85pt 3.0cm 70.85pt 3.0cm;
209
	mso-header-margin:35.4pt;
210
	mso-footer-margin:35.4pt;
211
	mso-paper-source:0;}
212
div.Section1
213
	{page:Section1;}
214
-->
215
</style>
216
<!--[if gte mso 10]>
217
<style>
218
 /* Style Definitions */
219
 table.MsoNormalTable
220
	{mso-style-name:"Tabla normal";
221
	mso-tstyle-rowband-size:0;
222
	mso-tstyle-colband-size:0;
223
	mso-style-noshow:yes;
224
	mso-style-parent:"";
225
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
226
	mso-para-margin:0cm;
227
	mso-para-margin-bottom:.0001pt;
228
	mso-pagination:widow-orphan;
229
	font-size:10.0pt;
230
	font-family:"Times New Roman";
231
	color:windowtext;
232
	mso-ansi-language:#0400;
233
	mso-fareast-language:#0400;
234
	mso-bidi-language:#0400;}
235
</style>
236
<![endif]--><!--[if gte mso 9]><xml>
237
 <o:shapedefaults v:ext="edit" spidmax="2050"/>
238
</xml><![endif]--><!--[if gte mso 9]><xml>
239
 <o:shapelayout v:ext="edit">
240
  <o:idmap v:ext="edit" data="1"/>
241
 </o:shapelayout></xml><![endif]-->
242
</head>
243

  
244
<body lang=ES link="#E86D26" vlink="#AD4D12" style='tab-interval:35.4pt'>
245

  
246
<div class=Section1>
247

  
248
<p class=nivel2>Ejemplo de una sencilla extensi?n</p>
249

  
250
<p><o:p>&nbsp;</o:p></p>
251

  
252
<p class=nivel3>Introducci?n</p>
253

  
254
<p>Con este <span class=SpellE>tutorial</span> se pretende mostrar una extensi?n
255
b?sica que tan solo a?ada y muestre el contenido de una ventana en <span
256
class=SpellE>Andami</span> <span style='mso-spacerun:yes'>?</span>cuando se
257
pulsa su <span class=GramE>icono </span><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
258
 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
259
 filled="f" stroked="f">
260
 <v:stroke joinstyle="miter"/>
261
 <v:formulas>
262
  <v:f eqn="if lineDrawn pixelLineWidth 0"/>
263
  <v:f eqn="sum @0 1 0"/>
264
  <v:f eqn="sum 0 0 @1"/>
265
  <v:f eqn="prod @2 1 2"/>
266
  <v:f eqn="prod @3 21600 pixelWidth"/>
267
  <v:f eqn="prod @3 21600 pixelHeight"/>
268
  <v:f eqn="sum @0 0 1"/>
269
  <v:f eqn="prod @6 1 2"/>
270
  <v:f eqn="prod @7 21600 pixelWidth"/>
271
  <v:f eqn="sum @8 21600 0"/>
272
  <v:f eqn="prod @7 21600 pixelHeight"/>
273
  <v:f eqn="sum @10 21600 0"/>
274
 </v:formulas>
275
 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
276
 <o:lock v:ext="edit" aspectratio="t"/>
277
</v:shapetype><v:shape id="_x0000_i1026" type="#_x0000_t75" style='width:11.25pt;
278
 height:11.25pt'>
279
 <v:imagedata src="Ejemplo_archivos/image003.png" o:title="icono" gain="69719f"/>
280
</v:shape><![endif]--><![if !vml]><img width=15 height=15
281
src="Ejemplo_archivos/image004.gif" v:shapes="_x0000_i1026"><![endif]>, o opci?n
282
de men?.<u><o:p></o:p></u></p>
283

  
284
<p><u><o:p><span style='text-decoration:none'>&nbsp;</span></o:p></u></p>
285

  
286
<p class=nivel3><span class=SpellE>Arbol</span> del <span class=SpellE>plugin</span></p>
287

  
288
<p>Clases y ficheros necesarios para crear un <span class=SpellE>plugin</span>
289
base.</p>
290

  
291
<p>Esta extensi?n abrir? una ventana con la informaci?n referente a los autores,
292
participaciones y software en el que se ha basado <span class=SpellE>gvSIG</span>.</p>
293

  
294
<p class=pequenya>Esquema del proyecto de ejemplo.</p>
295

  
296
<p><!--[if gte vml 1]><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:438.75pt;
297
 height:319.5pt'>
298
 <v:imagedata src="Ejemplo_archivos/image001.png" o:title="Ejemplo"/>
299
</v:shape><![endif]--><![if !vml]><img width=585 height=426
300
src="Ejemplo_archivos/image005.jpg" v:shapes="_x0000_i1025"><![endif]></p>
301

  
302
<p class=nivel3>Clases java</p>
303

  
304
<h1><span class=SpellE>EjemploExtension.java</span></h1>
305

  
306
<p>Se necesita como m?nimo una clase java. En nuestro caso ?<span class=SpellE>EjemploExtension.java</span>?,
307
esta clase implementa la interfaz <span class=SpellE>com.iver.andami.plugins.Extension</span>
308
con los m?todos: </p>
309

  
310
<p><span class=GramE>inicializar</span>(); Que es invocado cuando se inicializa
311
la extensi?n.</p>
312

  
313
<p><span class=SpellE><span class=GramE>execute</span></span><span class=GramE>(</span><span
314
class=SpellE>String</span> <span class=SpellE>actionCommand</span>): El <span
315
class=SpellE>String</span> que se pasa como par?metro indica que comando en
316
concreto se ejecuta, de esta forma una misma extensi?n puede contener varios
317
comandos.</p>
318

  
319
<p><span class=SpellE><span class=GramE>isEnabled</span></span>(): Si devuelve <span
320
class=SpellE>true</span> el icono o <span class=SpellE>item</span> de men? <span
321
class=SpellE>desplegable</span> se quedan como habilitados <span
322
style='mso-spacerun:yes'>?</span>y <span style='mso-spacerun:yes'>?</span>si
323
por el contrario devuelve <span class=SpellE>false</span> se queda como deshabilitados.</p>
324

  
325
<p><span class=SpellE><span class=GramE>sVisible</span></span>(): Si devuelve <span
326
class=SpellE>true</span> el icono o <span class=SpellE>item</span> de men? se
327
visualiza y si es <span class=SpellE>false</span> se oculta.</p>
328

  
329
<h1><span class=SpellE>FPanelAbout.java</span></h1>
330

  
331
<p>Es un ejemplo de como a?adir una ventana y su contenido a <span
332
class=SpellE>Andami</span>, es un <span class=SpellE>JPanel</span> que
333
implementa <span class=SpellE>com.iver.andami.ui.mdiManager.View</span>.</p>
334

  
335
<h1>about.htm</h1>
336

  
337
<p>P?gina HTML con la informaci?n que se mostrar? en la ventana que a?adimos a <span
338
class=SpellE>Andami</span>, este archivo se utiliza para poder llevar a cabo el
339
ejemplo.</p>
340

  
341
<h1><span class=SpellE>config.xml</span></h1>
342

  
343
<p>Archivo XML que sirve para configurar todas las extensiones que contiene el <span
344
class=SpellE>plugin</span>.</p>
345

  
346
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
347

  
348
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
349
class=GramE><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
350
color:#0000E1;background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&lt;?<span
351
class=SpellE>xml</span></span></span><span lang=EN-GB style='font-size:10.0pt;
352
font-family:"Courier New";color:black;background:white;mso-highlight:white;
353
mso-ansi-language:EN-GB'> </span><span lang=EN-GB style='font-size:10.0pt;
354
font-family:"Courier New";color:#0000E1;background:white;mso-highlight:white;
355
mso-ansi-language:EN-GB'>version=</span><span lang=EN-GB style='font-size:10.0pt;
356
font-family:"Courier New";color:navy;background:white;mso-highlight:white;
357
mso-ansi-language:EN-GB'>&quot;1.0&quot;</span><span lang=EN-GB
358
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
359
mso-highlight:white;mso-ansi-language:EN-GB'> </span><span lang=EN-GB
360
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
361
white;mso-highlight:white;mso-ansi-language:EN-GB'>encoding=</span><span
362
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
363
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;ISO-8859-1&quot;</span><span
364
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
365
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>?&gt;</span><span
366
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-ansi-language:
367
EN-GB'><o:p></o:p></span></p>
368

  
369
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
370
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
371
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&lt;<span
372
class=SpellE><span class=GramE>plugin-config</span></span>&gt;</span><span
373
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-ansi-language:
374
EN-GB'><o:p></o:p></span></p>
375

  
376
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
377
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
378
background:white;mso-highlight:white;mso-ansi-language:EN-GB'><span
379
style='mso-tab-count:1'>????? </span></span><span lang=EN-GB style='font-size:
380
10.0pt;font-family:"Courier New";color:#0000E1;background:white;mso-highlight:
381
white;mso-ansi-language:EN-GB'>&lt;libraries</span><span lang=EN-GB
382
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
383
mso-highlight:white;mso-ansi-language:EN-GB'> </span><span lang=EN-GB
384
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
385
white;mso-highlight:white;mso-ansi-language:EN-GB'>library-dir=</span><span
386
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
387
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;.&quot;</span><span
388
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
389
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>/&gt;</span><span
390
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-ansi-language:
391
EN-GB'><o:p></o:p></span></p>
392

  
393
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
394
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
395
background:white;mso-highlight:white;mso-ansi-language:EN-GB'><span
396
style='mso-tab-count:2'>??????????? </span></span><span lang=EN-GB
397
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
398
white;mso-highlight:white;mso-ansi-language:EN-GB'>&lt;<span class=SpellE>resourceBundle</span></span><span
399
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
400
background:white;mso-highlight:white;mso-ansi-language:EN-GB'> </span><span
401
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
402
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>name=</span><span
403
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
404
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;text&quot;</span><span
405
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
406
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>/&gt;</span><span
407
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";mso-ansi-language:
408
EN-GB'><o:p></o:p></span></p>
409

  
410
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
411
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
412
background:white;mso-highlight:white;mso-ansi-language:EN-GB'><span
413
style='mso-tab-count:1'>????? </span></span><span lang=EN-GB style='font-size:
414
10.0pt;font-family:"Courier New";color:#0000E1;background:white;mso-highlight:
415
white;mso-ansi-language:EN-GB'>&lt;<span class=GramE>extensions</span>&gt;</span><span
416
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
417
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
418

  
419
<p class=pequenyacursiva><span lang=EN-GB style='mso-ansi-language:EN-GB'><span
420
style='mso-tab-count:1'>??????????? </span><span style='mso-tab-count:1'>??????????? </span></span>Nombre
421
complete de la clase que implementa <span class=SpellE>Extension</span>.<o:p></o:p></p>
422

  
423
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
424
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
425
mso-highlight:white'><span style='mso-tab-count:2'>??????????? </span></span><span
426
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
427
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&lt;extension</span><span
428
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
429
background:white;mso-highlight:white;mso-ansi-language:EN-GB'> </span><span
430
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
431
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>class-name=</span><span
432
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
433
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;<span
434
class=SpellE>com.iver.ejemplo.EjemploExtension</span>&quot;</span><span
435
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
436
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
437

  
438
<p class=pequenyacursiva><span lang=EN-GB style='mso-ansi-language:EN-GB'><span
439
style='mso-tab-count:1'>??????????? </span><span style='mso-tab-count:2'>??????????????????????? </span><span
440
class=SpellE><span class=GramE>Descripci?n</span></span><span class=GramE> de
441
la extension.</span><o:p></o:p></span></p>
442

  
443
<p class=MsoNormal style='margin-left:105.75pt;mso-layout-grid-align:none;
444
text-autospace:none'><span class=SpellE><span class=GramE><span
445
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
446
white;mso-highlight:white'>description</span></span></span><span
447
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
448
white;mso-highlight:white'>=</span><span style='font-size:10.0pt;font-family:
449
"Courier New";color:navy;background:white;mso-highlight:white'>&quot;Extensi?n
450
de ejemplo que muestra una ventana nueva con informaci?n en <span class=SpellE>html</span>.&quot;</span><span
451
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
452

  
453
<p class=pequenyacursiva><span style='background:white;mso-highlight:white'><span
454
style='mso-tab-count:2'>??????????????????????? </span><span style='mso-tab-count:
455
1'>??????????? </span>Poner la extensi?n en modo activo o no <span class=GramE>activo(</span>Para
456
ser cargada debe estar activa).<o:p></o:p></span></p>
457

  
458
<p class=MsoNormal style='margin-left:70.35pt;text-indent:35.4pt;mso-layout-grid-align:
459
none;text-autospace:none'><span class=GramE><span lang=EN-GB style='font-size:
460
10.0pt;font-family:"Courier New";color:#0000E1;background:white;mso-highlight:
461
white;mso-ansi-language:EN-GB'>active</span></span><span lang=EN-GB
462
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
463
white;mso-highlight:white;mso-ansi-language:EN-GB'>=</span><span lang=EN-GB
464
style='font-size:10.0pt;font-family:"Courier New";color:navy;background:white;
465
mso-highlight:white;mso-ansi-language:EN-GB'>&quot;true&quot;</span><span
466
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
467
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&gt;</span><span
468
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
469
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
470

  
471
<p class=pequenyacursiva><span lang=EN-GB style='mso-ansi-language:EN-GB'><span
472
style='mso-tab-count:2'>??????????????????????? </span><span style='mso-tab-count:
473
1'>??????????? </span></span>Ruta en el <span class=SpellE>menu</span> <span
474
class=SpellE>desplegable</span>.<o:p></o:p></p>
475

  
476
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
477
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
478
mso-highlight:white'><span style='mso-tab-count:3'>????????????????? </span></span><span
479
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
480
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&lt;menu</span><span
481
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
482
background:white;mso-highlight:white;mso-ansi-language:EN-GB'> </span><span
483
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
484
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>text=</span><span
485
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
486
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;<span
487
class=SpellE>Archivo/ejemplo</span>&quot;</span><span lang=EN-GB
488
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
489
mso-highlight:white;mso-ansi-language:EN-GB'> <o:p></o:p></span></p>
490

  
491
<p class=pequenyacursiva style='margin-left:70.8pt;text-indent:35.4pt'><span
492
class=SpellE><span lang=EN-GB style='mso-ansi-language:EN-GB'>Tooltip</span></span><span
493
lang=EN-GB style='mso-ansi-language:EN-GB'> <st1:State w:st="on"><st1:place
494
 w:st="on"><span class=GramE>del</span></st1:place></st1:State> item.<o:p></o:p></span></p>
495

  
496
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
497
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
498
background:white;mso-highlight:white;mso-ansi-language:EN-GB'><span
499
style='mso-tab-count:3'>????????????????? </span></span><span class=SpellE><span
500
class=GramE><span style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
501
background:white;mso-highlight:white'>tooltip</span></span></span><span
502
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
503
white;mso-highlight:white'>=</span><span style='font-size:10.0pt;font-family:
504
"Courier New";color:navy;background:white;mso-highlight:white'>&quot;ejemplo&quot;</span><span
505
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
506
mso-highlight:white'><o:p></o:p></span></p>
507

  
508
<p class=pequenyacursiva><span style='background:white;mso-highlight:white'><span
509
style='mso-tab-count:3'>?????????????????????????????????? </span><u>Comando</u>
510
en concreto, ya que <span class=GramE>pueden</span> haber varios en una misma
511
extensi?n.<o:p></o:p></span></p>
512

  
513
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt;mso-layout-grid-align:
514
none;text-autospace:none'><span class=GramE><span lang=EN-GB style='font-size:
515
10.0pt;font-family:"Courier New";color:#0000E1;background:white;mso-highlight:
516
white;mso-ansi-language:EN-GB'>action-command</span></span><span lang=EN-GB
517
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
518
white;mso-highlight:white;mso-ansi-language:EN-GB'>=</span><span lang=EN-GB
519
style='font-size:10.0pt;font-family:"Courier New";color:navy;background:white;
520
mso-highlight:white;mso-ansi-language:EN-GB'>&quot;EJEMPLO&quot;</span><span
521
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
522
background:white;mso-highlight:white;mso-ansi-language:EN-GB'> <o:p></o:p></span></p>
523

  
524
<p class=pequenyacursiva><span lang=EN-GB style='background:white;mso-highlight:
525
white;mso-ansi-language:EN-GB'><span style='mso-tab-count:3'>?????????????????????????????????? </span></span><span
526
style='background:white;mso-highlight:white'>Icono que se mostrara en el <span
527
class=SpellE>menu</span> <span class=SpellE>desplegable</span>.<o:p></o:p></span></p>
528

  
529
<p class=MsoNormal style='margin-left:70.8pt;text-indent:35.4pt;mso-layout-grid-align:
530
none;text-autospace:none'><span class=GramE><span lang=EN-GB style='font-size:
531
10.0pt;font-family:"Courier New";color:#0000E1;background:white;mso-highlight:
532
white;mso-ansi-language:EN-GB'>icon</span></span><span lang=EN-GB
533
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
534
white;mso-highlight:white;mso-ansi-language:EN-GB'>=</span><span lang=EN-GB
535
style='font-size:10.0pt;font-family:"Courier New";color:navy;background:white;
536
mso-highlight:white;mso-ansi-language:EN-GB'>&quot;images/<span class=SpellE>ejemplo.png</span>&quot;</span><span
537
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
538
background:white;mso-highlight:white;mso-ansi-language:EN-GB'> </span><span
539
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
540
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>/&gt;</span><span
541
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
542
mso-ansi-language:EN-GB'><o:p></o:p></span></p>
543

  
544
<p class=pequenyacursiva><span lang=EN-GB style='mso-ansi-language:EN-GB'><span
545
style='mso-tab-count:4'>?????????????????????????????????????????????? </span><span
546
style='mso-tab-count:1'>??????????? </span></span>Nombre de la barra de
547
herramientas en la que a?adimos el bot?n.<o:p></o:p></p>
548

  
549
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
550
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
551
mso-highlight:white'><span style='mso-tab-count:3'>????????????????? </span></span><span
552
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
553
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&lt;tool-bar</span><span
554
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
555
background:white;mso-highlight:white;mso-ansi-language:EN-GB'> </span><span
556
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
557
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>name=</span><span
558
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
559
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;<span
560
class=SpellE>Herramientas</span>&quot;</span><span lang=EN-GB style='font-size:
561
10.0pt;font-family:"Courier New";color:#0000E1;background:white;mso-highlight:
562
white;mso-ansi-language:EN-GB'>&gt;</span><span lang=EN-GB style='font-size:
563
10.0pt;font-family:"Courier New";color:#0000E1;mso-ansi-language:EN-GB'><o:p></o:p></span></p>
564

  
565
<p class=pequenyacursiva><span lang=EN-GB style='mso-ansi-language:EN-GB'><span
566
style='mso-tab-count:5'>?????????????????????????????????????????????????????????? </span><span
567
style='mso-tab-count:1'>??????????? </span></span>Icono que se mostrara en el
568
bot?n.<o:p></o:p></p>
569

  
570
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
571
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
572
mso-highlight:white'><span style='mso-tab-count:4'>??????????????????????? </span></span><span
573
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
574
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&lt;action-tool</span><span
575
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
576
background:white;mso-highlight:white;mso-ansi-language:EN-GB'> </span><span
577
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
578
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>icon=</span><span
579
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
580
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;images/<span
581
class=SpellE>ejemplo.png</span>&quot;</span><span lang=EN-GB style='font-size:
582
10.0pt;font-family:"Courier New";color:navy;mso-ansi-language:EN-GB'><o:p></o:p></span></p>
583

  
584
<p class=pequenyacursiva><span lang=EN-GB style='mso-ansi-language:EN-GB'><span
585
style='mso-tab-count:5'>?????????????????????????????????????????????????????????? </span><span
586
class=SpellE><span class=GramE>Comando</span></span><span class=GramE> <span
587
class=SpellE>que</span> se <span class=SpellE>ejecutar?</span>.</span><o:p></o:p></span></p>
588

  
589
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
590
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
591
background:white;mso-highlight:white;mso-ansi-language:EN-GB'><span
592
style='mso-tab-count:5'>???????????????????????????? </span></span><span
593
class=GramE><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
594
color:#0000E1;background:white;mso-highlight:white;mso-ansi-language:EN-GB'>action-command</span></span><span
595
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
596
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>=</span><span
597
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
598
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;EJEMPLO&quot;</span><span
599
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black;
600
background:white;mso-highlight:white;mso-ansi-language:EN-GB'> <o:p></o:p></span></p>
601

  
602
<p class=pequenyacursiva style='margin-left:141.6pt;text-indent:35.4pt'><span
603
class=SpellE><span lang=EN-GB style='mso-ansi-language:EN-GB'>Tooltip</span></span><span
604
lang=EN-GB style='mso-ansi-language:EN-GB'> <st1:State w:st="on"><st1:place
605
 w:st="on"><span class=GramE>del</span></st1:place></st1:State> <span
606
class=SpellE>bot?n</span>.<span style='background:white;mso-highlight:white'><o:p></o:p></span></span></p>
607

  
608
<p class=MsoNormal style='margin-left:141.6pt;text-indent:35.4pt;mso-layout-grid-align:
609
none;text-autospace:none'><span class=SpellE><span class=GramE><span
610
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
611
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>tooltip</span></span></span><span
612
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
613
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>=</span><span
614
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:navy;
615
background:white;mso-highlight:white;mso-ansi-language:EN-GB'>&quot;<span
616
class=SpellE>ejemplo</span>&quot;</span><span lang=EN-GB style='font-size:10.0pt;
617
font-family:"Courier New";color:navy;mso-ansi-language:EN-GB'><o:p></o:p></span></p>
618

  
619
<p class=pequenyacursiva><span lang=EN-GB style='mso-ansi-language:EN-GB'><span
620
style='mso-tab-count:5'>?????????????????????????????????????????????????????????? </span></span>Texto
621
que se mostrar? cuando el bot?n est? deshabilitado.<u><o:p></o:p></u></p>
622

  
623
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
624
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
625
mso-highlight:white'><span style='mso-tab-count:5'>???????????????????????????? </span></span><span
626
class=SpellE><span class=GramE><span style='font-size:10.0pt;font-family:"Courier New";
627
color:#0000E1;background:white;mso-highlight:white'>enable</span></span></span><span
628
class=GramE><span style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
629
background:white;mso-highlight:white'>-<span class=SpellE>text</span></span></span><span
630
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
631
white;mso-highlight:white'>=</span><span style='font-size:10.0pt;font-family:
632
"Courier New";color:navy;background:white;mso-highlight:white'>&quot;deber?a de
633
estar activada&quot;</span><span style='font-size:10.0pt;font-family:"Courier New";
634
color:black;background:white;mso-highlight:white'> </span><span class=SpellE><span
635
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
636
white;mso-highlight:white'>last</span></span><span style='font-size:10.0pt;
637
font-family:"Courier New";color:#0000E1;background:white;mso-highlight:white'>=</span><span
638
style='font-size:10.0pt;font-family:"Courier New";color:navy;background:white;
639
mso-highlight:white'>&quot;<span class=SpellE>true</span>&quot;</span><span
640
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
641
white;mso-highlight:white'>/&gt;</span><span style='font-size:10.0pt;
642
font-family:"Courier New"'><o:p></o:p></span></p>
643

  
644
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
645
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
646
mso-highlight:white'><span style='mso-tab-count:3'>????????????????? </span></span><span
647
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
648
white;mso-highlight:white'>&lt;/<span class=SpellE><span class=GramE>tool</span></span><span
649
class=GramE>-<span class=SpellE>bar</span></span>&gt;</span><span
650
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
651

  
652
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
653
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
654
mso-highlight:white'><span style='mso-tab-count:2'>??????????? </span></span><span
655
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
656
white;mso-highlight:white'>&lt;/<span class=SpellE><span class=GramE>extension</span></span>&gt;</span><span
657
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
658

  
659
<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
660
style='font-size:10.0pt;font-family:"Courier New";color:black;background:white;
661
mso-highlight:white'><span style='mso-tab-count:1'>????? </span></span><span
662
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;background:
663
white;mso-highlight:white'>&lt;/<span class=SpellE><span class=GramE>extensions</span></span>&gt;</span><span
664
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>
665

  
666
<p><span style='font-size:10.0pt;font-family:"Courier New";color:#0000E1;
667
background:white;mso-highlight:white'>&lt;/<span class=SpellE><span
668
class=GramE>plugin</span></span><span class=GramE>-<span class=SpellE>config</span></span>&gt;</span><span
669
style='font-size:10.0pt;font-family:"Courier New";color:#0000E1'><o:p></o:p></span></p>
670

  
671
<h1>Directorio <span class=SpellE>images</span></h1>
672

  
673
<p>Se guardan las im?genes que necesitamos para el <span class=SpellE>plugin</span>.</p>
674

  
675
<h1><span class=SpellE>build.xml</span></h1>
676

  
677
<p class=MsoNormal><o:p>&nbsp;</o:p></p>
678

  
679
<p>Es un archivo <span class=SpellE>Ant</span> con todas las tareas necesarias
680
para copiar el <span class=SpellE>plugin</span> con sus extensiones, im?genes y
681
archivos necesarios al directorio de <span class=SpellE>Andami</span> donde le
682
corresponde, para que este reconozca que existe un <span class=SpellE>plugin</span>
683
que debe cargar.<u><o:p></o:p></u></p>
684

  
685
</div>
686

  
687
</body>
688

  
689
</html>
0 690

  
trunk/examples/exaExample1/docs/Ejemplo_archivos/filelist.xml
1
<xml xmlns:o="urn:schemas-microsoft-com:office:office">
2
 <o:MainFile HRef="../Ejemplo.htm"/>
3
 <o:File HRef="image003.png"/>
4
 <o:File HRef="image004.gif"/>
5
 <o:File HRef="image001.png"/>
6
 <o:File HRef="image005.jpg"/>
7
 <o:File HRef="filelist.xml"/>
8
</xml>
0 9

  
trunk/examples/exaExample1/docs/~$jemplo.htm
1
VCNVCN,pP??.????:		?
0 2

  
trunk/examples/exaExample1/build.xml
1
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala el plugin de ejemplo en Andami.
4
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7
  <property name="build" location="bin"/>
8
  <property name="dist"  location="dist"/>
9
  <property name="plugin" value="com.iver.ejemplo"/>
10
  <property name="extension-dir" location="c:/eclipse3/workspace/Andami/gvSIG/extensiones"/>
11

  
12
  <target name="init">
13
    <!-- Create the time stamp -->
14
    <tstamp/>
15
    <!-- Create the build directory structure used by compile -->
16
    <mkdir dir="${build}"/>
17
    <mkdir dir="${dist}"/>
18
  	<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
19
  	<buildnumber/> 
20
  	
21
  </target>
22

  
23
  <target name="generate-without-source" description="generate the distribution without the source file" >
24
    <!-- Create the distribution directory -->
25
    <mkdir dir="${dist}"/>
26

  
27
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
28
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
29
    <copy file="config/config.xml" todir="${dist}"/>
30
    <copy file="config/about.htm" todir="${dist}"/>
31
    <copy todir="${dist}">
32
    	<fileset dir="." includes="text*.properties"/>
33
    </copy>
34
    <copy todir="${dist}/images">
35
    	<fileset dir="images/" includes="*"/>
36
    </copy>
37
    <move todir="${extension-dir}/${plugin}/">
38
    	<fileset dir="${dist}" includes="**/**"/>
39
    </move>
40
  </target>
41
</project>
42

  
0 43

  
trunk/examples/exaExample1/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>Ejemplo</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
	</buildSpec>
14
	<natures>
15
		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
16
		<nature>org.eclipse.jdt.core.javanature</nature>
17
		<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
18
	</natures>
19
</projectDescription>
0 20

  
trunk/examples/exaExample1/config/about.htm
1
<html>
2

  
3
<body>
4
<p>&nbsp;</p>
5
<table width="60%" border="0">
6
  <tr> 
7
    <td width="64%"><img src="images/logo_horiz_bicolor_gva.png" width="329" height="50"></td>
8
    <td width="36%"><div align="right"><img src="images/logoIver.png" width="87" height="50"></div></td>
9
  </tr>
10
  <tr> 
11
    <td colspan="2"><font face="Arial, Helvetica, sans-serif">&copy; Copyright 
12
      Generalitat Valenciana, IVER T.I and other contributors 2005.</font></td>
13
  </tr>
14
  <tr> 
15
    <td colspan="2">&nbsp;</td>
16
  </tr>
17
  <tr> 
18
    <td colspan="2"><font face="Arial, Helvetica, sans-serif"> This program is 
19
      free software; you can redistribute it and/or<br>
20
      modify it under the terms of the GNU General Public License<br>
21
      as published by the Free Software Foundation; either version 2<br>
22
      of the License, or (at your option) any later version.<br>
23
      <br>
24
      This program is distributed in the hope that it will be useful,<br>
25
      but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
26
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
27
      GNU General Public License for more details.<br>
28
      <br>
29
      You should have received a copy of the GNU General Public License<br>
30
      along with this program; if not, write to the Free Software<br>
31
      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.<br>
32
      <br>
33
      For more information, contact:<br>
34
      <br>
35
      Generalitat Valenciana<br>
36
      Conselleria d'Infraestructures i Transport<br>
37
      Av. Blasco Ib&aacute;&ntilde;ez, 50<br>
38
      46010 VALENCIA<br>
39
      SPAIN<br>
40
      <br>
41
      +34 963862235<br>
42
      gvsig@gva.es<br>
43
      www.gvsig.gva.es<br>
44
      <br>
45
      or<br>
46
      <br>
47
      IVER T.I. S.A<br>
48
      Salamanca 50<br>
49
      46005 Valencia<br>
50
      Spain<br>
51
      <br>
52
      +34 963163400<br>
53
      dac@iver.es<br>
54
      <br>
55
      <br>
56
      Visit <a href="http://www.gvsig.gva.es">http://www.gvsig.gva.es</a></font></td>
57
  </tr>
58
  <tr> 
59
    <td colspan="2"><p><font face="Arial, Helvetica, sans-serif"><br>
60
        This product includes software developed by the<br>
61
        Apache Software Foundation http://www.apache.org/ </font></p>
62
      <p><font face="Arial, Helvetica, sans-serif">Other libraries we have used:</font></p>
63
      <p><font face="Arial, Helvetica, sans-serif"><a href="http://www.geotools.org">Geotools2</a> 
64
        =&gt; Magn&iacute;fico proyecto. Hemos aprovechado todo lo relativo a 
65
        proyecciones, y es probable que utilicemos m&aacute;s m&oacute;dulos, 
66
        por ejemplo el relativo a Styled Layer Descriptor (SLD)..</font></p>
67
      <p><font face="Arial, Helvetica, sans-serif"><a href="http://www.vividsolutions.com/jts/jtshome.htm">JTS</a> 
68
        (Java Topology Suite).=&gt;Sin ella, todo lo referente a an&aacute;lisis 
69
        espacial, consultas avanzadas y creaci&oacute;n de topolog&iacute;a, ser&iacute;a 
70
        imposible.</font></p>
71
      <p><font face="Arial, Helvetica, sans-serif"><a href="http://logging.apache.org/">Log4java</a> 
72
        =&gt; Para que sepamos en todo momento qu&eacute; est&aacute; haciendo 
73
        la aplicaci&oacute;n y se cree un &#8220;log&#8221; o registro de los 
74
        posibles fallos. Del proyecto Apache, un verdadero almac&eacute;n de librer&iacute;as 
75
        &uacute;tiles.</font></p>
76
      <p><font face="Arial, Helvetica, sans-serif"><a href="http://xml.apache.org/batik/">Batik</a> 
77
        =&gt; Tambi&eacute;n del proyecto Apache. En el futuro, la emplearemos 
78
        para trabajar con SVG. Por ahora, la empleamos para etiquetar polil&iacute;neas.</font></p>
79
      <p><font face="Arial, Helvetica, sans-serif"><a href="http://www.castor.org/">Castor</a>=&gt; 
80
        Librer&iacute;a para manejar la persistencia de objetos. Con ella se consigue 
81
        guardar y recuperar los objetos del proyecto, y tambi&eacute;n la hemos 
82
        empleado para realizar el cliente WMS, bas&aacute;ndonos en los esquemas 
83
        que suministra el Opengis Consortium.</font></p>
84
      <p><font face="Arial, Helvetica, sans-serif"><a href="http://www.ermapper.com/">Ermapper</a>=&gt; 
85
        Librer&iacute;a para trabajar con ECW. Solo Windows, pero gratuita. Muy 
86
        r&aacute;pida en la visualizaci&oacute;n, y consume poca memoria. Posibilita 
87
        trabajar con ficheros raster enormes.</font></p>
88
      <p><font face="Arial, Helvetica, sans-serif"><br>
89
        Tambi&eacute;n hemos reutilizado c&oacute;digo de otros proyectos como 
90
        <a href="http://www.vividsolutions.com/jump/main.htm">JUMP</a> (Java Unified 
91
        Mapping Platform), <a href="http://mapserver.gis.umn.edu/">MapServer</a>, 
92
        etc. Adem&aacute;s, hemos explorado el dise&ntilde;o y el c&oacute;digo 
93
        de muchos otros proyectos. Uno de los m&aacute;s prometedores: <a href="http://udig.refractions.net/">UDIG</a> 
94
        (User Friendly Desktop Gis), excelente trabajo, y muy cercano a Geotools2.</font></p>
95
      <p><font face="Arial, Helvetica, sans-serif">Y hemos portado (de manera 
96
        incompleta) la librer&iacute;a <a href="http://dgnlib.maptools.org/">DGNLib</a> 
97
        a Java nativo para visualizar ficheros .dgn (versi&oacute;n 7.0, la de 
98
        MicroStation 95).</font></p>
99
      <p><font face="Arial, Helvetica, sans-serif">En el futuro estamos trabajando 
100
        para incorporar otras fuentes de datos, como <a href="http://www.lizardtech.com/">MrSid</a> 
101
        o la librer&iacute;a <a href="http://www.gdal.org">GDAL</a>.</font></p>
102
      <p><font face="Arial, Helvetica, sans-serif">Y para terminar, menci&oacute;n 
103
        aparte al entorno de desarrollo que hemos usado: <a href="http://www.eclipse.org">ECLIPSE</a>, 
104
        un entorno de desarrollo incre&iacute;ble.<br>
105
        </font> </p>
106
      </td>
107
  </tr>
108
  <tr> 
109
    <td colspan="2"><p><font face="Arial, Helvetica, sans-serif"><br>
110
        Equipo inicial de desarrollo:</font></p>
111
      <p><font face="Arial, Helvetica, sans-serif"><br>
112
        Vicente Caballero<br>
113
        Fernando Gonz&aacute;lez<br>
114
        Jos&eacute; Morell<br>
115
        Francisco Jos&eacute; Pe&ntilde;arrubia<br>
116
        Luis W. Sevilla</font></p>
117
      </td>
118
  </tr>
119
  <tr>
120
    <td colspan="2"><p><font face="Arial, Helvetica, sans-serif"><br>
121
        Todo esto no ser?a posible sin el resto de gente del proyecto:</font></p>
122
      <p><font face="Arial, Helvetica, sans-serif"><br>
123
        Jefes e impulsores del proyecto, testers, traductores, colaboradores, etc<br>
124
		</p>
125
        
126
	</td>  
127
  </tr>
128
  
129
</table>
130
<p>&nbsp;</p>
131
<p><font face="Arial, Helvetica, sans-serif"><br>
132
  </font></p>
133
<p>&nbsp; </p>
134
</body>
135
</html>
0 136

  
trunk/examples/exaExample1/config/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<libraries library-dir="."/>
4
		<resourceBundle name="text"/>
5
	<extensions>
6
		<extension class-name="com.iver.ejemplo.EjemploExtension"
7
			description="Extensi?n de ejemplo que muestra una ventana nueva con informaci?n en html."
8
			active="true">
9
			<menu text="Ejemplo/ejemplo" tooltip="ejemplo" 
10
				action-command="EJEMPLO" 
11
				icon="images/ejemplo.png" />
12
			<tool-bar name="Herramientas">
13
				<action-tool icon="images/ejemplo.png"
14
					action-command="EJEMPLO" tooltip="ejemplo"
15
					enable-text="deber?a de estar activada" last="true"/>
16
			</tool-bar>
17
		</extension>
18
	</extensions>
19
</plugin-config>
0 20

  
trunk/examples/exaExample1/src/com/iver/ejemplo/EjemploExtension.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package com.iver.ejemplo;
42

  
43
import com.iver.andami.PluginServices;
44
import com.iver.andami.plugins.Extension;
45

  
46

  
47
/**
48
 * Clase de ejemplo sencillo para crear una extensi?n que muestra la ventana
49
 * con la informaci?n "Acerca de..."
50
 *
51
 * @author Vicente Caballero Navarro
52
 */
53
public class EjemploExtension implements Extension {
54
	/**
55
	 * @see com.iver.andami.plugins.Extension#inicializar()
56
	 */
57
	public void inicializar() {
58
	}
59

  
60
	/**
61
	 * @see com.iver.andami.plugins.Extension#execute(java.lang.String)
62
	 */
63
	public void execute(String actionCommand) {
64
		FPanelAbout panelAbout = new FPanelAbout();
65
		PluginServices.getMDIManager().addView(panelAbout);
66
	}
67

  
68
	/**
69
	 * @see com.iver.andami.plugins.Extension#isEnabled()
70
	 */
71
	public boolean isEnabled() {
72
		return true;
73
	}
74

  
75
	/**
76
	 * @see com.iver.andami.plugins.Extension#isVisible()
77
	 */
78
	public boolean isVisible() {
79
		return true;
80
	}
81
}
0 82

  
trunk/examples/exaExample1/src/com/iver/ejemplo/FPanelAbout.java
1
/*
2
 * Created on 02-sep-2004
3
 *
4
 * TODO To change the template for this generated file go to
5
 * Window - Preferences - Java - Code Generation - Code and Comments
6
 */
7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8
 *
9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
24
 *
25
 * For more information, contact:
26
 *
27
 *  Generalitat Valenciana
28
 *   Conselleria d'Infraestructures i Transport
29
 *   Av. Blasco Ib??ez, 50
30
 *   46010 VALENCIA
31
 *   SPAIN
32
 *
33
 *      +34 963862235
34
 *   gvsig@gva.es
35
 *      www.gvsig.gva.es
36
 *
37
 *    or
38
 *
39
 *   IVER T.I. S.A
40
 *   Salamanca 50
41
 *   46005 Valencia
42
 *   Spain
43
 *
44
 *   +34 963163400
45
 *   dac@iver.es
46
 */
47
package com.iver.ejemplo;
48

  
49
import java.awt.BorderLayout;
50
import java.io.FileNotFoundException;
51
import java.io.IOException;
52

  
53
import javax.swing.JButton;
54
import javax.swing.JDialog;
55
import javax.swing.JEditorPane;
56
import javax.swing.JLabel;
57
import javax.swing.JPanel;
58
import javax.swing.JScrollPane;
59
import javax.swing.event.HyperlinkEvent;
60

  
61
import com.iver.andami.PluginServices;
62
import com.iver.andami.ui.mdiManager.View;
63
import com.iver.andami.ui.mdiManager.ViewInfo;
64
/**
65
 * @author FJP
66
 *
67
 * TODO To change the template for this generated type comment go to
68
 * Window - Preferences - Java - Code Generation - Code and Comments
69
 */
70
public class FPanelAbout extends JPanel implements View {
71

  
72
	private JEditorPane jEditorPane = null;
73
	private JScrollPane jScrollPane = null;
74
	private JEditorPane jEditorPane1 = null;
75
	private JPanel jPanel = null;
76
	private JButton jButton = null;
77
	
78
	private JLabel jLblVersion = null;
79
	/**
80
	 * This is the default constructor
81
	 * @throws FileNotFoundException
82
	 */
83
	public FPanelAbout(){
84
		super();
85
		initialize();
86
	}
87
	/**
88
	 * This method initializes this
89
	 * 
90
	 * @return void
91
	 * @throws FileNotFoundException
92
	 */
93
	private  void initialize(){
94
		this.setLayout(new BorderLayout());
95
		this.setSize(600, 450);
96
		this.add(getJScrollPane(), java.awt.BorderLayout.CENTER);
97
		this.add(getJPanel(), java.awt.BorderLayout.SOUTH);
98
	}
99

  
100
	/**
101
	 * This method initializes jScrollPane	
102
	 * 	
103
	 * @return javax.swing.JScrollPane	
104
	 */    
105
	private JScrollPane getJScrollPane() {
106
		if (jScrollPane == null) {
107
			jScrollPane = new JScrollPane();
108
			jScrollPane.setPreferredSize(new java.awt.Dimension(300,400));
109
			jScrollPane.setViewportView(getJEditorPane());
110
		}
111
		return jScrollPane;
112
	}
113
	/**
114
	 * This method initializes jEditorPane1	
115
	 * 	
116
	 * @return javax.swing.JEditorPane	
117
	 */    
118
		private JEditorPane getJEditorPane() {
119
			if (jEditorPane == null) {
120
				jEditorPane = new JEditorPane();
121
				
122
				jEditorPane.setEditable(false);
123
				jEditorPane.setContentType("text/html");
124
				jEditorPane.setPreferredSize(new java.awt.Dimension(300,200));
125
				
126
				java.net.URL aboutURL = FPanelAbout.class.getResource(
127
				                                "/about.htm");
128
				if (aboutURL != null) {
129
				    try {
130
				    	jEditorPane.setPage(aboutURL);
131
				    	jEditorPane.addHyperlinkListener(new javax.swing.event.HyperlinkListener() { 
132
				    		public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e) {
133
				    			if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
134
				    			{
135
				    	 		      JEditorPane pane = (JEditorPane) e.getSource();
136
				    	 		      System.out.println("hyperlinkUpdate()"); // TODO Auto-generated Event stub hyperlinkUpdate()
137
				    	 		      //BrowserControl.displayURL(e.getURL().toString());
138
				    	 		      // if (e instanceof HTMLFrameHyperlinkEvent) {
139
				    			}
140

  
141
				    			
142
				    		}
143
				    	});
144
				    } catch (IOException e) {
145
				        System.err.println("Attempted to read a bad URL: " + aboutURL);
146
				    }
147
				} else {
148
				    System.err.println("Couldn't find file: about.html" + aboutURL.getPath());
149
				}
150
				
151
			}
152
			return jEditorPane;
153
		}
154
	/**
155
	 * This method initializes jPanel	
156
	 * 	
157
	 * @return javax.swing.JPanel	
158
	 */    
159
	private JPanel getJPanel() {
160
		if (jPanel == null) {
161
			jLblVersion = new JLabel();
162
			jPanel = new JPanel();
163
			jPanel.setLayout(null);
164
			jPanel.setPreferredSize(new java.awt.Dimension(10,50));
165
			jLblVersion.setBounds(31, 20, 172, 17);
166
			jLblVersion.setText("Version 0.3  ");
167
			jPanel.add(getJButton(), null);
168
			jPanel.add(jLblVersion, null);
169
		}
170
		return jPanel;
171
	}
172
	/**
173
	 * This method initializes jButton	
174
	 * 	
175
	 * @return javax.swing.JButton	
176
	 */    
177
	private JButton getJButton() {
178
		if (jButton == null) {
179
			jButton = new JButton();
180
			jButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
181
			jButton.setText(PluginServices.getText(this,"Cerrar"));
182
			jButton.setBounds(266, 12, 94, 25);
183
			jButton.addActionListener(new java.awt.event.ActionListener() { 
184
				public void actionPerformed(java.awt.event.ActionEvent e) {    
185
					System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
186
					if (PluginServices.getMainFrame() != null)
187
					{
188
						PluginServices.getMDIManager().closeView(FPanelAbout.this);
189
					}
190
					else 
191
					{
192
						((JDialog) (getParent().getParent().getParent().getParent())).dispose();
193
					}
194
					
195
				}
196
			});
197
		}
198
		return jButton;
199
	}
200
	/* (non-Javadoc)
201
	 * @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo()
202
	 */
203
	public ViewInfo getViewInfo() {
204
		ViewInfo m_ViewInfo = new ViewInfo(ViewInfo.MODALDIALOG|ViewInfo.RESIZABLE);
205
		m_ViewInfo.setTitle("Acerca de...");
206

  
207
		return m_ViewInfo;
208
	}
209
	/* (non-Javadoc)
210
	 * @see com.iver.mdiApp.ui.MDIManager.View#viewActivated()
211
	 */
212
	public void viewActivated() {
213
		// TODO Auto-generated method stub
214
		
215
	}
216
}  //  @jve:decl-index=0:visual-constraint="10,10"
0 217

  

Also available in: Unified diff