Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.spi / src / main / java / org / gvsig / exportto / swing / spi / ExporttoSwingProvider.java @ 42676

History | View | Annotate | Download (2.25 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
package org.gvsig.exportto.swing.spi;
25

    
26
import org.cresques.cts.IProjection;
27
import org.gvsig.exportto.ExporttoService;
28

    
29
/**
30
 * A Exportto provider.
31
 *
32
 * @author gvSIG Team
33
 * @version $Id$
34
 */
35
public interface ExporttoSwingProvider {
36

    
37
    /**
38
     * @return
39
     *         the number of panels that are used por this provider.
40
     */
41
    public int getPanelCount();
42

    
43
    /**
44
     * A {@link ExporttoSwingProvider} are composed of a set of panels. This
45
     * method
46
     * is used to retrieve all these panels.
47
     *
48
     * @param index
49
     *            position of the panel to retrieve.
50
     * @return
51
     *         the panel that is in a concrete position.
52
     */
53
    public ExporttoSwingProviderPanel getPanelAt(int index);
54

    
55
    /**
56
     * @return a {@link ExporttoService} that has been initialized this
57
     *         the values typed in the panels returned by this service.
58
     */
59
    public ExporttoService createExporttoService();
60

    
61
    /**
62
     * Sets the target projection to which should be exported
63
     * @param targetProjection
64
     */
65
    public void setTargetProjection(IProjection targetProjection);
66

    
67
    /**
68
     * Informs if it needs to ask for a target projection,
69
     * or if it is not needed or provided through its own wizard panel.
70
     * @return
71
     */
72
    public boolean needsPanelTargetProjection();
73

    
74
}