Revision 40392

View differences:

branches/v2_0_0_prep/libraries/libProjection/src/org/gvsig/app/gui/panels/crs/ISelectCrsPanel.java
1
package org.gvsig.app.gui.panels.crs;
2

  
3
import org.cresques.cts.IProjection;
4

  
5

  
6
public interface ISelectCrsPanel {
7
	public IProjection getProjection();
8
    public void setProjection(IProjection proj);
9
    public boolean isOkPressed();
10
}
0 11

  
branches/v2_0_0_prep/libraries/libProjection/src/org/gvsig/app/gui/panels/crs/ICrsUIFactory.java
1
package org.gvsig.app.gui.panels.crs;
2

  
3
import org.cresques.cts.IProjection;
4

  
5
public interface ICrsUIFactory {
6
	public ISelectCrsPanel getSelectCrsPanel(IProjection projection, boolean isTransPanelActive);
7
}
0 8

  
branches/v2_0_0_prep/libraries/libProjection/src/org/gvsig/app/gui/panels/crs/ISelectCRSButton.java
1
package org.gvsig.app.gui.panels.crs;
2

  
3
import javax.swing.JButton;
4

  
5
import org.cresques.cts.IProjection;
6

  
7
public interface ISelectCRSButton {
8
	 public boolean isTransPanelActive();
9
	 public void setTransPanelActive(boolean transPanelActive);
10
	 public IProjection getCurProj();
11
	 public boolean isOkPressed();
12
	 public void setCurProj(IProjection curProj);
13
}
0 14

  
branches/v2_0_0_prep/libraries/libProjection/src/org/gvsig/app/gui/panels/crs/CrsUIFactory.java
1
package org.gvsig.app.gui.panels.crs;
2

  
3
import org.cresques.cts.IProjection;
4
import org.gvsig.app.project.documents.view.info.gui.CSSelectionDialog;
5

  
6

  
7
public class CrsUIFactory implements ICrsUIFactory {
8

  
9

  
10
	public ISelectCrsPanel getSelectCrsPanel(IProjection projection,
11
			boolean isTransPanelActive) {
12
		CSSelectionDialog panel = new CSSelectionDialog();
13
		panel.setProjection(projection);
14
		return panel;
15
	}
16

  
17
}
0 18

  
branches/v2_0_0_prep/libraries/libProjection/src/org/cresques/ui/CresquesCtsUILibrary.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.cresques.ui;
23

  
24
import org.cresques.impl.cts.ProjectionPool;
25
import org.gvsig.app.gui.panels.CRSSelectPanelFactory;
26
import org.gvsig.app.gui.panels.ProjChooserPanel;
27
import org.gvsig.app.gui.panels.crs.CrsUIFactory;
28
import org.gvsig.fmap.crs.CRSFactory;
29
import org.gvsig.tools.library.AbstractLibrary;
30
import org.gvsig.tools.library.LibraryException;
31

  
32
public class CresquesCtsUILibrary extends AbstractLibrary {
33

  
34
    public void doRegistration() {
35
    	CRSSelectPanelFactory.registerPanelClass(ProjChooserPanel.class);
36
    	CRSSelectPanelFactory.registerUIFactory(CrsUIFactory.class);
37

  
38
    }
39

  
40
    protected void doInitialize() throws LibraryException {
41
        CRSFactory.cp = new ProjectionPool();
42
    }
43

  
44
    protected void doPostInitialize() throws LibraryException {
45
        // Nothing to do
46
    }
47
}
0 48

  
branches/v2_0_0_prep/libraries/libProjection/resources/cresques/META-INF/services/org.gvsig.tools.library.Library
1
org.cresques.impl.CresquesCtsLibrary
1
org.cresques.ui.CresquesCtsUILibrary

Also available in: Unified diff