gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.wmts / org.gvsig.wmts.app / org.gvsig.wmts.app.mainplugin / src / main / java / org / gvsig / wmts / app / mainplugin / WMTSExtension.java @ 8700
History | View | Annotate | Download (2.6 KB)
1 |
/* gvSIG. Desktop Geographic Information System.
|
---|---|
2 |
*
|
3 |
* Copyright ? 2007-2016 gvSIG Association
|
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., 51 Franklin Street, Fifth Floor, Boston,
|
18 |
* MA 02110-1301, USA.
|
19 |
*
|
20 |
* For any additional information, do not hesitate to contact us
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
22 |
*/
|
23 |
package org.gvsig.wmts.app.mainplugin; |
24 |
|
25 |
|
26 |
import org.gvsig.andami.IconThemeHelper; |
27 |
import org.gvsig.andami.plugins.Extension; |
28 |
import org.gvsig.app.extension.AddLayer; |
29 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
30 |
import org.gvsig.wmts.provider.WMTSRasterProvider; |
31 |
|
32 |
/**
|
33 |
* @author fdiaz
|
34 |
*
|
35 |
*/
|
36 |
public class WMTSExtension extends Extension { |
37 |
|
38 |
@Override
|
39 |
public void initialize() { |
40 |
// TODO Auto-generated method stub
|
41 |
|
42 |
} |
43 |
|
44 |
public void postInitialize() { |
45 |
initializeIcons(); |
46 |
AddLayer.addWizard(WMTSAddLayerPanel.class); |
47 |
} |
48 |
|
49 |
@Override
|
50 |
public void execute(String actionCommand) { |
51 |
// TODO Auto-generated method stub
|
52 |
|
53 |
} |
54 |
|
55 |
@Override
|
56 |
public boolean isEnabled() { |
57 |
// TODO Auto-generated method stub
|
58 |
return false; |
59 |
} |
60 |
|
61 |
@Override
|
62 |
public boolean isVisible() { |
63 |
// TODO Auto-generated method stub
|
64 |
return false; |
65 |
} |
66 |
|
67 |
void initializeIcons(){
|
68 |
|
69 |
IconThemeHelper.registerIcon("layer", "layer-icon-wmts", this); |
70 |
MapContextLocator.getMapContextManager().registerIconLayer(WMTSRasterProvider.NAME, "layer-icon-wmts");
|
71 |
|
72 |
IconThemeHelper.registerIcon("wmts", "add-layer-icon", this); |
73 |
IconThemeHelper.registerIcon("wmts", "remove-layer-icon", this); |
74 |
IconThemeHelper.registerIcon("wmts", "up-layer-icon", this); |
75 |
IconThemeHelper.registerIcon("wmts", "down-layer-icon", this); |
76 |
|
77 |
IconThemeHelper.registerIcon("wmts", "first-value-icon", this); |
78 |
IconThemeHelper.registerIcon("wmts", "previous-value-icon", this); |
79 |
IconThemeHelper.registerIcon("wmts", "next-value-icon", this); |
80 |
IconThemeHelper.registerIcon("wmts", "last-value-icon", this); |
81 |
|
82 |
} |
83 |
|
84 |
} |