public class DefaultEditingProviderManager extends AbstractProviderManager implements EditingProviderManager
Constructor and Description |
---|
DefaultEditingProviderManager() |
Modifier and Type | Method and Description |
---|---|
Provider |
createProvider(DynObject serviceParameters,
ProviderServices providerServices)
Creates a new
Provider . |
ProviderServices |
createProviderServices(Service service)
Creates a new
ProviderServices object to be used by the
Provider s. |
java.util.Map<java.lang.String,java.lang.String> |
getDefaultValues(java.lang.String name) |
java.util.List<EditableFeature> |
getFeaturesFromClipboard(EditingProviderServices providerServices,
FeatureStore store) |
java.util.List<Geometry> |
getGeometriesFromClipboard() |
protected java.lang.String |
getRegistryDescription() |
protected java.lang.String |
getRegistryKey() |
EditingServiceInfo |
getServiceInfo(java.lang.String name)
Gets read only information about a service such as if creates new
geometries, name, description, supported types, mouse icon, parameters
and
information about its parameters.
|
ISymbol |
getSymbol(java.lang.String name) |
void |
registerDefaultValues(java.lang.String provider,
java.lang.ClassLoader loader) |
void |
registerDefaultValues(java.lang.String provider,
java.util.Map values) |
void |
registerIcon(java.lang.String group,
java.lang.String name,
java.lang.ClassLoader loader,
java.lang.String provider)
Utility method used by providers to register icons.
|
void |
registerSymbol(java.lang.String name,
ISymbol symbol)
Register a symbol in a symbol's map with name as key
|
addProviderFactory, createServiceParameters, getProviderFactories, getProviderFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProviderFactory, 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.protected java.lang.String getRegistryKey()
getRegistryKey
in class AbstractProviderManager
protected java.lang.String getRegistryDescription()
getRegistryDescription
in class AbstractProviderManager
public Provider createProvider(DynObject serviceParameters, ProviderServices providerServices) throws ServiceException
ProviderManager
Provider
.createProvider
in interface ProviderManager
createProvider
in class AbstractProviderManager
serviceParameters
- for the Provider
providerServices
- to be used by the Provider
Provider
ServiceException
- if the parameters are not valid or there is an error creating
the Provider
public EditingServiceInfo getServiceInfo(java.lang.String name) throws ServiceInformationException
EditingProviderManager
getServiceInfo
in interface EditingProviderManager
name
- service name to get the service informationEditingServiceInfo
object that contains the
information. EditingServiceInfo
.ServiceInformationException
- if there is an error getting
information of service.public void registerIcon(java.lang.String group, java.lang.String name, java.lang.ClassLoader loader, java.lang.String provider)
EditingProviderManager
registerIcon
in interface EditingProviderManager
group
- of icon. Use vectorediting-tools.name
- of icon.loader
- classloader of provider.provider
- of iconpublic void registerSymbol(java.lang.String name, ISymbol symbol)
EditingProviderManager
registerSymbol
in interface EditingProviderManager
public ISymbol getSymbol(java.lang.String name)
getSymbol
in interface EditingProviderManager
public void registerDefaultValues(java.lang.String provider, java.util.Map values)
registerDefaultValues
in interface EditingProviderManager
public void registerDefaultValues(java.lang.String provider, java.lang.ClassLoader loader)
registerDefaultValues
in interface EditingProviderManager
public java.util.Map<java.lang.String,java.lang.String> getDefaultValues(java.lang.String name)
getDefaultValues
in interface EditingProviderManager
public java.util.List<Geometry> getGeometriesFromClipboard()
getGeometriesFromClipboard
in interface EditingProviderManager
public java.util.List<EditableFeature> getFeaturesFromClipboard(EditingProviderServices providerServices, FeatureStore store)
getFeaturesFromClipboard
in interface EditingProviderManager