root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.swing / org.gvsig.proj.swing.impl / src / main / java / org / gvsig / proj / swing / impl / DefaultCoordinateReferenceSystemSwingManager.java @ 814
History | View | Annotate | Download (2.85 KB)
1 | 7 | cordinyana | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright (C) 2007-2012 gvSIG Association.
|
||
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 | * For any additional information, do not hesitate to contact us
|
||
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | */
|
||
24 | package org.gvsig.proj.swing.impl; |
||
25 | |||
26 | 24 | cordinyana | import org.gvsig.proj.CoordinateReferenceSystemLocator; |
27 | import org.gvsig.proj.CoordinateReferenceSystemManager; |
||
28 | 814 | cmartinez | import org.gvsig.proj.catalog.CRSCatalogLocator; |
29 | import org.gvsig.proj.catalog.CRSCatalogManager; |
||
30 | 24 | cordinyana | import org.gvsig.proj.swing.CoordinateReferenceSystemSelectorComponent; |
31 | import org.gvsig.proj.swing.CoordinateReferenceSystemSwingManager; |
||
32 | 814 | cmartinez | import org.gvsig.proj.swing.CoordinateTransformationSelectorComponent; |
33 | 7 | cordinyana | import org.gvsig.tools.ToolsLocator; |
34 | import org.gvsig.tools.i18n.I18nManager; |
||
35 | import org.gvsig.tools.swing.api.ToolsSwingLocator; |
||
36 | import org.gvsig.tools.swing.api.windowmanager.WindowManager; |
||
37 | |||
38 | /**
|
||
39 | 24 | cordinyana | * Default implementation of the {@link CoordinateReferenceSystemSwingManager}.
|
40 | 7 | cordinyana | *
|
41 | * @author gvSIG Team
|
||
42 | * @version $Id$
|
||
43 | */
|
||
44 | 24 | cordinyana | public class DefaultCoordinateReferenceSystemSwingManager implements |
45 | CoordinateReferenceSystemSwingManager { |
||
46 | 7 | cordinyana | |
47 | 24 | cordinyana | private CoordinateReferenceSystemManager manager;
|
48 | 7 | cordinyana | private I18nManager i18nmanager = null; |
49 | |||
50 | 24 | cordinyana | public DefaultCoordinateReferenceSystemSwingManager() {
|
51 | this.manager = CoordinateReferenceSystemLocator.getManager();
|
||
52 | 7 | cordinyana | this.i18nmanager = ToolsLocator.getI18nManager();
|
53 | } |
||
54 | |||
55 | 24 | cordinyana | public CoordinateReferenceSystemManager getManager() {
|
56 | 7 | cordinyana | return this.manager; |
57 | } |
||
58 | |||
59 | public String getTranslation(String key) { |
||
60 | return this.i18nmanager.getTranslation(key); |
||
61 | } |
||
62 | |||
63 | public WindowManager getWindowManager() {
|
||
64 | 120 | nbrodin | return ToolsSwingLocator.getWindowManager();
|
65 | 7 | cordinyana | } |
66 | 24 | cordinyana | |
67 | public CoordinateReferenceSystemSelectorComponent createCoordinateReferenceSystemSelectionComponent() {
|
||
68 | return new DefaultCoordinateReferenceSystemSelectorComponent(this); |
||
69 | } |
||
70 | 814 | cmartinez | |
71 | @Override
|
||
72 | public CoordinateTransformationSelectorComponent createCoordinateTransformSelectionComponent() {
|
||
73 | // TODO Auto-generated method stub
|
||
74 | return null; |
||
75 | } |
||
76 | |||
77 | @Override
|
||
78 | public CRSCatalogManager getCatalogManager() {
|
||
79 | return CRSCatalogLocator.getManager();
|
||
80 | } |
||
81 | 7 | cordinyana | } |