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 @ 47375
History | View | Annotate | Download (4.83 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 javax.swing.JButton; |
30 |
import javax.swing.text.JTextComponent; |
31 |
import org.gvsig.app.gui.labeling.LabelClassEditor; |
32 |
import org.gvsig.app.gui.labeling.LabelClassEditorFactory; |
33 |
import org.gvsig.app.gui.styling.TypeSymbolEditor; |
34 |
import org.gvsig.app.project.documents.view.legend.gui.ILabelingStrategyPanel; |
35 |
import org.gvsig.app.project.documents.view.legend.gui.ILegendPanel; |
36 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
37 |
import org.gvsig.fmap.geom.type.GeometryType; |
38 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
39 |
import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelClass; |
40 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
41 |
import org.gvsig.gui.ColorTablePainter; |
42 |
import org.gvsig.gui.ColorTablesFactory; |
43 |
import org.gvsig.symbology.SymbologyManager; |
44 |
import org.gvsig.tools.swing.api.pickercontroller.PickerController; |
45 |
|
46 |
/**
|
47 |
* This class is responsible of the management of the library's swing user
|
48 |
* interface. It is the swing library's main entry point, and provides all the
|
49 |
* services to manage library swing components.
|
50 |
*
|
51 |
* @see SymbologyWindowManager
|
52 |
* @see JSymbologyServicePanel
|
53 |
* @author gvSIG team
|
54 |
* @version $Id$
|
55 |
*/
|
56 |
public interface SymbologySwingManager { |
57 |
|
58 |
/**
|
59 |
* Returns the {@link SymbologyManager}.
|
60 |
*
|
61 |
* @return {@link SymbologyManager}
|
62 |
* @see {@link SymbologyManager}
|
63 |
*/
|
64 |
public SymbologyManager getManager();
|
65 |
|
66 |
/**
|
67 |
* Returns the translation of a string.
|
68 |
*
|
69 |
* @param key
|
70 |
* String to translate
|
71 |
* @return a String with the translation of the string passed by parameter
|
72 |
*/
|
73 |
public String getTranslation(String key); |
74 |
|
75 |
/**
|
76 |
* Registers a new instance of a WindowManager which provides services to
|
77 |
* the management of the application windows.
|
78 |
*
|
79 |
* @param manager
|
80 |
* {@link SymbologyWindowManager} to register in the
|
81 |
* ScriptingUIManager.
|
82 |
* @see SymbologyWindowManager
|
83 |
*/
|
84 |
public void registerWindowManager(SymbologyWindowManager manager); |
85 |
|
86 |
/**
|
87 |
* Returns the {@link SymbologyWindowManager}.
|
88 |
*
|
89 |
* @return {@link SymbologyWindowManager}
|
90 |
* @see {@link SymbologyWindowManager}
|
91 |
*/
|
92 |
public SymbologyWindowManager getWindowManager();
|
93 |
|
94 |
public void setColorTablesFactory(ColorTablesFactory factory); |
95 |
|
96 |
public ColorTablesFactory getColorTablesFactory();
|
97 |
|
98 |
public List<ColorTablePainter> createColorTables(); |
99 |
|
100 |
public void registerSymbolEditor(Class<? extends TypeSymbolEditor> symbolEditor, int shapeType); |
101 |
|
102 |
public List<Class<? extends TypeSymbolEditor>> getSymbolEditorClassesByGeometryType(GeometryType geometryType); |
103 |
|
104 |
public void registerLegendEditor(Class<? extends ILegendPanel> legendEditor); |
105 |
|
106 |
public List<Class<? extends ILegendPanel>> getLegendEditorClasses(); |
107 |
|
108 |
public List<ILegendPanel> getLegendEditors(FLayer layer); |
109 |
|
110 |
public void registerLabelingEditor(Class<? extends ILabelingStrategyPanel> labelingEditor); |
111 |
|
112 |
public List<ILabelingStrategyPanel> getLabelingEditors(); |
113 |
|
114 |
public void registerLabelClassEditor(LabelClassEditorFactory factory); |
115 |
|
116 |
public Collection<LabelClassEditorFactory> getLabelClassEditorFactories(); |
117 |
|
118 |
public LabelClassEditorFactory getLabelClassEditorFactory(String id); |
119 |
|
120 |
public LabelClassEditorFactory getLabelClassEditorFactory(ILabelClass labelClass);
|
121 |
|
122 |
public LabelClassEditor createLabelClassEditor(ILabelClass labelClass, FeatureStore store);
|
123 |
|
124 |
public Iterable<Action> getOptionalActionOfLegendsPanel(); |
125 |
|
126 |
public void addOptionalActionToLegendsPanel(Action action); |
127 |
|
128 |
public PickerController<ISymbol> createSymbolPickerController(JButton btn, ISymbol symbol); |
129 |
|
130 |
public PickerController<ISymbol> createSymbolPickerController(JButton btnPreview, JTextComponent txtDescription, int geomType, ISymbol symbol); |
131 |
|
132 |
} |