gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.lib / org.gvsig.vectorediting.lib.spi / src / main / java / org / gvsig / vectorediting / lib / spi / EditingProviderManager.java @ 2109
History | View | Annotate | Download (3.21 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright ? 2007-2014 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 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 |
* 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 |
|
25 |
package org.gvsig.vectorediting.lib.spi; |
26 |
|
27 |
import java.util.Map; |
28 |
|
29 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
30 |
import org.gvsig.tools.service.spi.ProviderManager; |
31 |
import org.gvsig.vectorediting.lib.api.EditingServiceInfo; |
32 |
import org.gvsig.vectorediting.lib.api.exceptions.ServiceInformationException; |
33 |
|
34 |
/**
|
35 |
*
|
36 |
* Manager the registration of {@link EditingProviderFactory} objects and the
|
37 |
* creation of Providers. Moreover, offers service info about services and
|
38 |
* utility methods.
|
39 |
*
|
40 |
* @author llmarques
|
41 |
* @version $Id$
|
42 |
*/
|
43 |
public interface EditingProviderManager extends ProviderManager { |
44 |
|
45 |
/**
|
46 |
* Gets read only information about a service such as if creates new
|
47 |
* geometries, name, description, supported types, mouse icon, parameters
|
48 |
* and
|
49 |
* information about its parameters.
|
50 |
*
|
51 |
* @param serviceName
|
52 |
* service name to get the service information
|
53 |
* @return An <code>EditingServiceInfo</code> object that contains the
|
54 |
* information. {@link EditingServiceInfo}.
|
55 |
* @throws ServiceInformationException
|
56 |
* if there is an error getting
|
57 |
* information of service.
|
58 |
*/
|
59 |
public EditingServiceInfo getServiceInfo(String name) |
60 |
throws ServiceInformationException;
|
61 |
|
62 |
/**
|
63 |
* Utility method used by providers to register icons. Use png files.
|
64 |
*
|
65 |
* @param group
|
66 |
* of icon. Use vectorediting-tools.
|
67 |
* @param name
|
68 |
* of icon.
|
69 |
* @param loader
|
70 |
* classloader of provider.
|
71 |
* @param provider
|
72 |
* of icon
|
73 |
*/
|
74 |
public void registerIcon(String group, String name, ClassLoader loader, |
75 |
String provider);
|
76 |
|
77 |
/**
|
78 |
* Register a symbol in a symbol's map with name as key
|
79 |
*
|
80 |
* @param name
|
81 |
* @param symbol
|
82 |
*/
|
83 |
public void registerSymbol(String name, ISymbol symbol); |
84 |
|
85 |
/**
|
86 |
*
|
87 |
* @param name
|
88 |
* @param symbol
|
89 |
*/
|
90 |
public ISymbol getSymbol(String name); |
91 |
|
92 |
/**
|
93 |
*
|
94 |
* @param name
|
95 |
* @param values
|
96 |
*/
|
97 |
public void registerDefaultValues(String provider, Map values); |
98 |
|
99 |
/**
|
100 |
*
|
101 |
* @param name
|
102 |
* @param loader
|
103 |
*/
|
104 |
public void registerDefaultValues(String name, ClassLoader loader); |
105 |
|
106 |
/**
|
107 |
*
|
108 |
* @param name
|
109 |
*/
|
110 |
public Map<String, String> getDefaultValues(String name); |
111 |
} |