Statistics
| Revision:

svn-gvsig-desktop / branches / simbologia / applications / appgvSIG / src / com / iver / cit / gvsig / AdvancedSymbologyExtension.java @ 10437

History | View | Annotate | Download (4.42 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41

    
42
/* CVS MESSAGES:
43
*
44
* $Id: AdvancedSymbologyExtension.java 10437 2007-02-21 07:35:14Z jaume $
45
* $Log$
46
* Revision 1.1.2.4  2007-02-21 07:35:14  jaume
47
* *** empty log message ***
48
*
49
* Revision 1.1.2.3  2007/02/12 15:14:41  jaume
50
* refactored interval legend and added graduated symbol legend
51
*
52
* Revision 1.1.2.2  2007/02/01 17:47:12  jaume
53
* *** empty log message ***
54
*
55
* Revision 1.1.2.1  2007/02/01 12:12:41  jaume
56
* theme manager window and all its components are now dynamic
57
*
58
*
59
*/
60
package com.iver.cit.gvsig;
61

    
62
import com.iver.andami.PluginServices;
63
import com.iver.andami.plugins.Extension;
64
import com.iver.cit.gvsig.fmap.rendering.styling.EquallyLabeled;
65
import com.iver.cit.gvsig.fmap.rendering.styling.FeatureDependentLabeled;
66
import com.iver.cit.gvsig.fmap.rendering.styling.OnSelectionLabeled;
67
import com.iver.cit.gvsig.project.documents.view.legend.gui.Categories;
68
import com.iver.cit.gvsig.project.documents.view.legend.gui.DotDensity;
69
import com.iver.cit.gvsig.project.documents.view.legend.gui.Features;
70
import com.iver.cit.gvsig.project.documents.view.legend.gui.FilePage;
71
import com.iver.cit.gvsig.project.documents.view.legend.gui.General;
72
import com.iver.cit.gvsig.project.documents.view.legend.gui.GraduatedSymbols;
73
import com.iver.cit.gvsig.project.documents.view.legend.gui.LabelingManager;
74
import com.iver.cit.gvsig.project.documents.view.legend.gui.LegendManager;
75
import com.iver.cit.gvsig.project.documents.view.legend.gui.Quantities;
76
import com.iver.cit.gvsig.project.documents.view.legend.gui.SingleSymbol;
77
import com.iver.cit.gvsig.project.documents.view.legend.gui.ThemeManagerWindow;
78
import com.iver.cit.gvsig.project.documents.view.legend.gui.VectorialInterval;
79
import com.iver.cit.gvsig.project.documents.view.legend.gui.VectorialUniqueValue;
80
/**
81
 * Extension for enable the symbology. It only installs the core symbology.
82
 * @author jaume dominguez faus - jaume.dominguez@iver.es
83
 *
84
 */
85
public class AdvancedSymbologyExtension extends Extension {
86

    
87
        public void initialize() {
88
                // Install required features
89

    
90
                // pages
91
                ThemeManagerWindow.addPage(General.class);
92
                ThemeManagerWindow.addPage(LegendManager.class);
93
                ThemeManagerWindow.addPage(LabelingManager.class);
94
                ThemeManagerWindow.addPage(FilePage.class);
95

    
96

    
97
                // labeling methods in the labeling page
98
                LabelingManager.addLabelingMethod(
99
                                PluginServices.getText(this, "label_features_in_the_same_way")+".",
100
                                EquallyLabeled.class);
101
                LabelingManager.addLabelingMethod(
102
                                PluginServices.getText(this, "define_classes_of_features_and_label_each_differently")+".",
103
                                FeatureDependentLabeled.class);
104
                LabelingManager.addLabelingMethod(
105
                                PluginServices.getText(this, "label_only_when_selected")+".",
106
                                OnSelectionLabeled.class);
107

    
108
                // legends available in the legend page
109
                LegendManager.addLegendPage(Quantities.class);
110
                LegendManager.addLegendPage(Features.class);
111
                LegendManager.addLegendPage(Categories.class);
112

    
113
                LegendManager.addLegendPage(SingleSymbol.class);
114
                LegendManager.addLegendPage(DotDensity.class);
115
                LegendManager.addLegendPage(GraduatedSymbols.class);
116
                LegendManager.addLegendPage(VectorialInterval.class);
117
                LegendManager.addLegendPage(VectorialUniqueValue.class);
118
        }
119

    
120
        public void execute(String actionCommand) { }
121

    
122
        public boolean isEnabled() {
123
                return true; // or whatever
124
        }
125

    
126
        public boolean isVisible() {
127
                return false; // or whatever
128
        }
129

    
130
}