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 @ 319
History | View | Annotate | Download (2.87 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 org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
28 |
import org.gvsig.tools.service.spi.ProviderManager; |
29 |
import org.gvsig.vectorediting.lib.api.EditingServiceInfo; |
30 |
import org.gvsig.vectorediting.lib.api.exceptions.ServiceInformationException; |
31 |
|
32 |
/**
|
33 |
*
|
34 |
* Manager the registration of {@link EditingProviderFactory} objects and the
|
35 |
* creation of Providers. Moreover, offers service info about services and
|
36 |
* utility methods.
|
37 |
*
|
38 |
* @author llmarques
|
39 |
* @version $Id$
|
40 |
*/
|
41 |
public interface EditingProviderManager extends ProviderManager { |
42 |
|
43 |
/**
|
44 |
* Gets read only information about a service such as if creates new
|
45 |
* geometries, name, description, supported types, mouse icon, parameters
|
46 |
* and
|
47 |
* information about its parameters.
|
48 |
*
|
49 |
* @param serviceName
|
50 |
* service name to get the service information
|
51 |
* @return An <code>EditingServiceInfo</code> object that contains the
|
52 |
* information. {@link EditingServiceInfo}.
|
53 |
* @throws ServiceInformationException
|
54 |
* if there is an error getting
|
55 |
* information of service.
|
56 |
*/
|
57 |
public EditingServiceInfo getServiceInfo(String name) |
58 |
throws ServiceInformationException;
|
59 |
|
60 |
/**
|
61 |
* Utility method used by providers to register icons. Use png files.
|
62 |
*
|
63 |
* @param group
|
64 |
* of icon. Use vectorediting-tools.
|
65 |
* @param name
|
66 |
* of icon.
|
67 |
* @param loader
|
68 |
* classloader of provider.
|
69 |
* @param provider
|
70 |
* of icon
|
71 |
*/
|
72 |
public void registerIcon(String group, String name, ClassLoader loader, |
73 |
String provider);
|
74 |
|
75 |
/**
|
76 |
* Register a symbol in a symbol's map with name as key
|
77 |
*
|
78 |
* @param name
|
79 |
* @param symbol
|
80 |
*/
|
81 |
public void registerSymbol(String name, ISymbol symbol); |
82 |
|
83 |
/**
|
84 |
*
|
85 |
* @param name
|
86 |
* @param symbol
|
87 |
*/
|
88 |
public ISymbol getSymbol(String name); |
89 |
|
90 |
|
91 |
} |