public abstract class AbstractEditingProvider extends AbstractProvider implements EditingProvider, Geometry.TYPES, Geometry.SUBTYPES
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
AGGREGATE, ARC, CIRCLE, CIRCUMFERENCE, COMPLEX, CURVE, ELLIPSE, ELLIPTICARC, FILLEDSPLINE, GEOMETRY, LINE, MULTICURVE, MULTILINE, MULTIPOINT, MULTIPOLYGON, MULTISOLID, MULTISURFACE, NULL, PERIELLIPSE, POINT, POLYGON, RING, SOLID, SPLINE, SURFACE, UNKNOWN
Constructor and Description |
---|
AbstractEditingProvider(ProviderServices providerServices) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activete the provider
|
EditableFeature |
getDefaultFeatureValues() |
ISymbol |
getPreviewSymbol() |
ISymbol |
getPreviewSymbol(Feature feature) |
protected EditingProviderServices |
getProviderServices()
Returns the
ProviderServices to be used by this Provider . |
java.util.List<Feature> |
getSelectedFeaturesCopy(FeatureSelection selection) |
java.lang.Object |
getValue(EditingServiceParameter parameter)
Return parameter's value
|
java.lang.Object |
getValue(EditingServiceParameter parameter,
EditingServiceParameter.TYPE type)
Return parameter's value of type
|
void |
initDefaultValues() |
boolean |
isEnabled(EditingServiceParameter parameter)
Return true if the parameter is enabled
|
boolean |
isShowPreviewSymbol() |
protected Geometry |
makeMultiPrimitiveIsNeeded(FeatureStore featureStore,
Primitive primitive) |
boolean |
mustRestartAtFinish() |
void |
restart()
Restarts provider.
|
void |
setDefaultFeatureValues(EditableFeature feature) |
void |
setShowPreviewSymbol(boolean showPreviewSymbol) |
abstract void |
setValue(EditingServiceParameter parameter,
java.lang.Object value)
Sets value into a paremeter of the provider.The value will be put in the parameter of this provider.
|
setProviderServices
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, finishAndStore, getDrawingStatus, getName, getParameters, next, setValue, start, stop
setProviderServices
public AbstractEditingProvider(ProviderServices providerServices)
public boolean isEnabled(EditingServiceParameter parameter)
EditingProvider
isEnabled
in interface EditingProvider
public abstract void setValue(EditingServiceParameter parameter, java.lang.Object value) throws InvalidEntryException
EditingProvider
setValue
in interface EditingProvider
parameter
- EditingServiceParameter
value
- Object to be set to EditingServiceParameter
InvalidEntryException
- If the next parameter needed does not accept this value.public void activate()
EditingProvider
activate
in interface EditingProvider
public java.lang.Object getValue(EditingServiceParameter parameter)
EditingProvider
getValue
in interface EditingProvider
public java.lang.Object getValue(EditingServiceParameter parameter, EditingServiceParameter.TYPE type)
EditingProvider
getValue
in interface EditingProvider
protected EditingProviderServices getProviderServices()
AbstractProvider
ProviderServices
to be used by this Provider
.getProviderServices
in class AbstractProvider
public void setDefaultFeatureValues(EditableFeature feature)
setDefaultFeatureValues
in interface EditingProvider
public EditableFeature getDefaultFeatureValues()
getDefaultFeatureValues
in interface EditingProvider
public ISymbol getPreviewSymbol()
public void setShowPreviewSymbol(boolean showPreviewSymbol)
setShowPreviewSymbol
in interface EditingProvider
public boolean isShowPreviewSymbol()
isShowPreviewSymbol
in interface EditingProvider
public void restart() throws StartServiceException, InvalidEntryException, StopServiceException
EditingProvider
restart
in interface EditingProvider
StartServiceException
- if there are some error starting service.InvalidEntryException
- if the entry of provider is not validStopServiceException
public void initDefaultValues()
initDefaultValues
in interface EditingProvider
public java.util.List<Feature> getSelectedFeaturesCopy(FeatureSelection selection)
public boolean mustRestartAtFinish()
mustRestartAtFinish
in interface EditingProvider
protected Geometry makeMultiPrimitiveIsNeeded(FeatureStore featureStore, Primitive primitive) throws DataException, CreateGeometryException
DataException
CreateGeometryException