public class DefaultEditingServiceinfo extends java.lang.Object implements EditingServiceInfo
Constructor and Description |
---|
DefaultEditingServiceinfo(java.lang.String name,
java.lang.String description,
boolean createsNewGeometries,
java.awt.Image mouseCursor,
int[] supportedPrimitiveGeometryType) |
Modifier and Type | Method and Description |
---|---|
boolean |
createsNewGeometries()
Returns if service creates new geometries.
|
java.lang.String |
getDescription()
Gets description of service.
|
java.awt.Image |
getMouseIcon()
Get mouse icon associated to service.
|
java.lang.String |
getName()
Gets name of service.
|
EditingServiceParameter |
getParameterInfo(java.lang.String parameterName)
Gets read only information about a parameter of this service.
|
java.util.List<EditingServiceParameter> |
getParameters()
Gets a
List with all parameters of service. |
int[] |
getSupportedPrimitiveGeometryTypes()
Gets supported primitive geometry types of service.
|
boolean |
isCompatibleWith(GeometryType geoType)
Returns if service is compatible with the geometry type received as
parameter.
|
public DefaultEditingServiceinfo(java.lang.String name, java.lang.String description, boolean createsNewGeometries, java.awt.Image mouseCursor, int[] supportedPrimitiveGeometryType)
public boolean createsNewGeometries()
EditingServiceInfo
createsNewGeometries
in interface EditingServiceInfo
public java.lang.String getDescription()
EditingServiceInfo
getDescription
in interface EditingServiceInfo
public java.awt.Image getMouseIcon()
EditingServiceInfo
getMouseIcon
in interface EditingServiceInfo
public java.lang.String getName()
EditingServiceInfo
getName
in interface EditingServiceInfo
public java.util.List<EditingServiceParameter> getParameters()
EditingServiceInfo
List
with all parameters of service. Each parameter
has name, description and types. See EditingServiceParameter
.getParameters
in interface EditingServiceInfo
EditingServiceParameter
objects.public int[] getSupportedPrimitiveGeometryTypes()
EditingServiceInfo
Geometry.TYPES
.getSupportedPrimitiveGeometryTypes
in interface EditingServiceInfo
public EditingServiceParameter getParameterInfo(java.lang.String parameterName)
EditingServiceInfo
EditingServiceParameter
.getParameterInfo
in interface EditingServiceInfo
parameterName
- Name of parameter.EditingServiceParameter
object of parameter.public boolean isCompatibleWith(GeometryType geoType) throws ServiceInformationException
EditingServiceInfo
isCompatibleWith
in interface EditingServiceInfo
geoType
- see GeometryType
ServiceInformationException