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
Providers. |
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
ExporttoSwingProviderFactorys. |
List<ExporttoSwingProviderFactory> |
getProviderFactories(int[] providerTypes)
Returns the
ExporttoSwingProviderFactorys 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, getProviderFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateProvider, createServiceParameterspublic ProviderServices createProviderServices(Service service)
ProviderManagerProviderServices object to be used by the
Providers.createProviderServices in interface ProviderManagerservice - to create the related ProviderServices with.public List<String> getProviderNames()
getProviderNames in interface ExporttoSwingProviderManagerpublic List<String> getProviderNames(int[] providerTypes)
ExporttoSwingProviderManagergetProviderNames in interface ExporttoSwingProviderManagerpublic List<ExporttoSwingProviderFactory> getProviderFactories()
ExporttoSwingProviderManagerExporttoSwingProviderFactorys.getProviderFactories in interface ExporttoSwingProviderManagergetProviderFactories in interface ProviderManager_WithGetFactoriesgetProviderFactories in class AbstractProviderManagerExporttoSwingProviderFactoryspublic List<ExporttoSwingProviderFactory> getProviderFactories(int[] providerTypes)
ExporttoSwingProviderManagerExporttoSwingProviderFactorys that support the
given factory types.getProviderFactories in interface ExporttoSwingProviderManagerproviderTypes - the types of factoriesExporttoSwingManager.VECTORIAL_TABLE_WITH_GEOMETRY,
ExporttoSwingManager.VECTORIAL_TABLE_WITHOUT_GEOMETRYprotected String getRegistryDescription()
getRegistryDescription in class AbstractProviderManagerprotected String getRegistryKey()
getRegistryKey in class AbstractProviderManagerpublic ExporttoSwingProvider createExporttoSwingProvider(String providerName, FeatureStore featureStore, IProjection projection) throws ServiceException
ExporttoSwingProviderManagerExporttoSwingProvider that is used to export a
FeatureSet.createExporttoSwingProvider in interface ExporttoSwingProviderManagerproviderName - 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.ServiceExceptionpublic ExporttoSwingProvider createExporttoSwingProvider(String providerName, FLyrVect vlayer) throws ServiceException
ExporttoSwingProviderManagerExporttoSwingProvider that is used to export a
FeatureSet.createExporttoSwingProvider in interface ExporttoSwingProviderManagerproviderName - the name of the provider that has to be created.vlayer - the source vector layerFeatureSet.ServiceExceptionpublic boolean support(String providerName, int providerType) throws ServiceException
ExporttoSwingProviderManagersupport in interface ExporttoSwingProviderManagerproviderName - the provider name.providerType - the provider type. One of the constants defined in the
ExporttoSwingManager.ServiceExceptionpublic void addProviderFactory(ProviderFactory providerFactory)
ProviderManagerProviderFactory to the registry.addProviderFactory in interface ProviderManageraddProviderFactory in class AbstractProviderManagerproviderFactory - to addpublic String getDescription(String providerName)
ExporttoSwingProviderManagergetDescription in interface ExporttoSwingProviderManagerproviderName - the exportto provider.public boolean isProviderEnabled(ExporttoSwingProviderFactory factory)
ExporttoSwingProviderManagerisProviderEnabled in interface ExporttoSwingProviderManagerfactory - of the provider to checkpublic void enableProvider(ExporttoSwingProviderFactory factory, boolean value)
ExporttoSwingProviderManagerenableProvider in interface ExporttoSwingProviderManagerfactory - of the provider to enable or disablevalue - if the provider must be enabled or disabledpublic ExporttoSwingProviderFactory getExporttoSwingProviderFactory(String name) throws ServiceException
ExporttoSwingProviderManagergetExporttoSwingProviderFactory in interface ExporttoSwingProviderManagername - of the providerServiceException - if there is an error getting the provider factorypublic ExporttoSwingPreferencesComponent createExporttoSwingProvidersPreferences()
ExporttoSwingProviderManagercreateExporttoSwingProvidersPreferences in interface ExporttoSwingProviderManager