Statistics
| Revision:

gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.swing / org.gvsig.raster.swing.api / src / main / java / org / gvsig / raster / swing / RasterSwingManager.java @ 1194

History | View | Annotate | Download (3.52 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
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 2
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
 */
22
package org.gvsig.raster.swing;
23

    
24
import java.awt.Color;
25
import java.util.ArrayList;
26
import java.util.HashMap;
27

    
28
import javax.swing.ImageIcon;
29
import javax.swing.JPanel;
30

    
31
import org.gvsig.raster.swing.gcanvas.GCanvas;
32
import org.gvsig.raster.swing.infobypoint.MainInfoByPointPanel;
33
import org.gvsig.raster.swing.preview.DataSourcePreview;
34
import org.gvsig.raster.swing.preview.PreviewPanel;
35
import org.gvsig.raster.swing.preview.PreviewRenderProcess;
36

    
37

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

    
50
    /**
51
     * Returns the translation of a string.
52
     * 
53
     * @param key
54
     *            String to translate
55
     * @return a String with the translation of the string passed by parameter
56
     */
57
    public String getTranslation(String key);
58

    
59
    /**
60
     * Registers a new instance of a WindowManager which provides services to
61
     * the management of the application windows.
62
     * 
63
     * @param manager
64
     *            {@link RasterWindowManager} to register in the
65
     *            ScriptingUIManager.
66
     * @see RasterWindowManager
67
     */
68
    public void registerWindowManager(RasterWindowManager manager);
69

    
70
    /**
71
     * Returns the {@link RasterWindowManager}.
72
     * 
73
     * @return {@link RasterWindowManager}
74
     * @see {@link RasterWindowManager}
75
     */
76
    public RasterWindowManager getWindowManager();
77
    
78
    public BasePanel createGenericBasePanel();
79
 
80
    /**
81
     * Creates a canvas to draw graphic layers.
82
     * @param backgroundColor
83
     * @return
84
     */
85
    public GCanvas createGraphicCanvas(Color backgroundColor);
86
    
87
    /**
88
     * Creates a preview panel using a data source, a render process and a list
89
     * of panels
90
     * @param buttons
91
     * @param list
92
     * @param generalPanel
93
     * @param downPreviewPanel
94
     * @param renderProcess
95
     * @param dataSource
96
     * @return
97
     */
98
    @SuppressWarnings("unchecked")
99
        public PreviewPanel createPreviewPanel(int buttons, 
100
                    ArrayList list,
101
                    JPanel generalPanel,
102
                    JPanel downPreviewPanel,
103
                    PreviewRenderProcess renderProcess,
104
                    DataSourcePreview dataSource);
105
    
106
    /**
107
     * Creates the information by point panel
108
     * @param translations
109
     * @param extended
110
     * @return
111
     */
112
    public MainInfoByPointPanel createInfoByPointPanel(
113
                    HashMap<String, String> translations, 
114
                    HashMap<String, ImageIcon> icons, 
115
                    JPanel extended);
116

    
117
}