Statistics
| Revision:

gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.lib / org.gvsig.vectorediting.lib.api / src / main / java / org / gvsig / vectorediting / lib / api / EditingManager.java @ 2616

History | View | Annotate | Download (2.99 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.api;
26

    
27
import org.gvsig.fmap.dal.feature.FeatureStore;
28
import org.gvsig.fmap.mapcontext.MapContext;
29
import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend;
30
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
31
import org.gvsig.tools.service.Manager;
32
import org.gvsig.vectorediting.lib.api.exceptions.ServiceInformationException;
33

    
34
/**
35
 * Main class that defines the available Editing services.
36
 * 
37
 * @author llmarques
38
 * @version $Id$
39
 */
40
public interface EditingManager extends Manager {
41

    
42
    /**
43
     * Gets read only information about a service such as if service creates new
44
     * geometries, name, description, supported types, mouse icon, parameters
45
     * and information about its parameters.
46
     *
47
     * @param serviceName
48
     *            service name to get the service information
49
     * @return An <code>EditingServiceInfo</code> object that contains the
50
     *         information. {@link EditingServiceInfo}.
51
     * @throws ServiceInformationException
52
     *             if there is an error getting
53
     *             information of service.
54
     */
55
    public EditingServiceInfo getServiceInfo(String serviceName)
56
        throws ServiceInformationException;
57

    
58
    /**
59
     * Gets a new instance of service as of name and featureStore. Check
60
     * names to know what names are accepted.
61
     *
62
     * @param name
63
     *            Service name necessary to create an instance linked with the
64
     *            appropriate provider.
65
     * @param featureStore
66
     *            FeatureStore associated with this service necessary to
67
     *            create, update and remove geometries.
68
     * @param mapContext
69
     *            of layer in editing mode
70
     * @return An <code> EditingService </code> object. See
71
     *         {@link EditingService} .
72
     */
73
    public EditingService getEditingService(String name,
74
        FeatureStore featureStore, MapContext mapContext);
75

    
76
    public EditingService getEditingService(String name,
77
        FeatureStore featureStore, MapContext mapContext, IVectorLegend legend);
78
        
79
}