root / org.gvsig.complexlegend / trunk / org.gvsig.complexlegend / org.gvsig.complexlegend.app / org.gvsig.complexlegend.app.mainplugin / src / main / java / org / gvsig / complexlegend / app / mainplugin / ComplexLegendExtension.java @ 3574
History | View | Annotate | Download (1.79 KB)
1 |
/* OSM layers for gvSIG.
|
---|---|
2 |
* Geographic Information System of the Valencian Government
|
3 |
*
|
4 |
* Copyright (C) 2012 Nacho Brodin
|
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.gvsig.complexlegend.app.mainplugin; |
23 |
|
24 |
import org.gvsig.andami.plugins.Extension; |
25 |
import org.gvsig.complexlabel.app.editor.ComplexLabelClassEditorFactory; |
26 |
import org.gvsig.complexlegend.swing.impl.DefaultComplexLegendPanelController; |
27 |
import org.gvsig.symbology.swing.SymbologySwingLocator; |
28 |
import org.gvsig.symbology.swing.SymbologySwingManager; |
29 |
|
30 |
/**
|
31 |
* Complex Legend Extension to gvSIG.
|
32 |
* @author Jose Badia (jbadia@scolab.es)
|
33 |
*/
|
34 |
public class ComplexLegendExtension extends Extension { |
35 |
|
36 |
public void initialize() { |
37 |
SymbologySwingManager manager = SymbologySwingLocator.getSwingManager(); |
38 |
manager.registerLegendEditor(DefaultComplexLegendPanelController.class); |
39 |
manager.registerLabelClassEditor(new ComplexLabelClassEditorFactory());
|
40 |
} |
41 |
|
42 |
@Override
|
43 |
public void postInitialize() { |
44 |
super.postInitialize();
|
45 |
|
46 |
} |
47 |
|
48 |
public void execute(String actionCommand) { |
49 |
|
50 |
} |
51 |
|
52 |
public boolean isEnabled() { |
53 |
return true; |
54 |
} |
55 |
|
56 |
public boolean isVisible() { |
57 |
return true; |
58 |
} |
59 |
} |