public interface EditingProviderServices extends ProviderServices
Modifier and Type | Method and Description |
---|---|
void |
addAngleToDrawingStatus(DefaultDrawingStatus drawingStatus,
ISymbol textSymbol,
Point vertex,
Point ray1,
Point ray2,
int subtype)
Add angle info to drawing status
|
double |
angleDistance(double angle1,
double angle2)
Gets distance between two angles.
|
Arc |
createArc(Point center,
double radius,
double startAngle,
double angleExt,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Arc |
createArc(Point start,
Point middle,
Point end,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Circle |
createCircle(EuclideanLine2D line1,
EuclideanLine2D line2,
Point point,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Circle |
createCircle(Geometry geometry1,
Geometry geometry2,
double radius,
Point firstPoint,
Point secondPoint,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Circle |
createCircle(Point center,
double radius,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Circle |
createCircle(Point firstPoint,
Point secondPoint,
Point thirdPoint,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Circle |
createCircle(Point firstPoint,
Point secondPoint,
Point thirdPoint,
Point fourthPoint,
Point fifthPoint,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Arc |
createEllipse(Point firstPointAxisA,
Point secondPointAxisA,
double halfLengthAxisB,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Ellipse |
createFilledEllipse(Point firstPointAxisA,
Point secondPointAxisA,
double halfLengthAxisB,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Line |
createLine(double x1,
double y1,
double x2,
double y2,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Line |
createLine(Point p1,
Point p2,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
EditableFeature |
createNewFeature(FeatureStore featureStore) |
Point |
createPoint(double x,
double y,
int subtype)
Deprecated.
Use createPoint from GeometryManager
|
Spline |
createSpline(java.util.List<Point> points,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
void |
deleteFeatureFromFeatureSet(Feature feature,
FeatureStore featureStore,
FeatureSet featureSet)
Deletes the feature from feature set.
|
void |
deleteFeatureFromFeatureStore(Feature feature,
FeatureStore featureStore)
Deletes the feature from feature store.
|
double |
getAngle(Point start,
Point end)
Gets angle between two points.
|
Point |
getCenter(Point a,
Point b,
Point c,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
EditableFeature |
getDefaultFeatureValues() |
Feature |
getFeature(Point point,
FeatureStore store,
MapContext mapContext)
Return a feature from store whose default geometry intersects with the point.
|
EditableFeature |
getFeatureCopyWithoutUniqueIndex(FeatureStore featureStore,
Feature feature)
Returns a copy of a feature without primary keys data
|
Geometry |
getGeometry(Point point,
FeatureStore store,
MapContext mapContext)
Return a geometry from store that intersects with the point.
|
Geometry |
getGeometry(Point point,
FeatureStore store,
MapContext mapContext,
java.util.List<Feature> excludeFeatures)
Return a geometry from store that intersects with the point excluding any features.
|
Geometry |
getGeometryOfVisibleLayers(Point point,
FeatureStore store,
MapContext mapContext)
Return a geometry that intersects with the point from the visible layers
if it can't be found in the feature store.
|
Geometry |
getGeometryOfVisibleLayers(Point point,
FeatureStore store,
MapContext mapContext,
java.util.List<Feature> excludeFeatures)
Return a geometry that intersects with the point from the visible layers
if it can't be found in the feature store excluding any features.
|
GeometryType |
getGeomType(FeatureStore featureStore)
Gets
GeometryType of the feature store received as parameter. |
Point |
getIntersection(Point[] lineA,
Point[] lineB,
int subtype)
Deprecated.
Use getIntersection method from EuclideanLine2D package
|
java.lang.Double[] |
getLineParams(Point point,
Point nextPoint)
Deprecated.
Use EuclideanLine2D
|
Point |
getMidPoint(Point a,
Point b,
int subtype)
Deprecated.
Use same method in GeometryUtils
|
Point[] |
getPerpendicular(java.lang.Double m,
java.lang.Double b,
Point point,
int subtype)
Deprecated.
Use getPerpendicular method from EuclideanLine2D package
|
ISymbol |
getPreviewSymbol() |
ISymbol |
getPreviewSymbol(Feature feature) |
EditingService |
getService()
Returns the
Service at the API level. |
int |
getSubType(FeatureStore featureStore)
Gets
Geometry.SUBTYPES of the feature store received as parameter. |
void |
insertFeatureIntoFeatureStore(Feature feature,
FeatureStore featureStore)
Inserts the feature into feature store.
|
void |
insertGeometryIntoFeatureStore(Geometry geometry,
FeatureStore featureStore)
Inserts the geometry into feature store.
|
java.lang.String |
makeConsoleMessage(java.lang.String preText,
EditingServiceParameterOptions options) |
java.lang.String |
makeConsoleMessage(java.lang.String preText,
java.util.Map<java.lang.String,java.lang.String> options)
Makes a console message.
|
void |
setDefaultFeatureValues(EditableFeature feature) |
void |
updateFeatureInFeatureStore(Feature feature,
FeatureStore featureStore)
Updates the feature received as parameter in feature store.
|
getParameters
java.lang.String makeConsoleMessage(java.lang.String preText, java.util.Map<java.lang.String,java.lang.String> options)
preText
- i18n key of first part of message.options
- Map with accepted options. Keys of map should be first
letter of option and value of map should be an i18n key. For example, a
valid map could be <"A","arc_mode">, <"C","close_polyline">java.lang.String makeConsoleMessage(java.lang.String preText, EditingServiceParameterOptions options)
void insertFeatureIntoFeatureStore(Feature feature, FeatureStore featureStore)
feature
- to be insertfeatureStore
- where feature will be insertvoid insertGeometryIntoFeatureStore(Geometry geometry, FeatureStore featureStore)
geometry
- to be insertfeatureStore
- where geometry will be insertvoid deleteFeatureFromFeatureStore(Feature feature, FeatureStore featureStore)
feature
- featureStore
- void deleteFeatureFromFeatureSet(Feature feature, FeatureStore featureStore, FeatureSet featureSet)
feature
- featureStore
- featureSet
- void updateFeatureInFeatureStore(Feature feature, FeatureStore featureStore)
feature
- to be updatedfeatureStore
- where feature will be updated@Deprecated Circle createCircle(Point center, double radius, int subtype) throws CreateGeometryException
center
- of new circleradius
- of new circlesubtype
- subtype of circle. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Circle createCircle(Point firstPoint, Point secondPoint, Point thirdPoint, int subtype) throws CreateGeometryException
firstPoint
- of circlesecondPoint
- of circlethirdPoint
- of circlesubtype
- subtype of circle. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Circle createCircle(Point firstPoint, Point secondPoint, Point thirdPoint, Point fourthPoint, Point fifthPoint, int subtype) throws CreateGeometryException
firstPoint
- secondPoint
- thirdPoint
- fourthPoint
- fifthPoint
- subtype
- subtype of circle. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Circle createCircle(EuclideanLine2D line1, EuclideanLine2D line2, Point point, int subtype) throws CreateGeometryException
line1
- A tangent lineline2
- Another tangent linepoint
- A point near the center of the circle.subtype
- subtype of circle. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Circle createCircle(Geometry geometry1, Geometry geometry2, double radius, Point firstPoint, Point secondPoint, int subtype) throws CreateGeometryException
geometry1
- A tangent geometrygeometry2
- Another tangent geometryradius
- the radius of the cicle.firstPoint
- a point near tangent point of geometry1secondPoint
- a point near tangent point of geometry2subtype
- subtype of circle. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Arc createArc(Point center, double radius, double startAngle, double angleExt, int subtype) throws CreateGeometryException
center
- center of arc.radius
- of arc.startAngle
- of arc in radiansangleExt
- of arc in radianssubtype
- subtype of arc. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Arc createArc(Point start, Point middle, Point end, int subtype) throws BaseException
start
- point of arcmiddle
- point of arc. It can be any point of arc.end
- point of arcsubtype
- of arc. See Geometry.SUBTYPES
BaseException
@Deprecated Arc createEllipse(Point firstPointAxisA, Point secondPointAxisA, double halfLengthAxisB, int subtype) throws CreateGeometryException
firstPointAxisA
- first point of A axissecondPointAxisA
- second point of B axishalfLengthAxisB
- half length of B axissubtype
- of ellipse See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Ellipse createFilledEllipse(Point firstPointAxisA, Point secondPointAxisA, double halfLengthAxisB, int subtype) throws CreateGeometryException
firstPointAxisA
- first point of A axissecondPointAxisA
- second point of B axishalfLengthAxisB
- half length of B axissubtype
- of ellipse See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Point createPoint(double x, double y, int subtype) throws CreateGeometryException
x
- The X coordinatey
- The y coordinatesubtype
- of point. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Line createLine(double x1, double y1, double x2, double y2, int subtype) throws CreateGeometryException
x1
- The X1 coordinatey1
- The y1 coordinatex2
- The X2 coordinatey2
- The y2 coordinatesubtype
- of line. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Line createLine(Point p1, Point p2, int subtype) throws CreateGeometryException
p1
- First pointp2
- Second pointsubtype
- of line. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Spline createSpline(java.util.List<Point> points, int subtype) throws CreateGeometryException
points
- subtype
- CreateGeometryException
int getSubType(FeatureStore featureStore) throws DataException
Geometry.SUBTYPES
of the feature store received as parameter.featureStore
- DataException
- if there some problem getting subtype.GeometryType getGeomType(FeatureStore featureStore) throws DataException
GeometryType
of the feature store received as parameter.featureStore
- DataException
- if there some problem getting subtype.EditableFeature getFeatureCopyWithoutUniqueIndex(FeatureStore featureStore, Feature feature) throws DataException
featureStore
- feature
- DataException
- if there some problem getting subtype.@Deprecated Point getCenter(Point a, Point b, Point c, int subtype) throws CreateGeometryException
a
- Point oneb
- Point twoc
- Point threesubtype
- of point created. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Point getMidPoint(Point a, Point b, int subtype) throws CreateGeometryException
a
- Point oneb
- Point twosubtype
- of point created. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated java.lang.Double[] getLineParams(Point point, Point nextPoint)
point
- of linenextPoint
- of line@Deprecated Point[] getPerpendicular(java.lang.Double m, java.lang.Double b, Point point, int subtype) throws CreateGeometryException
m
- slope of lineb
- y-intercep of linepoint
- Point crossed by perpendicularsubtype
- of perpendicular points. See Geometry.SUBTYPES
CreateGeometryException
@Deprecated Point getIntersection(Point[] lineA, Point[] lineB, int subtype) throws CreateGeometryException
lineA
- lineB
- subtype
- of intersection point. See Geometry.SUBTYPES
CreateGeometryException
double getAngle(Point start, Point end) throws GeometryOperationNotSupportedException, GeometryOperationException
start
- end
- GeometryOperationNotSupportedException
GeometryOperationException
double angleDistance(double angle1, double angle2)
angle1
- angle2
- Feature getFeature(Point point, FeatureStore store, MapContext mapContext)
point
- store
- mapContext
- Geometry getGeometry(Point point, FeatureStore store, MapContext mapContext)
point
- store
- mapContext
- Geometry getGeometry(Point point, FeatureStore store, MapContext mapContext, java.util.List<Feature> excludeFeatures)
point
- store
- mapContext
- excludeFeatures
- Geometry getGeometryOfVisibleLayers(Point point, FeatureStore store, MapContext mapContext)
point
- store
- mapContext
- Geometry getGeometryOfVisibleLayers(Point point, FeatureStore store, MapContext mapContext, java.util.List<Feature> excludeFeatures)
point
- store
- mapContext
- excludeFeatures
- void addAngleToDrawingStatus(DefaultDrawingStatus drawingStatus, ISymbol textSymbol, Point vertex, Point ray1, Point ray2, int subtype) throws CreateGeometryException, GeometryOperationNotSupportedException, GeometryOperationException
drawingStatus
- vertex
- ray1
- ray2
- subtype
- CreateGeometryException
GeometryOperationNotSupportedException
GeometryOperationException
void setDefaultFeatureValues(EditableFeature feature)
EditableFeature getDefaultFeatureValues()
EditableFeature createNewFeature(FeatureStore featureStore)
ISymbol getPreviewSymbol()
EditingService getService()
ProviderServices
Service
at the API level.getService
in interface ProviderServices