svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.symbology / org.gvsig.symbology.swing / org.gvsig.symbology.swing.api / src / main / java / org / gvsig / symbology / swing / SymbologySwingManager.java @ 43392
History | View | Annotate | Download (4.4 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
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 3
|
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 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.symbology.swing; |
25 |
|
26 |
import java.util.Collection; |
27 |
import java.util.List; |
28 |
import javax.swing.Action; |
29 |
import org.gvsig.app.gui.labeling.LabelClassEditor; |
30 |
import org.gvsig.app.gui.labeling.LabelClassEditorFactory; |
31 |
import org.gvsig.app.gui.styling.TypeSymbolEditor; |
32 |
import org.gvsig.app.project.documents.view.legend.gui.ILabelingStrategyPanel; |
33 |
import org.gvsig.app.project.documents.view.legend.gui.ILegendPanel; |
34 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
35 |
import org.gvsig.fmap.geom.type.GeometryType; |
36 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
37 |
import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClass; |
38 |
|
39 |
import org.gvsig.gui.ColorTablePainter; |
40 |
import org.gvsig.gui.ColorTablesFactory; |
41 |
import org.gvsig.symbology.SymbologyManager; |
42 |
|
43 |
/**
|
44 |
* This class is responsible of the management of the library's swing user
|
45 |
* interface. It is the swing library's main entry point, and provides all the
|
46 |
* services to manage library swing components.
|
47 |
*
|
48 |
* @see SymbologyWindowManager
|
49 |
* @see JSymbologyServicePanel
|
50 |
* @author gvSIG team
|
51 |
* @version $Id$
|
52 |
*/
|
53 |
public interface SymbologySwingManager { |
54 |
|
55 |
/**
|
56 |
* Returns the {@link SymbologyManager}.
|
57 |
*
|
58 |
* @return {@link SymbologyManager}
|
59 |
* @see {@link SymbologyManager}
|
60 |
*/
|
61 |
public SymbologyManager getManager();
|
62 |
|
63 |
/**
|
64 |
* Returns the translation of a string.
|
65 |
*
|
66 |
* @param key
|
67 |
* String to translate
|
68 |
* @return a String with the translation of the string passed by parameter
|
69 |
*/
|
70 |
public String getTranslation(String key); |
71 |
|
72 |
/**
|
73 |
* Registers a new instance of a WindowManager which provides services to
|
74 |
* the management of the application windows.
|
75 |
*
|
76 |
* @param manager
|
77 |
* {@link SymbologyWindowManager} to register in the
|
78 |
* ScriptingUIManager.
|
79 |
* @see SymbologyWindowManager
|
80 |
*/
|
81 |
public void registerWindowManager(SymbologyWindowManager manager); |
82 |
|
83 |
/**
|
84 |
* Returns the {@link SymbologyWindowManager}.
|
85 |
*
|
86 |
* @return {@link SymbologyWindowManager}
|
87 |
* @see {@link SymbologyWindowManager}
|
88 |
*/
|
89 |
public SymbologyWindowManager getWindowManager();
|
90 |
|
91 |
public void setColorTablesFactory(ColorTablesFactory factory); |
92 |
|
93 |
public ColorTablesFactory getColorTablesFactory();
|
94 |
|
95 |
public List<ColorTablePainter> createColorTables(); |
96 |
|
97 |
public void registerSymbolEditor(Class<? extends TypeSymbolEditor> symbolEditor, int shapeType); |
98 |
|
99 |
public List<Class<? extends TypeSymbolEditor>> getSymbolEditorClassesByGeometryType(GeometryType geometryType); |
100 |
|
101 |
public void registerLegendEditor(Class<? extends ILegendPanel> legendEditor); |
102 |
|
103 |
public List<Class<? extends ILegendPanel>> getLegendEditorClasses(); |
104 |
|
105 |
public List<ILegendPanel> getLegendEditors(FLayer layer); |
106 |
|
107 |
public void registerLabelingEditor(Class<? extends ILabelingStrategyPanel> labelingEditor); |
108 |
|
109 |
public List<ILabelingStrategyPanel> getLabelingEditors(); |
110 |
|
111 |
public void registerLabelClassEditor(LabelClassEditorFactory factory); |
112 |
|
113 |
public Collection<LabelClassEditorFactory> getLabelClassEditorFactories(); |
114 |
|
115 |
public LabelClassEditorFactory getLabelClassEditorFactory(String id); |
116 |
|
117 |
public LabelClassEditorFactory getLabelClassEditorFactory(ILabelClass labelClass);
|
118 |
|
119 |
public LabelClassEditor createLabelClassEditor(ILabelClass labelClass, FeatureStore store);
|
120 |
|
121 |
public Iterable<Action> getOptionalActionOfLegendsPanel(); |
122 |
|
123 |
public void addOptionalActionToLegendsPanel(Action action); |
124 |
} |