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. |
Map<String,String> |
getDefaultValues(String name) |
protected String |
getRegistryDescription() |
protected String |
getRegistryKey() |
EditingServiceInfo |
getServiceInfo(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(String name) |
void |
registerDefaultValues(String provider,
ClassLoader loader) |
void |
registerDefaultValues(String provider,
Map values) |
void |
registerIcon(String group,
String name,
ClassLoader loader,
String provider)
Utility method used by providers to register icons.
|
void |
registerSymbol(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 String getRegistryKey()
getRegistryKey
in class AbstractProviderManager
protected 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(String name) throws ServiceInformationException
EditingProviderManager
getServiceInfo
in interface EditingProviderManager
EditingServiceInfo
object that contains the
information. EditingServiceInfo
.ServiceInformationException
- if there is an error getting
information of service.public void registerIcon(String group, String name, ClassLoader loader, 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(String name, ISymbol symbol)
EditingProviderManager
registerSymbol
in interface EditingProviderManager
public ISymbol getSymbol(String name)
getSymbol
in interface EditingProviderManager
public void registerDefaultValues(String provider, Map values)
registerDefaultValues
in interface EditingProviderManager
public void registerDefaultValues(String provider, ClassLoader loader)
registerDefaultValues
in interface EditingProviderManager
public Map<String,String> getDefaultValues(String name)
getDefaultValues
in interface EditingProviderManager