root / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / AdvancedSymbologyExtension.java @ 11704
History | View | Annotate | Download (5.15 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 11704 2007-05-17 09:43:35Z jaume $
|
45 |
* $Log$
|
46 |
* Revision 1.5 2007-05-17 09:32:37 jaume
|
47 |
* *** empty log message ***
|
48 |
*
|
49 |
* Revision 1.4 2007/03/21 08:03:03 jaume
|
50 |
* refactored to use ISymbol instead of FSymbol
|
51 |
*
|
52 |
* Revision 1.3 2007/03/13 16:57:35 jaume
|
53 |
* Added MultiVariable legend
|
54 |
*
|
55 |
* Revision 1.2 2007/03/09 11:25:00 jaume
|
56 |
* Advanced symbology (start committing)
|
57 |
*
|
58 |
* Revision 1.1.2.4 2007/02/21 07:35:14 jaume
|
59 |
* *** empty log message ***
|
60 |
*
|
61 |
* Revision 1.1.2.3 2007/02/12 15:14:41 jaume
|
62 |
* refactored interval legend and added graduated symbol legend
|
63 |
*
|
64 |
* Revision 1.1.2.2 2007/02/01 17:47:12 jaume
|
65 |
* *** empty log message ***
|
66 |
*
|
67 |
* Revision 1.1.2.1 2007/02/01 12:12:41 jaume
|
68 |
* theme manager window and all its components are now dynamic
|
69 |
*
|
70 |
*
|
71 |
*/
|
72 |
package com.iver.cit.gvsig; |
73 |
|
74 |
import com.iver.andami.PluginServices; |
75 |
import com.iver.andami.plugins.Extension; |
76 |
import com.iver.cit.gvsig.fmap.rendering.styling.DefaultLabelingMethod; |
77 |
import com.iver.cit.gvsig.fmap.rendering.styling.FeatureDependentLabeled; |
78 |
import com.iver.cit.gvsig.fmap.rendering.styling.OnSelectionLabeled; |
79 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.Categories; |
80 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.DotDensity; |
81 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.Features; |
82 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.FilePage; |
83 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.General; |
84 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.GraduatedSymbols; |
85 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.LabelingManager; |
86 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.LegendManager; |
87 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.MultipleAttributes; |
88 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.ProportionalSymbols; |
89 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.Quantities; |
90 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.QuantityByCategory; |
91 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.SingleSymbol; |
92 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.ThemeManagerWindow; |
93 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.VectorialInterval; |
94 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.VectorialUniqueValue; |
95 |
/**
|
96 |
* Extension for enable the symbology. It only installs the core symbology.
|
97 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
98 |
*
|
99 |
*/
|
100 |
public class AdvancedSymbologyExtension extends Extension { |
101 |
|
102 |
public void initialize() { |
103 |
// Install required features
|
104 |
|
105 |
// pages
|
106 |
ThemeManagerWindow.addPage(General.class); |
107 |
ThemeManagerWindow.addPage(LegendManager.class); |
108 |
ThemeManagerWindow.addPage(LabelingManager.class); |
109 |
ThemeManagerWindow.addPage(FilePage.class); |
110 |
|
111 |
|
112 |
// labeling methods in the labeling page
|
113 |
LabelingManager.addLabelingMethod( |
114 |
PluginServices.getText(this, "label_features_in_the_same_way")+".", |
115 |
DefaultLabelingMethod.class); |
116 |
LabelingManager.addLabelingMethod( |
117 |
PluginServices.getText(this, "define_classes_of_features_and_label_each_differently")+".", |
118 |
FeatureDependentLabeled.class); |
119 |
LabelingManager.addLabelingMethod( |
120 |
PluginServices.getText(this, "label_only_when_selected")+".", |
121 |
OnSelectionLabeled.class); |
122 |
|
123 |
// legends available in the legend page
|
124 |
LegendManager.addLegendPage(Quantities.class); |
125 |
LegendManager.addLegendPage(Features.class); |
126 |
LegendManager.addLegendPage(Categories.class); |
127 |
LegendManager.addLegendPage(MultipleAttributes.class); |
128 |
|
129 |
LegendManager.addLegendPage(SingleSymbol.class); |
130 |
LegendManager.addLegendPage(DotDensity.class); |
131 |
LegendManager.addLegendPage(GraduatedSymbols.class); |
132 |
LegendManager.addLegendPage(VectorialInterval.class); |
133 |
LegendManager.addLegendPage(VectorialUniqueValue.class); |
134 |
LegendManager.addLegendPage(QuantityByCategory.class); |
135 |
LegendManager.addLegendPage(ProportionalSymbols.class); |
136 |
|
137 |
} |
138 |
|
139 |
public void execute(String actionCommand) { |
140 |
|
141 |
} |
142 |
|
143 |
public boolean isEnabled() { |
144 |
return true; // or whatever |
145 |
} |
146 |
|
147 |
public boolean isVisible() { |
148 |
return true; // or whatever |
149 |
} |
150 |
|
151 |
} |