Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.about / org.gvsig.about.api / src / main / java / org / gvsig / about / AboutManager.java @ 42024

History | View | Annotate | Download (2.88 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.about;
23

    
24
import java.net.URL;
25
import java.util.List;
26
import java.util.Map;
27

    
28
import javax.swing.JPanel;
29

    
30
/**
31
 * @author gvSIG Team
32
 * @version $Id$
33
 * 
34
 */
35
public interface AboutManager {
36

    
37
    public void setProject(String name, URL description, URL icon);
38

    
39
    public void setProject(String name, URL description, URL icon,
40
        Map<String, String> vars);
41

    
42
    /**
43
     * Add a developer information if not exists
44
     */
45
    public AboutParticipant addDeveloper(String name, URL description,
46
        int priority);
47

    
48
    public AboutParticipant addDeveloper(String name, URL description,
49
        int priority, URL icon);
50

    
51
    /**
52
     * Add a sponsor information if not exists
53
     */
54
    public AboutParticipant addSponsor(String name, URL description,
55
        int priority);
56

    
57
    public AboutParticipant addSponsor(String name, URL description,
58
        int priority, URL icon);
59

    
60
    /**
61
     * Add a translator information if not exists
62
     */
63
    public AboutParticipant addTranslator(String name, URL description,
64
        int priority);
65

    
66
    public AboutParticipant addTranslator(String name, URL description,
67
        int priority, URL icon);
68

    
69
    public AboutProject getProject();
70

    
71
    public List<AboutDeveloper> getDevelopers();
72

    
73
    public List<AboutSponsor> getSponsors();
74

    
75
    public List<AboutTranslator> getTranslators();
76

    
77
    public AboutSponsor getSponsor(String name);
78

    
79
    public AboutDeveloper getDeveloper(String name);
80

    
81
    public AboutTranslator getTranslator(String name);
82

    
83
    /* API of the swing part */
84
    public JPanel getAboutPanel();
85

    
86
    /**
87
     * Returns the base path of a file URL.
88
     * <p>
89
     * The method will simply cut the last path of the URL. 
90
     * For example, if the URL is:
91
     * </p>
92
     * http://www.gvsig.org/docs/file.html
93
     * <p>
94
     * The returned base string would be:
95
     * </p>
96
     * http://www.gvsig.org/docs/
97
     * @param fileURL the {@link URL} of the file
98
     * @return the base path of a file URL
99
     */
100
    public String getURLBase(URL fileURL);
101
}