Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / applications / appgvSIG / src / org / gvsig / app / daltransform / gui / FeatureTransformGui.java @ 28833

History | View | Annotate | Download (2.51 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.app.daltransform.gui;
29

    
30
import javax.swing.JPanel;
31

    
32
import org.gvsig.fmap.dal.exception.DataException;
33
import org.gvsig.fmap.dal.feature.FeatureStore;
34
import org.gvsig.fmap.dal.feature.FeatureStoreTransform;
35

    
36
/**
37
 * This interface is used to establish a relationship between 
38
 * feature transformations and their user interfaces. 
39
 * 
40
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
41
 */
42
public interface FeatureTransformGui {
43
    
44
        /**
45
         * Creates a feature transformation from a feature store. The
46
         * class that implements this interface can create a transformation
47
         * using this feature store and all the parameters that the user has
48
         * selected. All these parameters must be known by this class
49
         * @param featureStore
50
         * The selected feature store
51
         * @return
52
         * The transformation
53
         * @throws DataException
54
         */
55
        public FeatureStoreTransform createFeatureStoreTransform(FeatureStore featureStore) throws DataException;
56
                
57
        /**
58
         * This method is called when the specific panel for this transformation
59
         * is loaded. This class can refresh the panel using the
60
         * selected feature store
61
         * @param featureStore
62
         * The selected feature store
63
         * @throws DataException
64
         */
65
        public void updateGui(FeatureStore featureStore) throws DataException;
66
        
67
        /**
68
         * @return the specific panel for a concrete transformation
69
         */
70
        public JPanel getPanel();
71

    
72
        /**
73
         * @return the name that is displayed in the feature transformation
74
         * list
75
         */
76
        public String toString();
77
        
78
        /**
79
         * @return a description of the feature transformation
80
         */
81
        public String getDescription();
82
}
83