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 @ 138
History | View | Annotate | Download (1.9 KB)
1 | 86 | jbadia | /* 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 | 138 | jbadia | import org.gvsig.app.project.documents.view.legend.gui.LegendManager; |
26 | 86 | jbadia | import org.gvsig.complexlabel.app.editor.ComplexLabelClassEditorFactory; |
27 | 138 | jbadia | import org.gvsig.complexlegend.impl.DefaultVectorComplexLegend; |
28 | 86 | jbadia | import org.gvsig.complexlegend.swing.impl.DefaultComplexLegendPanel; |
29 | import org.gvsig.symbology.swing.SymbologySwingLocator; |
||
30 | import org.gvsig.symbology.swing.SymbologySwingManager; |
||
31 | |||
32 | /**
|
||
33 | * Complex Legend Extension to gvSIG.
|
||
34 | * @author Jose Badia (jbadia@scolab.es)
|
||
35 | */
|
||
36 | public class ComplexLegendExtension extends Extension { |
||
37 | |||
38 | public void initialize() { |
||
39 | 138 | jbadia | SymbologySwingManager manager = SymbologySwingLocator.getSwingManager(); |
40 | manager.registerLegendEditor(DefaultComplexLegendPanel.class); |
||
41 | manager.registerLabelClassEditor(new ComplexLabelClassEditorFactory());
|
||
42 | 86 | jbadia | } |
43 | |||
44 | @Override
|
||
45 | public void postInitialize() { |
||
46 | super.postInitialize();
|
||
47 | 138 | jbadia | |
48 | 86 | jbadia | } |
49 | |||
50 | public void execute(String actionCommand) { |
||
51 | |||
52 | } |
||
53 | |||
54 | public boolean isEnabled() { |
||
55 | return true; |
||
56 | } |
||
57 | |||
58 | public boolean isVisible() { |
||
59 | return true; |
||
60 | } |
||
61 | } |