svn-gvsig-desktop / branches / v2_0_0_prep / libraries / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.spi / src / main / java / org / gvsig / exportto / swing / spi / ExporttoSwingProviderManager.java @ 35745
History | View | Annotate | Download (3.3 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 |
package org.gvsig.exportto.swing.spi; |
23 |
|
24 |
import java.util.List; |
25 |
|
26 |
import javax.print.attribute.standard.OutputDeviceAssigned; |
27 |
|
28 |
import org.cresques.cts.IProjection; |
29 |
|
30 |
import org.gvsig.exportto.swing.ExporttoSwingManager; |
31 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
32 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
33 |
import org.gvsig.fmap.dal.feature.FeatureType; |
34 |
import org.gvsig.tools.service.ServiceException; |
35 |
import org.gvsig.tools.service.spi.ProviderManager; |
36 |
|
37 |
/**
|
38 |
* Responsible of the management of the providers business logic.
|
39 |
*
|
40 |
* @see ExporttoSwingProvider
|
41 |
* @author gvSIG Team
|
42 |
* @version $Id$
|
43 |
*/
|
44 |
public interface ExporttoSwingProviderManager extends ProviderManager { |
45 |
|
46 |
/**
|
47 |
* @return
|
48 |
* the list of providers that has been registered.
|
49 |
*/
|
50 |
@SuppressWarnings("rawtypes") |
51 |
public List getProviderNames(); |
52 |
|
53 |
/**
|
54 |
* Returns a list of providers that support all the
|
55 |
* provider types.
|
56 |
* @param
|
57 |
* a list of provider types, that are constants
|
58 |
* defined in the {@link ExporttoSwingManager}.
|
59 |
* @return
|
60 |
* the list of providers that has been registered.
|
61 |
*/
|
62 |
@SuppressWarnings("rawtypes") |
63 |
public List getProviderNames(int[] providerTypes); |
64 |
|
65 |
/**
|
66 |
* Return if a provider supports a data type.
|
67 |
* @param providerName
|
68 |
* the provider name.
|
69 |
* @param providerType
|
70 |
* the provider type. One of the constants defined in the
|
71 |
* {@link ExporttoSwingManager}.
|
72 |
* @return
|
73 |
* if the provider supports a dataType.
|
74 |
* @throws ServiceException
|
75 |
*/
|
76 |
public boolean support(String providerName, int providerType) throws ServiceException; |
77 |
|
78 |
/**
|
79 |
* Creates a {@link ExporttoSwingProvider} that is used to export a {@link FeatureSet}.
|
80 |
* @param providerName
|
81 |
* the name of the provider that has to be created.
|
82 |
* @param featureStore
|
83 |
* the source feature store. It can be used to fix some parameters like the
|
84 |
* {@link FeatureType} of the destination {@link FeatureStore}.
|
85 |
* @param projection
|
86 |
* the projection of the {@link OutputDeviceAssigned} store.
|
87 |
* @return
|
88 |
* a provider that has to be used to export a {@link FeatureSet}.
|
89 |
*/
|
90 |
public ExporttoSwingProvider createExporttoSwingProvider(String providerName, FeatureStore featureStore, IProjection projection) throws ServiceException; |
91 |
|
92 |
} |