Statistics
| Revision:

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 @ 41400

History | View | Annotate | Download (3.58 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.List;
27
import org.gvsig.app.gui.styling.TypeSymbolEditor;
28
import org.gvsig.app.project.documents.view.legend.gui.ILabelingStrategyPanel;
29
import org.gvsig.app.project.documents.view.legend.gui.ILegendPanel;
30
import org.gvsig.fmap.geom.type.GeometryType;
31
import org.gvsig.fmap.mapcontext.layers.FLayer;
32

    
33
import org.gvsig.gui.ColorTablePainter;
34
import org.gvsig.gui.ColorTablesFactory;
35
import org.gvsig.symbology.SymbologyManager;
36

    
37
/**
38
 * This class is responsible of the management of the library's swing user
39
 * interface. It is the swing library's main entry point, and provides all the
40
 * services to manage library swing components.
41
 * 
42
 * @see SymbologyWindowManager
43
 * @see JSymbologyServicePanel
44
 * @author gvSIG team
45
 * @version $Id$
46
 */
47
public interface SymbologySwingManager {
48

    
49
    /**
50
     * Returns the {@link SymbologyManager}.
51
     * 
52
     * @return {@link SymbologyManager}
53
     * @see {@link SymbologyManager}
54
     */
55
    public SymbologyManager getManager();
56

    
57
    /**
58
     * Returns the translation of a string.
59
     * 
60
     * @param key
61
     *            String to translate
62
     * @return a String with the translation of the string passed by parameter
63
     */
64
    public String getTranslation(String key);
65

    
66
    /**
67
     * Registers a new instance of a WindowManager which provides services to
68
     * the management of the application windows.
69
     * 
70
     * @param manager
71
     *            {@link SymbologyWindowManager} to register in the
72
     *            ScriptingUIManager.
73
     * @see SymbologyWindowManager
74
     */
75
    public void registerWindowManager(SymbologyWindowManager manager);
76

    
77
    /**
78
     * Returns the {@link SymbologyWindowManager}.
79
     * 
80
     * @return {@link SymbologyWindowManager}
81
     * @see {@link SymbologyWindowManager}
82
     */
83
    public SymbologyWindowManager getWindowManager();
84
    
85
    public void setColorTablesFactory(ColorTablesFactory factory);
86
    
87
    public ColorTablesFactory getColorTablesFactory();
88
    
89
    public List<ColorTablePainter> createColorTables();
90
    
91
    public void registerSymbolEditor(Class<? extends TypeSymbolEditor> symbolEditor, int shapeType);
92
    
93
    public List<Class<? extends TypeSymbolEditor>> getSymbolEditorClassesByGeometryType(GeometryType geometryType);
94
    
95
    public void registerLegendEditor(Class<? extends ILegendPanel> legendEditor);
96
    
97
    public List<Class<? extends ILegendPanel>> getLegendEditorClasses();
98
    
99
    public List<ILegendPanel> getLegendEditors(FLayer layer);
100
    
101
    public void registerLabelingEditor(Class<? extends ILabelingStrategyPanel> labelingEditor);
102
    
103
    public List<ILabelingStrategyPanel> getLabelingEditors();
104
}