svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.daltransform.app / org.gvsig.daltransform.app.mainplugin / src / main / java / org / gvsig / daltransform / DataTransformManager.java @ 40558
History | View | Annotate | Download (3.51 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 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 3
|
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 |
* AUTHORS (In addition to CIT):
|
26 |
* 2009 {Iver T.I.} {Task}
|
27 |
*/
|
28 |
|
29 |
package org.gvsig.daltransform; |
30 |
|
31 |
import java.util.List; |
32 |
|
33 |
import org.gvsig.daltransform.swing.DataTransformGui; |
34 |
import org.gvsig.daltransform.swing.DataTransformWizard; |
35 |
import org.gvsig.daltransform.swing.JDataTransformList; |
36 |
import org.gvsig.daltransform.swing.JDialogDataTransformList; |
37 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
38 |
|
39 |
/**
|
40 |
* This singleton provides a centralized access to register
|
41 |
* {@link DataTransformGui} that is a class to establish
|
42 |
* a relationship between a tranformation and a user interface.
|
43 |
*
|
44 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
|
45 |
*/
|
46 |
public interface DataTransformManager { |
47 |
|
48 |
/**
|
49 |
* Register a data transformation
|
50 |
*
|
51 |
* @param name
|
52 |
* the name used to register the transformation
|
53 |
* @param featureTransformGui
|
54 |
* the class that contains the relationship between a
|
55 |
* transformation
|
56 |
* and its user interface. This class has to be an instance of
|
57 |
* {@link DataTransformGui}
|
58 |
*/
|
59 |
public void registerDataTransform(String name, Class<?> dataTransformGui); |
60 |
|
61 |
/**
|
62 |
* Register the GUI that is used to apply transformations.
|
63 |
*
|
64 |
* @param dataTransformWizard
|
65 |
* the class that implements the GUI. This class has to be an
|
66 |
* instance of {@link DataTransformWizard}
|
67 |
*/
|
68 |
public void registerDataTransformWizard(Class<?> dataTransformWizard); |
69 |
|
70 |
/**
|
71 |
* Returns a list of the registered data transformations.
|
72 |
*
|
73 |
* @return
|
74 |
* A list of the registered data transformations.
|
75 |
*/
|
76 |
public List<DataTransformGui> getDataTransforms(); |
77 |
|
78 |
/**
|
79 |
* Creates a wizard that can be used to apply the transformations.
|
80 |
*
|
81 |
* @return
|
82 |
* The wizard.
|
83 |
*/
|
84 |
public DataTransformWizard createWizard() throws CreateWizardException; |
85 |
|
86 |
/**
|
87 |
* It creates a wizard and selects the transformation specified
|
88 |
* by the parameter.
|
89 |
*
|
90 |
* @param transformName
|
91 |
* The name of the transformation to apply.
|
92 |
* @return
|
93 |
* The wizard.
|
94 |
* @throws CreateWizardException
|
95 |
*/
|
96 |
public DataTransformWizard createWizard(String transformName) |
97 |
throws CreateWizardException, NotRegisteredTransformException;
|
98 |
|
99 |
public JDataTransformList createJDataTransformList(FeatureStore featureStore);
|
100 |
|
101 |
// public JDialogDataTransformList createJDialogDataTransformList(
|
102 |
// FeatureStore featureStore);
|
103 |
|
104 |
public JDialogDataTransformList createJDialogDataTransformList();
|
105 |
|
106 |
} |