Revision 919
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/buildNumber.properties | ||
---|---|---|
1 |
#Sun Jul 21 20:17:53 CEST 2019 |
|
2 |
buildNumber=2160 |
|
0 | 3 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/wizard/FrameDefinicionCRS.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.wizard; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.JFrame; |
|
8 |
import javax.swing.JPanel; |
|
9 |
import javax.swing.UIManager; |
|
10 |
import javax.swing.UnsupportedLookAndFeelException; |
|
11 |
|
|
12 |
import org.gvsig.crs.gui.panels.wizard.DefCrsUsr; |
|
13 |
|
|
14 |
public class FrameDefinicionCRS { |
|
15 |
|
|
16 |
|
|
17 |
/** |
|
18 |
* @param args |
|
19 |
* @throws UnsupportedLookAndFeelException |
|
20 |
* @throws IllegalAccessException |
|
21 |
* @throws InstantiationException |
|
22 |
* @throws ClassNotFoundException |
|
23 |
*/ |
|
24 |
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { |
|
25 |
|
|
26 |
/* |
|
27 |
com.sun.java.swing.plaf.motif.MotifLookAndFeel |
|
28 |
com.sun.java.swing.plaf.windows.WindowsLookAndFeel |
|
29 |
javax.swing.plaf.metal.MetalLookAndFeel |
|
30 |
*/ |
|
31 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
32 |
JFrame frame = new JFrame("Definicin de CRS por el usuario"); |
|
33 |
//cerrar el formulario |
|
34 |
frame.addWindowListener(new WindowAdapter() { |
|
35 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
36 |
}); |
|
37 |
|
|
38 |
frame.getContentPane().add(new DefCrsUsr(null)); |
|
39 |
frame.setSize(300,500); |
|
40 |
//colocar en la pantalla |
|
41 |
frame.setLocation(300,300); |
|
42 |
frame.pack(); |
|
43 |
frame.setVisible(true); |
|
44 |
|
|
45 |
} |
|
46 |
|
|
47 |
} |
|
0 | 48 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/wizard/FrameMain.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.wizard; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.ImageIcon; |
|
8 |
import javax.swing.JFrame; |
|
9 |
import javax.swing.JPanel; |
|
10 |
import javax.swing.UIManager; |
|
11 |
import javax.swing.UnsupportedLookAndFeelException; |
|
12 |
|
|
13 |
import org.gvsig.crs.gui.panels.wizard.DefCrsUsr; |
|
14 |
import org.gvsig.crs.gui.panels.wizard.MainPanel; |
|
15 |
|
|
16 |
public class FrameMain { |
|
17 |
|
|
18 |
|
|
19 |
/** |
|
20 |
* @param args |
|
21 |
* @throws UnsupportedLookAndFeelException |
|
22 |
* @throws IllegalAccessException |
|
23 |
* @throws InstantiationException |
|
24 |
* @throws ClassNotFoundException |
|
25 |
*/ |
|
26 |
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { |
|
27 |
|
|
28 |
/* |
|
29 |
com.sun.java.swing.plaf.motif.MotifLookAndFeel |
|
30 |
com.sun.java.swing.plaf.windows.WindowsLookAndFeel |
|
31 |
javax.swing.plaf.metal.MetalLookAndFeel |
|
32 |
*/ |
|
33 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
34 |
JFrame frame = new JFrame("Asistente de Definicin de Crs"); |
|
35 |
//cerrar el formulario |
|
36 |
frame.addWindowListener(new WindowAdapter() { |
|
37 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
38 |
}); |
|
39 |
frame.getContentPane().add(new MainPanel(null)); |
|
40 |
frame.setSize(300,500); |
|
41 |
//colocar en la pantalla |
|
42 |
frame.setLocation(300,0); |
|
43 |
frame.pack(); |
|
44 |
frame.setVisible(true); |
|
45 |
|
|
46 |
} |
|
47 |
|
|
48 |
} |
|
0 | 49 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/wizard/FramDefinirDatum.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.wizard; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.JFrame; |
|
8 |
import javax.swing.UIManager; |
|
9 |
import javax.swing.UnsupportedLookAndFeelException; |
|
10 |
|
|
11 |
import org.gvsig.crs.gui.panels.wizard.DefinirDatum; |
|
12 |
|
|
13 |
public class FramDefinirDatum { |
|
14 |
|
|
15 |
|
|
16 |
/** |
|
17 |
* @param args |
|
18 |
*/ |
|
19 |
public static void main(String[] args) { |
|
20 |
|
|
21 |
JFrame frame = new JFrame("Definicin del Datum"); |
|
22 |
/* |
|
23 |
com.sun.java.swing.plaf.motif.MotifLookAndFeel |
|
24 |
com.sun.java.swing.plaf.windows.WindowsLookAndFeel |
|
25 |
javax.swing.plaf.metal.MetalLookAndFeel |
|
26 |
*/ |
|
27 |
try { |
|
28 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
29 |
} catch (ClassNotFoundException e1) { |
|
30 |
// TODO Auto-generated catch block |
|
31 |
e1.printStackTrace(); |
|
32 |
} catch (InstantiationException e1) { |
|
33 |
// TODO Auto-generated catch block |
|
34 |
e1.printStackTrace(); |
|
35 |
} catch (IllegalAccessException e1) { |
|
36 |
// TODO Auto-generated catch block |
|
37 |
e1.printStackTrace(); |
|
38 |
} catch (UnsupportedLookAndFeelException e1) { |
|
39 |
// TODO Auto-generated catch block |
|
40 |
e1.printStackTrace(); |
|
41 |
} |
|
42 |
//cerrar el formulario |
|
43 |
frame.addWindowListener(new WindowAdapter() { |
|
44 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
45 |
}); |
|
46 |
|
|
47 |
frame.getContentPane().add(new DefinirDatum()); |
|
48 |
frame.setSize(300,500); |
|
49 |
//colocar en la pantalla |
|
50 |
frame.setLocation(300,0); |
|
51 |
frame.pack(); |
|
52 |
frame.setVisible(true); |
|
53 |
|
|
54 |
} |
|
55 |
|
|
56 |
} |
|
0 | 57 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/wizard/FrameSistemaCoordenadas.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.wizard; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.JFrame; |
|
8 |
import org.gvsig.crs.gui.panels.wizard.DefSistCoordenadas; |
|
9 |
|
|
10 |
/** |
|
11 |
* Test para el interfaz del wizard de elecci?n del sistema de coordenadas |
|
12 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
13 |
* |
|
14 |
*/ |
|
15 |
public class FrameSistemaCoordenadas { |
|
16 |
|
|
17 |
public static void main(String[] args) { |
|
18 |
|
|
19 |
JFrame frame = new JFrame("Definicion del Sistema de Coordenadas"); |
|
20 |
|
|
21 |
//cerrar el formulario |
|
22 |
frame.addWindowListener(new WindowAdapter() { |
|
23 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
24 |
}); |
|
25 |
|
|
26 |
frame.getContentPane().add(new DefSistCoordenadas()); |
|
27 |
frame.setSize(300,500); |
|
28 |
//colocar en la pantalla |
|
29 |
frame.setLocation(300,300); |
|
30 |
frame.pack(); |
|
31 |
frame.setVisible(true); |
|
32 |
|
|
33 |
} |
|
34 |
|
|
35 |
} |
|
0 | 36 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/panels/TransformationVistaPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
|
7 |
|
|
8 |
/** |
|
9 |
* Test para el interfaz de transformaci?n de la vista dentro de la transformacion compuesta |
|
10 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
11 |
* |
|
12 |
*/ |
|
13 |
public class TransformationVistaPanelTest { |
|
14 |
|
|
15 |
public static void main(String[] args) { |
|
16 |
JFrame frame = new JFrame("Transformaci?n de la Capa"); |
|
17 |
|
|
18 |
// //cerrar el formulario |
|
19 |
frame.addWindowListener(new WindowAdapter() { |
|
20 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
21 |
}); |
|
22 |
|
|
23 |
frame.getContentPane().add(new TransformationVistaPanel("",null)); |
|
24 |
frame.setSize(300,500); |
|
25 |
//colocar en la pantalla |
|
26 |
frame.setLocation(300,0); |
|
27 |
frame.pack(); |
|
28 |
frame.setVisible(true); |
|
29 |
|
|
30 |
} |
|
31 |
} |
|
0 | 32 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/panels/EPSGPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
|
7 |
|
|
8 |
/** |
|
9 |
* Test para el interfaz de EPSGPanel |
|
10 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
11 |
* |
|
12 |
*/ |
|
13 |
public class EPSGPanelTest { |
|
14 |
|
|
15 |
public static void main(String[] args){ |
|
16 |
JFrame frame = new JFrame("UAU200 Panel Test"); |
|
17 |
frame.addWindowListener(new WindowAdapter() { |
|
18 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
19 |
}); |
|
20 |
frame.getContentPane().add(new EPSGpanel()); |
|
21 |
frame.setLocation(300,0); |
|
22 |
frame.pack(); |
|
23 |
frame.setVisible(true); |
|
24 |
|
|
25 |
} |
|
26 |
|
|
27 |
} |
|
0 | 28 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/panels/IAU2000PanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
|
7 |
/** |
|
8 |
* Test para el interfaz de IAU200Panel |
|
9 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
10 |
* |
|
11 |
*/ |
|
12 |
public class IAU2000PanelTest { |
|
13 |
|
|
14 |
public static void main(String[] args) { |
|
15 |
|
|
16 |
JFrame frame = new JFrame("UAU200 Panel Test"); |
|
17 |
//cerrar el formulario |
|
18 |
frame.addWindowListener(new WindowAdapter() { |
|
19 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
20 |
}); |
|
21 |
frame.getContentPane().add(new IAU2000panel()); |
|
22 |
frame.setLocation(300,0); |
|
23 |
frame.pack(); |
|
24 |
frame.setVisible(true); |
|
25 |
|
|
26 |
} |
|
27 |
|
|
28 |
} |
|
0 | 29 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/panels/ESRIPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
|
7 |
|
|
8 |
|
|
9 |
/** |
|
10 |
* Test para el interfaz de ESRIPanel |
|
11 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
12 |
* |
|
13 |
*/ |
|
14 |
public class ESRIPanelTest { |
|
15 |
|
|
16 |
|
|
17 |
public static void main(String[] args){ |
|
18 |
|
|
19 |
JFrame frame = new JFrame("ESRI Panel Test"); |
|
20 |
//cerrar el formulario |
|
21 |
frame.addWindowListener(new WindowAdapter() { |
|
22 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
23 |
}); |
|
24 |
frame.getContentPane().add(new ESRIpanel()); |
|
25 |
frame.setLocation(300,0); |
|
26 |
frame.pack(); |
|
27 |
frame.setVisible(true); |
|
28 |
|
|
29 |
} |
|
30 |
|
|
31 |
} |
|
0 | 32 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/panels/CrsRecentsPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
|
7 |
|
|
8 |
|
|
9 |
/** |
|
10 |
* Test para el interfaz de CRSs Recientes |
|
11 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
12 |
* |
|
13 |
*/ |
|
14 |
public class CrsRecentsPanelTest { |
|
15 |
|
|
16 |
public static void main(String[] args) { |
|
17 |
JFrame frame = new JFrame("CrsRecents Test"); |
|
18 |
//cerrar el formulario |
|
19 |
frame.addWindowListener(new WindowAdapter() { |
|
20 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
21 |
}); |
|
22 |
frame.getContentPane().add(new CrsRecentsPanel()); |
|
23 |
frame.setLocation(300,0); |
|
24 |
frame.pack(); |
|
25 |
frame.setVisible(true); |
|
26 |
|
|
27 |
} |
|
28 |
} |
|
29 |
|
|
30 |
|
|
0 | 31 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/gui/panels/TransformationCapaPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui.panels; |
|
2 |
|
|
3 |
|
|
4 |
import java.awt.event.WindowAdapter; |
|
5 |
import java.awt.event.WindowEvent; |
|
6 |
|
|
7 |
import javax.swing.JFrame; |
|
8 |
/** |
|
9 |
* Test para el interfaz de Transformaci?n de la capa dentro de la transformacion compuesta |
|
10 |
* @author Luisa Marina Fern?ndez Ruiz (luisam.fernandez@uclm.es) |
|
11 |
* |
|
12 |
*/ |
|
13 |
|
|
14 |
public class TransformationCapaPanelTest { |
|
15 |
|
|
16 |
|
|
17 |
public static void main(String[] args) { |
|
18 |
|
|
19 |
JFrame frame = new JFrame("Transformaci?n de la Capa"); |
|
20 |
//cerrar el formulario |
|
21 |
frame.addWindowListener(new WindowAdapter() { |
|
22 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
23 |
}); |
|
24 |
|
|
25 |
frame.getContentPane().add(new TransformationCapaPanel("",null)); |
|
26 |
frame.setSize(300,500); |
|
27 |
//colocar en la pantalla |
|
28 |
frame.setLocation(300,0); |
|
29 |
frame.pack(); |
|
30 |
frame.setVisible(true); |
|
31 |
|
|
32 |
} |
|
33 |
} |
|
0 | 34 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/test/java/org/gvsig/crs/jgridshift/JGridShiftTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.jgridshift; |
|
2 |
|
|
3 |
import java.io.FileNotFoundException; |
|
4 |
import java.io.IOException; |
|
5 |
import java.io.RandomAccessFile; |
|
6 |
|
|
7 |
import au.com.objectix.jgridshift.GridShift; |
|
8 |
import au.com.objectix.jgridshift.GridShiftFile; |
|
9 |
import au.com.objectix.jgridshift.SubGrid; |
|
10 |
|
|
11 |
public class JGridShiftTest { |
|
12 |
|
|
13 |
public static void main(String[] args){ |
|
14 |
//InputStream fis = null; |
|
15 |
RandomAccessFile raf = null; |
|
16 |
try { |
|
17 |
raf = new RandomAccessFile("/home/dguerrero/Desarrollo-gvSIG/crs/workspace/extJCRS/data/sped2et.gsb","r"); |
|
18 |
//fis = new FileInputStream("/home/dguerrero/Desarrollo-gvSIG/crs/workspace/extJCRS/data/sped2et.gsb"); |
|
19 |
} catch (FileNotFoundException e) { |
|
20 |
// TODO Auto-generated catch block |
|
21 |
e.printStackTrace(); |
|
22 |
} |
|
23 |
GridShiftFile gsf = new GridShiftFile(); |
|
24 |
try { |
|
25 |
gsf.loadGridShiftFile(raf); |
|
26 |
} catch (IOException e) { |
|
27 |
// TODO Auto-generated catch block |
|
28 |
e.printStackTrace(); |
|
29 |
} |
|
30 |
|
|
31 |
SubGrid subGrid[] = gsf.getSubGridTree(); |
|
32 |
System.out.println(subGrid.length); |
|
33 |
System.out.println(subGrid[0].getMaxLat()); |
|
34 |
System.out.println(subGrid[0].getMinLat()); |
|
35 |
System.out.println(subGrid[0].getMaxLon()); |
|
36 |
System.out.println(subGrid[0].getMinLon()); |
|
37 |
GridShift gridShift = new GridShift(); |
|
38 |
} |
|
39 |
|
|
40 |
} |
|
0 | 41 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
36 |
<outputDirectory>lib</outputDirectory> |
|
37 |
</file> |
|
38 |
<file> |
|
39 |
<source>target/package.info</source> |
|
40 |
</file> |
|
41 |
</files> |
|
42 |
|
|
43 |
<fileSets> |
|
44 |
<fileSet> |
|
45 |
<directory>src/main/resources-plugin</directory> |
|
46 |
<outputDirectory>.</outputDirectory> |
|
47 |
</fileSet> |
|
48 |
</fileSets> |
|
49 |
|
|
50 |
|
|
51 |
<dependencySets> |
|
52 |
<dependencySet> |
|
53 |
<useProjectArtifact>false</useProjectArtifact> |
|
54 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
55 |
<outputDirectory>lib</outputDirectory> |
|
56 |
<includes> |
|
57 |
<include>org.gvsig:org.gvsig.projection.jcrs.lib</include> |
|
58 |
<include>net.sf:jgridshiftapi</include> |
|
59 |
<include>org.geotools:gt2-main:jar:unknown</include> |
|
60 |
<include>hsqldb:hsqldb</include> |
|
61 |
<include>javax.units:jsr108</include> |
|
62 |
<include>java3d:vecmath</include> |
|
63 |
<include>org.opengis:geoapi</include> |
|
64 |
<!-- <include>org.gdal:gdal</include> --> |
|
65 |
<include>org.gvsig:org.gvsig.projection.api</include> |
|
66 |
<include>org.gvsig:org.gvsig.projection.cresques.ui</include> |
|
67 |
<include>org.gvsig:org.gvsig.projection.cresques.impl</include> |
|
68 |
</includes> |
|
69 |
</dependencySet> |
|
70 |
</dependencySets> |
|
71 |
|
|
72 |
</assembly> |
|
73 |
|
|
74 |
|
|
75 |
|
|
0 | 76 |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/java/org/gvsig/crs/preferences/JCRSPreferencesPageView.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/jjdelcerro/datos/devel/org.gvsig.projection.jcrs/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/java/org/gvsig/crs/preferences/JCRSPreferencesPageView.xml</at> |
|
28 |
<at name="path">datos/devel/org.gvsig.projection.jcrs/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/java/org/gvsig/crs/preferences/JCRSPreferencesPageView.xml</at> |
|
29 |
<at name="rowspecs">CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE</at> |
|
30 |
<at name="colspecs">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">lblDatabaseInitializationMode</at> |
|
78 |
<at name="width">498</at> |
|
79 |
<at name="text">Cuando inicializar la BBDD de EPSG</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">6</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">lblHeader</at> |
|
138 |
<at name="width">498</at> |
|
139 |
<at name="text">Seleccione la base de datos EPSG a utilizar</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">10</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">javax.swing.JCheckBox</at> |
|
172 |
<at name="beanproperties"> |
|
173 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
174 |
<at name="classname">javax.swing.JCheckBox</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="actionCommand">Usar cache para los CRSs</at> |
|
198 |
<at name="name">chkUseMomoryChacheForCRSs</at> |
|
199 |
<at name="width">498</at> |
|
200 |
<at name="text">Usar cache para los CRSs</at> |
|
201 |
<at name="height">16</at> |
|
202 |
</object> |
|
203 |
</at> |
|
204 |
</object> |
|
205 |
</at> |
|
206 |
</object> |
|
207 |
</at> |
|
208 |
</item> |
|
209 |
<item > |
|
210 |
<at name="value"> |
|
211 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
212 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
213 |
<at name="cellconstraints"> |
|
214 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
215 |
<at name="column">2</at> |
|
216 |
<at name="row">8</at> |
|
217 |
<at name="colspan">1</at> |
|
218 |
<at name="rowspan">1</at> |
|
219 |
<at name="halign">default</at> |
|
220 |
<at name="valign">default</at> |
|
221 |
<at name="insets" object="insets">0,0,0,0</at> |
|
222 |
</object> |
|
223 |
</at> |
|
224 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
225 |
</super> |
|
226 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
227 |
<at name="beanclass">javax.swing.JList</at> |
|
228 |
<at name="beanproperties"> |
|
229 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
230 |
<at name="classname">javax.swing.JList</at> |
|
231 |
<at name="properties"> |
|
232 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
233 |
<at name="border"> |
|
234 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
235 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
236 |
<at name="name">border</at> |
|
237 |
</super> |
|
238 |
<at name="borders"> |
|
239 |
<object classname="java.util.LinkedList"> |
|
240 |
<item > |
|
241 |
<at name="value"> |
|
242 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
243 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
244 |
<at name="name">border</at> |
|
245 |
</super> |
|
246 |
</object> |
|
247 |
</at> |
|
248 |
</item> |
|
249 |
</object> |
|
250 |
</at> |
|
251 |
</object> |
|
252 |
</at> |
|
253 |
<at name="scrollableTracksViewportHeight">true</at> |
|
254 |
<at name="scrollableTracksViewportWidth">true</at> |
|
255 |
<at name="name">lstBBDD</at> |
|
256 |
<at name="width">496</at> |
|
257 |
<at name="items"> |
|
258 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
259 |
<at name="name">items</at> |
|
260 |
</object> |
|
261 |
</at> |
|
262 |
<at name="scollBars"> |
|
263 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
264 |
<at name="name">scollBars</at> |
|
265 |
<at name="verticalpolicy">20</at> |
|
266 |
<at name="horizontalpolicy">30</at> |
|
267 |
<at name="border"> |
|
268 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
269 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
270 |
<at name="name">border</at> |
|
271 |
</super> |
|
272 |
<at name="borders"> |
|
273 |
<object classname="java.util.LinkedList"> |
|
274 |
<item > |
|
275 |
<at name="value"> |
|
276 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
277 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
278 |
<at name="name">border</at> |
|
279 |
</super> |
|
280 |
</object> |
|
281 |
</at> |
|
282 |
</item> |
|
283 |
</object> |
|
284 |
</at> |
|
285 |
</object> |
|
286 |
</at> |
|
287 |
</object> |
|
288 |
</at> |
|
289 |
<at name="height">383</at> |
|
290 |
</object> |
|
291 |
</at> |
|
292 |
</object> |
|
293 |
</at> |
|
294 |
</object> |
|
295 |
</at> |
|
296 |
</item> |
|
297 |
<item > |
|
298 |
<at name="value"> |
|
299 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
300 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
301 |
<at name="cellconstraints"> |
|
302 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
303 |
<at name="column">2</at> |
|
304 |
<at name="row">4</at> |
|
305 |
<at name="colspan">1</at> |
|
306 |
<at name="rowspan">1</at> |
|
307 |
<at name="halign">default</at> |
|
308 |
<at name="valign">default</at> |
|
309 |
<at name="insets" object="insets">0,0,0,0</at> |
|
310 |
</object> |
|
311 |
</at> |
|
312 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
313 |
</super> |
|
314 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
315 |
<at name="beanclass">javax.swing.JComboBox</at> |
|
316 |
<at name="beanproperties"> |
|
317 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
318 |
<at name="classname">javax.swing.JComboBox</at> |
|
319 |
<at name="properties"> |
|
320 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
321 |
<at name="border"> |
|
322 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
323 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
324 |
<at name="name">border</at> |
|
325 |
</super> |
|
326 |
<at name="borders"> |
|
327 |
<object classname="java.util.LinkedList"> |
|
328 |
<item > |
|
329 |
<at name="value"> |
|
330 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
331 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
332 |
<at name="name">border</at> |
|
333 |
</super> |
|
334 |
</object> |
|
335 |
</at> |
|
336 |
</item> |
|
337 |
</object> |
|
338 |
</at> |
|
339 |
</object> |
|
340 |
</at> |
|
341 |
<at name="selectedItem"> |
|
342 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
343 |
<at name="name">listitem</at> |
|
344 |
<at name="label">On start in background</at> |
|
345 |
<at name="icon"> |
|
346 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
347 |
<at name="embedded">false</at> |
|
348 |
<at name="description"></at> |
|
349 |
<at name="width">0</at> |
|
350 |
<at name="height">0</at> |
|
351 |
</object> |
|
352 |
</at> |
|
353 |
</object> |
|
354 |
</at> |
|
355 |
<at name="name">cboDatabaseInitializationMode</at> |
|
356 |
<at name="width">498</at> |
|
357 |
<at name="items"> |
|
358 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
359 |
<at name="name">items</at> |
|
360 |
<at name="items"> |
|
361 |
<object classname="java.util.LinkedList"> |
|
362 |
<item > |
|
363 |
<at name="value"> |
|
364 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
365 |
<at name="name">listitem</at> |
|
366 |
<at name="label">On start in background</at> |
|
367 |
<at name="icon"> |
|
368 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
369 |
<at name="embedded">false</at> |
|
370 |
<at name="description"></at> |
|
371 |
<at name="width">0</at> |
|
372 |
<at name="height">0</at> |
|
373 |
</object> |
|
374 |
</at> |
|
375 |
</object> |
|
376 |
</at> |
|
377 |
</item> |
|
378 |
<item > |
|
379 |
<at name="value"> |
|
380 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
381 |
<at name="name">listitem</at> |
|
382 |
<at name="label">On start in foreground</at> |
|
383 |
<at name="icon"> |
|
384 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
385 |
<at name="embedded">false</at> |
|
386 |
<at name="description"></at> |
|
387 |
<at name="width">0</at> |
|
388 |
<at name="height">0</at> |
|
389 |
</object> |
|
390 |
</at> |
|
391 |
</object> |
|
392 |
</at> |
|
393 |
</item> |
|
394 |
<item > |
|
395 |
<at name="value"> |
|
396 |
<object classname="com.jeta.forms.store.properties.ListItemProperty"> |
|
397 |
<at name="name">listitem</at> |
|
398 |
<at name="label">On first use</at> |
|
399 |
<at name="icon"> |
|
400 |
<object classname="com.jeta.forms.store.properties.IconProperty"> |
|
401 |
<at name="embedded">false</at> |
|
402 |
<at name="description"></at> |
|
403 |
<at name="width">0</at> |
|
404 |
<at name="height">0</at> |
|
405 |
</object> |
|
406 |
</at> |
|
407 |
</object> |
|
408 |
</at> |
|
409 |
</item> |
|
410 |
</object> |
|
411 |
</at> |
|
412 |
</object> |
|
413 |
</at> |
|
414 |
<at name="height">18</at> |
|
415 |
<at name="itemCount">3</at> |
|
416 |
</object> |
|
417 |
</at> |
|
418 |
</object> |
|
419 |
</at> |
|
420 |
</object> |
|
421 |
</at> |
|
422 |
</item> |
|
423 |
</object> |
|
424 |
</at> |
|
425 |
<at name="properties"> |
|
426 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
427 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
428 |
<at name="properties"> |
|
429 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
430 |
<at name="border"> |
|
431 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
432 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
433 |
<at name="name">border</at> |
|
434 |
</super> |
|
435 |
<at name="borders"> |
|
436 |
<object classname="java.util.LinkedList"/> |
|
437 |
</at> |
|
438 |
</object> |
|
439 |
</at> |
|
440 |
<at name="name"></at> |
|
441 |
<at name="fill"> |
|
442 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
443 |
<at name="name">fill</at> |
|
444 |
</object> |
|
445 |
</at> |
|
446 |
<at name="scollBars"> |
|
447 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
448 |
<at name="name">scollBars</at> |
|
449 |
<at name="verticalpolicy">21</at> |
|
450 |
<at name="horizontalpolicy">31</at> |
|
451 |
<at name="border"> |
|
452 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
453 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
454 |
<at name="name">border</at> |
|
455 |
</super> |
|
456 |
<at name="borders"> |
|
457 |
<object classname="java.util.LinkedList"> |
|
458 |
<item > |
|
459 |
<at name="value"> |
|
460 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
461 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
462 |
<at name="name">border</at> |
|
463 |
</super> |
|
464 |
</object> |
|
465 |
</at> |
|
466 |
</item> |
|
467 |
</object> |
|
468 |
</at> |
|
469 |
</object> |
|
470 |
</at> |
|
471 |
</object> |
|
472 |
</at> |
|
473 |
</object> |
|
474 |
</at> |
|
475 |
</object> |
|
476 |
</at> |
|
477 |
<at name="cellpainters"> |
|
478 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
479 |
<at name="rows"> |
|
480 |
<object classname="[Ljava.lang.Object;" size="11"> |
|
481 |
<at name="item" index="0"> |
|
482 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
483 |
</at> |
|
484 |
<at name="item" index="1"> |
|
485 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
486 |
</at> |
|
487 |
<at name="item" index="2"> |
|
488 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
489 |
</at> |
|
490 |
<at name="item" index="3"> |
|
491 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
492 |
</at> |
|
493 |
<at name="item" index="4"> |
|
494 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
495 |
</at> |
|
496 |
<at name="item" index="5"> |
|
497 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
498 |
</at> |
|
499 |
<at name="item" index="6"> |
|
500 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
501 |
</at> |
|
502 |
<at name="item" index="7"> |
|
503 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
504 |
</at> |
|
505 |
<at name="item" index="8"> |
|
506 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
507 |
</at> |
|
508 |
<at name="item" index="9"> |
|
509 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
510 |
</at> |
|
511 |
<at name="item" index="10"> |
|
512 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
513 |
</at> |
|
514 |
</object> |
|
515 |
</at> |
|
516 |
</object> |
|
517 |
</at> |
|
518 |
<at name="rowgroups"> |
|
519 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
520 |
<at name="groups"> |
|
521 |
<object classname="java.util.HashMap"/> |
|
522 |
</at> |
|
523 |
</object> |
|
524 |
</at> |
|
525 |
<at name="colgroups"> |
|
526 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
527 |
<at name="groups"> |
|
528 |
<object classname="java.util.HashMap"/> |
|
529 |
</at> |
|
530 |
</object> |
|
531 |
</at> |
|
532 |
</object> |
|
533 |
</at> |
|
534 |
</object> |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/java/org/gvsig/crs/preferences/JCRSPreferencesPageView.java | ||
---|---|---|
1 |
package org.gvsig.crs.preferences; |
|
2 |
|
|
3 |
import com.jeta.open.i18n.I18NUtils; |
|
4 |
import com.jgoodies.forms.layout.CellConstraints; |
|
5 |
import com.jgoodies.forms.layout.FormLayout; |
|
6 |
import java.awt.BorderLayout; |
|
7 |
import java.awt.ComponentOrientation; |
|
8 |
import java.awt.Container; |
|
9 |
import java.awt.Dimension; |
|
10 |
import javax.swing.Box; |
|
11 |
import javax.swing.ImageIcon; |
|
12 |
import javax.swing.JCheckBox; |
|
13 |
import javax.swing.JComboBox; |
|
14 |
import javax.swing.JFrame; |
|
15 |
import javax.swing.JLabel; |
|
16 |
import javax.swing.JList; |
|
17 |
import javax.swing.JPanel; |
|
18 |
import javax.swing.JScrollPane; |
|
19 |
|
|
20 |
|
|
21 |
public class JCRSPreferencesPageView extends JPanel |
|
22 |
{ |
|
23 |
JLabel lblDatabaseInitializationMode = new JLabel(); |
|
24 |
JLabel lblHeader = new JLabel(); |
|
25 |
JCheckBox chkUseMomoryChacheForCRSs = new JCheckBox(); |
|
26 |
JList lstBBDD = new JList(); |
|
27 |
JComboBox cboDatabaseInitializationMode = new JComboBox(); |
|
28 |
|
|
29 |
/** |
|
30 |
* Default constructor |
|
31 |
*/ |
|
32 |
public JCRSPreferencesPageView() |
|
33 |
{ |
|
34 |
initializePanel(); |
|
35 |
} |
|
36 |
|
|
37 |
/** |
|
38 |
* Adds fill components to empty cells in the first row and first column of the grid. |
|
39 |
* This ensures that the grid spacing will be the same as shown in the designer. |
|
40 |
* @param cols an array of column indices in the first row where fill components should be added. |
|
41 |
* @param rows an array of row indices in the first column where fill components should be added. |
|
42 |
*/ |
|
43 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
|
44 |
{ |
|
45 |
Dimension filler = new Dimension(10,10); |
|
46 |
|
|
47 |
boolean filled_cell_11 = false; |
|
48 |
CellConstraints cc = new CellConstraints(); |
|
49 |
if ( cols.length > 0 && rows.length > 0 ) |
|
50 |
{ |
|
51 |
if ( cols[0] == 1 && rows[0] == 1 ) |
|
52 |
{ |
|
53 |
/** add a rigid area */ |
|
54 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
|
55 |
filled_cell_11 = true; |
|
56 |
} |
|
57 |
} |
|
58 |
|
|
59 |
for( int index = 0; index < cols.length; index++ ) |
|
60 |
{ |
|
61 |
if ( cols[index] == 1 && filled_cell_11 ) |
|
62 |
{ |
|
63 |
continue; |
|
64 |
} |
|
65 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
|
66 |
} |
|
67 |
|
|
68 |
for( int index = 0; index < rows.length; index++ ) |
|
69 |
{ |
|
70 |
if ( rows[index] == 1 && filled_cell_11 ) |
|
71 |
{ |
|
72 |
continue; |
|
73 |
} |
|
74 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
|
75 |
} |
|
76 |
|
|
77 |
} |
|
78 |
|
|
79 |
/** |
|
80 |
* Helper method to load an image file from the CLASSPATH |
|
81 |
* @param imageName the package and name of the file to load relative to the CLASSPATH |
|
82 |
* @return an ImageIcon instance with the specified image file |
|
83 |
* @throws IllegalArgumentException if the image resource cannot be loaded. |
|
84 |
*/ |
|
85 |
public ImageIcon loadImage( String imageName ) |
|
86 |
{ |
|
87 |
try |
|
88 |
{ |
|
89 |
ClassLoader classloader = getClass().getClassLoader(); |
|
90 |
java.net.URL url = classloader.getResource( imageName ); |
|
91 |
if ( url != null ) |
|
92 |
{ |
|
93 |
ImageIcon icon = new ImageIcon( url ); |
|
94 |
return icon; |
|
95 |
} |
|
96 |
} |
|
97 |
catch( Exception e ) |
|
98 |
{ |
|
99 |
e.printStackTrace(); |
|
100 |
} |
|
101 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
|
102 |
} |
|
103 |
|
|
104 |
/** |
|
105 |
* Method for recalculating the component orientation for |
|
106 |
* right-to-left Locales. |
|
107 |
* @param orientation the component orientation to be applied |
|
108 |
*/ |
|
109 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
|
110 |
{ |
|
111 |
// Not yet implemented... |
|
112 |
// I18NUtils.applyComponentOrientation(this, orientation); |
|
113 |
super.applyComponentOrientation(orientation); |
|
114 |
} |
|
115 |
|
|
116 |
public JPanel createPanel() |
|
117 |
{ |
|
118 |
JPanel jpanel1 = new JPanel(); |
|
119 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE"); |
|
120 |
CellConstraints cc = new CellConstraints(); |
|
121 |
jpanel1.setLayout(formlayout1); |
|
122 |
|
|
123 |
lblDatabaseInitializationMode.setName("lblDatabaseInitializationMode"); |
|
124 |
lblDatabaseInitializationMode.setText("Cuando inicializar la BBDD de EPSG"); |
|
125 |
jpanel1.add(lblDatabaseInitializationMode,cc.xy(2,2)); |
|
126 |
|
|
127 |
lblHeader.setName("lblHeader"); |
|
128 |
lblHeader.setText("Seleccione la base de datos EPSG a utilizar"); |
|
129 |
jpanel1.add(lblHeader,cc.xy(2,6)); |
|
130 |
|
|
131 |
chkUseMomoryChacheForCRSs.setActionCommand("Usar cache para los CRSs"); |
|
132 |
chkUseMomoryChacheForCRSs.setName("chkUseMomoryChacheForCRSs"); |
|
133 |
chkUseMomoryChacheForCRSs.setText("Usar cache para los CRSs"); |
|
134 |
jpanel1.add(chkUseMomoryChacheForCRSs,cc.xy(2,10)); |
|
135 |
|
|
136 |
lstBBDD.setName("lstBBDD"); |
|
137 |
JScrollPane jscrollpane1 = new JScrollPane(); |
|
138 |
jscrollpane1.setViewportView(lstBBDD); |
|
139 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
140 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
141 |
jpanel1.add(jscrollpane1,cc.xy(2,8)); |
|
142 |
|
|
143 |
cboDatabaseInitializationMode.setName("cboDatabaseInitializationMode"); |
|
144 |
cboDatabaseInitializationMode.addItem("On start in background"); |
|
145 |
cboDatabaseInitializationMode.addItem("On start in foreground"); |
|
146 |
cboDatabaseInitializationMode.addItem("On first use"); |
|
147 |
jpanel1.add(cboDatabaseInitializationMode,cc.xy(2,4)); |
|
148 |
|
|
149 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 }); |
|
150 |
return jpanel1; |
|
151 |
} |
|
152 |
|
|
153 |
/** |
|
154 |
* Initializer |
|
155 |
*/ |
|
156 |
protected void initializePanel() |
|
157 |
{ |
|
158 |
setLayout(new BorderLayout()); |
|
159 |
add(createPanel(), BorderLayout.CENTER); |
|
160 |
} |
|
161 |
|
|
162 |
|
|
163 |
} |
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.100/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/java/org/gvsig/crs/preferences/JCRSPreferencesPage.java | ||
---|---|---|
1 |
/* |
|
2 |
* To change this license header, choose License Headers in Project Properties. |
|
3 |
* To change this template file, choose Tools | Templates |
|
4 |
* and open the template in the editor. |
|
5 |
*/ |
|
6 |
package org.gvsig.crs.preferences; |
|
7 |
|
|
8 |
import java.awt.BorderLayout; |
|
9 |
import java.io.File; |
|
10 |
import java.util.Collection; |
|
11 |
import java.util.Iterator; |
|
12 |
import javax.swing.ComboBoxModel; |
|
13 |
import javax.swing.DefaultComboBoxModel; |
|
14 |
import javax.swing.DefaultListModel; |
|
15 |
import javax.swing.ImageIcon; |
|
16 |
import javax.swing.JPanel; |
|
17 |
import org.apache.commons.io.FileUtils; |
|
18 |
import org.apache.commons.io.FilenameUtils; |
|
19 |
import org.apache.commons.lang3.BooleanUtils; |
|
20 |
import org.apache.commons.lang3.StringUtils; |
|
21 |
import org.gvsig.andami.IconThemeHelper; |
|
22 |
import org.gvsig.andami.PluginServices; |
|
23 |
import org.gvsig.andami.PluginsLocator; |
|
24 |
import org.gvsig.andami.PluginsManager; |
|
25 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
|
26 |
import org.gvsig.andami.preferences.StoreException; |
|
27 |
import org.gvsig.crs.CrsFactory; |
|
28 |
import org.gvsig.tools.ToolsLocator; |
|
29 |
import org.gvsig.tools.dynobject.DynObject; |
|
30 |
import org.gvsig.tools.exception.BaseException; |
|
31 |
import org.gvsig.tools.i18n.I18nManager; |
|
32 |
import org.gvsig.tools.packageutils.PackageInfo; |
|
33 |
import org.gvsig.tools.packageutils.PackageManager; |
|
34 |
import org.slf4j.Logger; |
|
35 |
import org.slf4j.LoggerFactory; |
|
36 |
|
|
37 |
/** |
|
38 |
* |
|
39 |
* @author usuario |
|
40 |
*/ |
|
41 |
public class JCRSPreferencesPage extends AbstractPreferencePage { |
|
42 |
|
|
43 |
private static final Logger logger = LoggerFactory.getLogger(JCRSPreferencesPage.class); |
|
44 |
private static final long serialVersionUID = -7838901334080793221L; |
|
45 |
|
|
46 |
private JCRSPreferencesPageView preferences; |
|
47 |
private DynObject pluginProperties; |
|
48 |
private PluginServices plugin; |
|
49 |
|
|
50 |
private class ListItem { |
|
51 |
|
|
52 |
private PackageInfo pkg; |
|
53 |
private File epsgFile; |
|
54 |
|
|
55 |
ListItem(PackageInfo pkg, File epsgFile) { |
|
56 |
this.pkg = pkg; |
|
57 |
this.epsgFile = epsgFile; |
|
58 |
} |
|
59 |
|
|
60 |
public File getEPSGFile() { |
|
61 |
return this.epsgFile; |
|
62 |
} |
|
63 |
|
|
64 |
public PackageInfo getPackageInfo() { |
|
65 |
return this.pkg; |
|
66 |
} |
|
67 |
|
|
68 |
public String toString() { |
|
69 |
return this.pkg.getName(); |
|
70 |
} |
|
71 |
|
|
72 |
} |
|
73 |
|
|
74 |
public JCRSPreferencesPage() { |
|
75 |
initComponents(); |
|
76 |
} |
|
77 |
|
|
78 |
private void initComponents() { |
|
79 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
80 |
PluginsManager pluginManager = PluginsLocator.getManager(); |
|
81 |
this.plugin = pluginManager.getPlugin(this); |
|
82 |
this.pluginProperties = this.plugin.getPluginProperties(); |
|
83 |
|
|
84 |
this.preferences = new JCRSPreferencesPageView(); |
|
85 |
this.preferences.lblHeader.setText( |
|
86 |
i18n.getTranslation("_Select_the_EPSG_data_base_to_use") |
|
87 |
); |
|
88 |
this.preferences.chkUseMomoryChacheForCRSs.setText( |
|
89 |
i18n.getTranslation("_Use_cache_for_CRSs") |
|
90 |
); |
|
91 |
this.setLayout(new BorderLayout()); |
|
92 |
this.add(this.preferences, BorderLayout.NORTH); |
|
93 |
|
|
94 |
this.preferences.lblDatabaseInitializationMode.setText( |
|
95 |
i18n.getTranslation("_When_initializing_the_EPSG_database") |
|
96 |
); |
|
97 |
DefaultComboBoxModel modelCombo = new DefaultComboBoxModel(); |
|
98 |
modelCombo.addElement(i18n.getTranslation("_On_start_in_background")); |
|
99 |
modelCombo.addElement(i18n.getTranslation("_On_start_in_foreground")); |
|
100 |
modelCombo.addElement(i18n.getTranslation("_On_first_use")); |
|
101 |
this.preferences.cboDatabaseInitializationMode.setModel(modelCombo); |
|
102 |
|
|
103 |
initializeValues(); |
|
104 |
} |
|
105 |
|
|
106 |
public void storeValues() throws StoreException { |
|
107 |
ListItem item = (ListItem) this.preferences.lstBBDD.getSelectedValue(); |
|
108 |
if( item == null ) { |
|
109 |
return; |
|
110 |
} |
|
111 |
this.pluginProperties.setDynValue("epsgDatabase", item.getEPSGFile()); |
|
112 |
this.pluginProperties.setDynValue("useMemoryCacheForCRSs", |
|
113 |
this.preferences.chkUseMomoryChacheForCRSs.isSelected() |
|
114 |
); |
|
115 |
this.pluginProperties.setDynValue( |
|
116 |
"databaseInitializationMode", |
|
117 |
this.preferences.cboDatabaseInitializationMode.getSelectedIndex() |
|
118 |
); |
|
119 |
this.plugin.savePluginProperties(); |
|
120 |
} |
|
121 |
|
|
122 |
public void setChangesApplied() { |
|
123 |
// ???? |
|
124 |
} |
|
125 |
|
|
126 |
public String getID() { |
|
127 |
return getClass().getName(); |
|
128 |
} |
|
129 |
|
|
130 |
public String getTitle() { |
|
131 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
132 |
return i18nManager.getTranslation("jCRS_preferences"); |
|
133 |
|
|
134 |
} |
|
135 |
|
|
136 |
public JPanel getPanel() { |
|
137 |
return this; |
|
138 |
} |
|
139 |
|
|
140 |
@Override |
|
141 |
public void initializeValues() { |
|
142 |
PackageManager pkgManager = ToolsLocator.getPackageManager(); |
|
143 |
|
|
144 |
File dbfolder = CrsFactory.getDataBaseFolder(); |
|
145 |
File epsgFolders = new File(dbfolder,"EPSG"); |
|
146 |
Collection<File> files = FileUtils.listFiles(epsgFolders, new String[]{"info"}, true); |
|
147 |
DefaultListModel model = new DefaultListModel(); |
|
148 |
|
|
149 |
File currentEPSG = getCurrentEPSG(); |
|
150 |
|
|
151 |
int selectedOption = 0; |
|
152 |
int n = 0; |
|
153 |
Iterator<File> it = files.iterator(); |
|
154 |
while( it.hasNext() ) { |
|
155 |
File f = it.next(); |
|
156 |
if( f.getName().equals("package.info") ) { |
|
157 |
try { |
|
158 |
PackageInfo pkginfo = pkgManager.createPackageInfo(f); |
|
159 |
File epsgdb = new File(f.getParentFile(),"EPSG.sql"); |
|
160 |
epsgdb = makeRelative(dbfolder, epsgdb); |
|
161 |
model.addElement(new ListItem(pkginfo, epsgdb)); |
|
162 |
if( epsgdb.equals(currentEPSG) ) { |
|
163 |
selectedOption = n; |
Also available in: Unified diff