Statistics
| Revision:

root / branches / v2_0_0_prep / extensions / org.gvsig.daltransform.app.mainplugin / src / main / java / org / gvsig / daltransform / DataTransformManager.java @ 36000

History | View | Annotate | Download (3.46 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

    
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2009 {Iver T.I.}   {Task}
26
 */
27

    
28
package org.gvsig.daltransform;
29

    
30
import java.util.List;
31

    
32
import org.gvsig.daltransform.swing.DataTransformGui;
33
import org.gvsig.daltransform.swing.DataTransformWizard;
34
import org.gvsig.daltransform.swing.JDataTransformList;
35
import org.gvsig.daltransform.swing.JDialogDataTransformList;
36
import org.gvsig.fmap.dal.feature.FeatureStore;
37

    
38
/**
39
 * This singleton provides a centralized access to register
40
 * {@link DataTransformGui} that is a class to establish
41
 * a relationship between a tranformation and a user interface.
42
 * 
43
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
44
 */
45
public interface DataTransformManager {
46

    
47
    /**
48
     * Register a data transformation
49
     * 
50
     * @param name
51
     *            the name used to register the transformation
52
     * @param featureTransformGui
53
     *            the class that contains the relationship between a
54
     *            transformation
55
     *            and its user interface. This class has to be an instance of
56
     *            {@link DataTransformGui}
57
     */
58
    public void registerDataTransform(String name, Class<?> dataTransformGui);
59

    
60
    /**
61
     * Register the GUI that is used to apply transformations.
62
     * 
63
     * @param dataTransformWizard
64
     *            the class that implements the GUI. This class has to be an
65
     *            instance of {@link DataTransformWizard}
66
     */
67
    public void registerDataTransformWizard(Class<?> dataTransformWizard);
68

    
69
    /**
70
     * Returns a list of the registered data transformations.
71
     * 
72
     * @return
73
     *         A list of the registered data transformations.
74
     */
75
    public List<DataTransformGui> getDataTransforms();
76

    
77
    /**
78
     * Creates a wizard that can be used to apply the transformations.
79
     * 
80
     * @return
81
     *         The wizard.
82
     */
83
    public DataTransformWizard createWizard() throws CreateWizardException;
84

    
85
    /**
86
     * It creates a wizard and selects the transformation specified
87
     * by the parameter.
88
     * 
89
     * @param transformName
90
     *            The name of the transformation to apply.
91
     * @return
92
     *         The wizard.
93
     * @throws CreateWizardException
94
     */
95
    public DataTransformWizard createWizard(String transformName)
96
        throws CreateWizardException, NotRegisteredTransformException;
97

    
98
    public JDataTransformList createJDataTransformList(FeatureStore featureStore);
99

    
100
    // public JDialogDataTransformList createJDialogDataTransformList(
101
    // FeatureStore featureStore);
102

    
103
    public JDialogDataTransformList createJDialogDataTransformList();
104

    
105
}