public class SplineEditingProvider extends AbstractEditingProvider implements EditingProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLOSE_SPLINE |
protected boolean |
closeSpline |
protected FeatureStore |
featureStore |
static java.lang.String |
FINISH |
protected boolean |
finishSpline |
static java.lang.String |
KEY_CLOSE |
static java.lang.String |
KEY_FINISH |
static java.lang.String |
KEY_REMOVE_LAST_POINT |
protected EditingServiceParameter |
points |
static java.lang.String |
REMOVE_LAST_POINT |
protected java.util.List<Point> |
values |
LOGGERAGGREGATE, 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 |
|---|
SplineEditingProvider(ProviderServices services,
DynObject parameters)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Geometry |
finish()
Finalizes provider.
|
void |
finishAndStore()
Finalizes provider and stores the result to
FeatureStore of this
provider. |
DrawingStatus |
getDrawingStatus(Point mousePosition)
Gets state of drawing.
|
java.lang.String |
getName()
Gets provider name.
|
java.util.List<EditingServiceParameter> |
getParameters()
Gets a
List with all parameters of provider. |
java.lang.Object |
getValue(EditingServiceParameter parameter)
Return parameter's value
|
EditingServiceParameter |
next()
Gets next parameter needed by provider.
|
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.
|
void |
setValue(java.lang.Object value)
Sets value to provider.
|
void |
start()
Starts provider.
|
void |
stop()
Stops provider.
|
activate, getDefaultFeatureValues, getPreviewSymbol, getPreviewSymbol, getProviderServices, getSelectedFeaturesCopy, getValue, initDefaultValues, isEnabled, isShowPreviewSymbol, makeMultiPrimitiveIsNeeded, mustRestartAtFinish, restart, setDefaultFeatureValues, setShowPreviewSymbolsetProviderServicesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivate, getDefaultFeatureValues, getValue, initDefaultValues, isEnabled, isShowPreviewSymbol, mustRestartAtFinish, restart, setDefaultFeatureValues, setShowPreviewSymbolsetProviderServicespublic static final java.lang.String REMOVE_LAST_POINT
public static final java.lang.String FINISH
public static final java.lang.String CLOSE_SPLINE
public static final java.lang.String KEY_REMOVE_LAST_POINT
public static final java.lang.String KEY_FINISH
public static final java.lang.String KEY_CLOSE
protected EditingServiceParameter points
protected java.util.List<Point> values
protected boolean closeSpline
protected boolean finishSpline
protected FeatureStore featureStore
public SplineEditingProvider(ProviderServices services, DynObject parameters)
parameters - of service.services - available services. See EditingProviderServices.public EditingServiceParameter next()
EditingProvidernull if all
parameters have values.next in interface EditingProviderEditingServiceParameter object that represents the
next parameter.public DrawingStatus getDrawingStatus(Point mousePosition) throws DrawServiceException
EditingProviderDrawingStatus. List of
geometries of drawing status object can be different from final
geometries. Use this method to get a draft status information while user
is drawing.getDrawingStatus in interface EditingProvidermousePosition - Mouse position to draw geometries.DrawingStatus object with a list of geometries and
information.DrawServiceException - if there are some error creating geometries.public void stop()
throws StopServiceException
EditingProviderstop in interface EditingProviderStopServiceException - Stops provider initializing necessary parameters of provider.
This method is called when user cancels provider.public java.util.List<EditingServiceParameter> getParameters()
EditingProviderList with all parameters of provider. Each parameter
has name, description and types. See EditingServiceParameter.getParameters in interface EditingProviderEditingServiceParameter objects.public void setValue(EditingServiceParameter parameter, java.lang.Object value) throws InvalidEntryException
EditingProvidersetValue in interface EditingProvidersetValue in class AbstractEditingProviderparameter - EditingServiceParametervalue - Object to be set to EditingServiceParameterInvalidEntryException - If the next parameter needed does not accept this value.public void setValue(java.lang.Object value)
throws InvalidEntryException
EditingProvidersetValue in interface EditingProvidervalue - Object to be set to next EditingServiceParameterInvalidEntryException - If the next parameter needed does not accept this value.public Geometry finish() throws FinishServiceException
EditingProviderFeatureStore. Make sure that provider has all required
values.finish in interface EditingProviderFinishServiceException - if there are some error getting values,
creating geometries.public void finishAndStore()
throws FinishServiceException
EditingProviderFeatureStore of this
provider. Use this method to store the result of this service. Make sure
that service has all required values.finishAndStore in interface EditingProviderFinishServiceException - if there are some error getting values,
creating geometries or inserting/updating/removing geometries
from feature store.public void start()
throws StartServiceException
EditingProviderstart in interface EditingProviderStartServiceException - if there are some error starting service.public java.lang.String getName()
EditingProvidergetName in interface EditingProviderpublic java.lang.Object getValue(EditingServiceParameter parameter)
EditingProvidergetValue in interface EditingProvidergetValue in class AbstractEditingProvider