public class DefaultExporttoSwingProviderManager extends AbstractProviderManager implements ExporttoSwingProviderManager
Constructor and Description |
---|
DefaultExporttoSwingProviderManager() |
Modifier and Type | Method and Description |
---|---|
void |
addProviderFactory(ProviderFactory providerFactory)
Adds a new
ProviderFactory to the registry. |
ExporttoSwingProvider |
createExporttoSwingProvider(String providerName,
FeatureStore featureStore,
IProjection projection)
Creates a
ExporttoSwingProvider that is used to export a
FeatureSet . |
ExporttoSwingProvider |
createExporttoSwingProvider(String providerName,
FLyrVect vlayer)
Creates a
ExporttoSwingProvider that is used to export a
FeatureSet . |
ExporttoSwingPreferencesComponent |
createExporttoSwingProvidersPreferences()
Creates a preferences component to manage the export to properties.
|
ProviderServices |
createProviderServices(Service service)
Creates a new
ProviderServices object to be used by the
Provider s. |
void |
enableProvider(ExporttoSwingProviderFactory factory,
boolean value)
Enables or disables an exportto provider.
|
String |
getDescription(String providerName)
Returns the description for a concrete provider
|
ExporttoSwingProviderFactory |
getExporttoSwingProviderFactory(String name)
Returns the provider factory with the given name.
|
List<ExporttoSwingProviderFactory> |
getProviderFactories()
Returns all the available
ExporttoSwingProviderFactory s. |
List<ExporttoSwingProviderFactory> |
getProviderFactories(int[] providerTypes)
Returns the
ExporttoSwingProviderFactory s that support the
given factory types. |
List<String> |
getProviderNames() |
List<String> |
getProviderNames(int[] providerTypes)
Returns a list of providers that support all the
provider types.
|
protected String |
getRegistryDescription() |
protected String |
getRegistryKey() |
boolean |
isProviderEnabled(ExporttoSwingProviderFactory factory)
Returns if the provider whose factory is provided is enabled.
|
boolean |
support(String providerName,
int providerType)
Return if a provider supports a data type.
|
createProvider, createServiceParameters, getProviderFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createProvider, createServiceParameters
public ProviderServices createProviderServices(Service service)
ProviderManager
ProviderServices
object to be used by the
Provider
s.createProviderServices
in interface ProviderManager
service
- to create the related ProviderServices
with.public List<String> getProviderNames()
getProviderNames
in interface ExporttoSwingProviderManager
public List<String> getProviderNames(int[] providerTypes)
ExporttoSwingProviderManager
getProviderNames
in interface ExporttoSwingProviderManager
public List<ExporttoSwingProviderFactory> getProviderFactories()
ExporttoSwingProviderManager
ExporttoSwingProviderFactory
s.getProviderFactories
in interface ExporttoSwingProviderManager
getProviderFactories
in interface ProviderManager_WithGetFactories
getProviderFactories
in class AbstractProviderManager
ExporttoSwingProviderFactory
spublic List<ExporttoSwingProviderFactory> getProviderFactories(int[] providerTypes)
ExporttoSwingProviderManager
ExporttoSwingProviderFactory
s that support the
given factory types.getProviderFactories
in interface ExporttoSwingProviderManager
providerTypes
- the types of factoriesExporttoSwingManager.VECTORIAL_TABLE_WITH_GEOMETRY
,
ExporttoSwingManager.VECTORIAL_TABLE_WITHOUT_GEOMETRY
protected String getRegistryDescription()
getRegistryDescription
in class AbstractProviderManager
protected String getRegistryKey()
getRegistryKey
in class AbstractProviderManager
public ExporttoSwingProvider createExporttoSwingProvider(String providerName, FeatureStore featureStore, IProjection projection) throws ServiceException
ExporttoSwingProviderManager
ExporttoSwingProvider
that is used to export a
FeatureSet
.createExporttoSwingProvider
in interface ExporttoSwingProviderManager
providerName
- the name of the provider that has to be created.featureStore
- the source feature store. It can be used to fix some
parameters like the FeatureType
of the destination
FeatureStore
.projection
- the projection of the OutputDeviceAssigned
store.FeatureSet
.ServiceException
public ExporttoSwingProvider createExporttoSwingProvider(String providerName, FLyrVect vlayer) throws ServiceException
ExporttoSwingProviderManager
ExporttoSwingProvider
that is used to export a
FeatureSet
.createExporttoSwingProvider
in interface ExporttoSwingProviderManager
providerName
- the name of the provider that has to be created.vlayer
- the source vector layerFeatureSet
.ServiceException
public boolean support(String providerName, int providerType) throws ServiceException
ExporttoSwingProviderManager
support
in interface ExporttoSwingProviderManager
providerName
- the provider name.providerType
- the provider type. One of the constants defined in the
ExporttoSwingManager
.ServiceException
public void addProviderFactory(ProviderFactory providerFactory)
ProviderManager
ProviderFactory
to the registry.addProviderFactory
in interface ProviderManager
addProviderFactory
in class AbstractProviderManager
providerFactory
- to addpublic String getDescription(String providerName)
ExporttoSwingProviderManager
getDescription
in interface ExporttoSwingProviderManager
providerName
- the exportto provider.public boolean isProviderEnabled(ExporttoSwingProviderFactory factory)
ExporttoSwingProviderManager
isProviderEnabled
in interface ExporttoSwingProviderManager
factory
- of the provider to checkpublic void enableProvider(ExporttoSwingProviderFactory factory, boolean value)
ExporttoSwingProviderManager
enableProvider
in interface ExporttoSwingProviderManager
factory
- of the provider to enable or disablevalue
- if the provider must be enabled or disabledpublic ExporttoSwingProviderFactory getExporttoSwingProviderFactory(String name) throws ServiceException
ExporttoSwingProviderManager
getExporttoSwingProviderFactory
in interface ExporttoSwingProviderManager
name
- of the providerServiceException
- if there is an error getting the provider factorypublic ExporttoSwingPreferencesComponent createExporttoSwingProvidersPreferences()
ExporttoSwingProviderManager
createExporttoSwingProvidersPreferences
in interface ExporttoSwingProviderManager