Class GraphicsOverlayFenceParameters
GraphicsOverlay.
The GraphicsOverlay used to create a GraphicsOverlayFenceParameters provides a
dynamic set of graphics that define targets for a FenceGeotrigger condition. For
example, if the condition is "notify me when my position comes within 50 meters of one of my
target areas", "my target areas" are the graphics in the overlay. Changes to the
GraphicsOverlay will be reflected in the fences tracked by the Geotrigger.
A GraphicsOverlayFenceParameters allows you to track all of the graphics displayed on
the GeoView in a GraphicsOverlay. This allows you to track new target areas
as they are added to the view and to stop tracking areas that are removed. If you wish to
track a subset of the graphics displayed in a GraphicsOverlay, or graphics which are not
displayed in a GeoView, use a GraphicFenceParameters.
The graphics can have point, line, or polygon geometry. A FenceParameters.getBufferDistance() must be
supplied for points or lines.
- Since:
- 100.12.0
-
Constructor Summary
ConstructorsConstructorDescriptionGraphicsOverlayFenceParameters(GraphicsOverlay graphicsOverlay) Creates a GraphicsOverlayFenceParameters using all of the graphics in theGraphicsOverlay.GraphicsOverlayFenceParameters(GraphicsOverlay graphicsOverlay, double bufferDistance) Creates a GraphicsOverlayFenceParameters using all of the graphics in theGraphicsOverlaybuffered by the buffer distance. -
Method Summary
Modifier and TypeMethodDescriptionGets theGraphicsOverlayto use in the GraphicsOverlayFenceParameters.Methods inherited from class com.esri.arcgisruntime.geotriggers.FenceParameters
createFromGeoElement, getBufferDistance
-
Constructor Details
-
GraphicsOverlayFenceParameters
Creates a GraphicsOverlayFenceParameters using all of the graphics in theGraphicsOverlay.Note that the GraphicsOverlayFenceParameters will respect any changes made to the supplied graphics overlay - for example, if a
Graphicis removed or added to the originalGraphicsOverlay, it will be added or removed as a fence.- Parameters:
graphicsOverlay- theGraphicsOverlay, to use as the source of graphics for theGraphicFenceParameters- Throws:
IllegalArgumentException- if graphicsOverlay is null- Since:
- 100.12.0
-
GraphicsOverlayFenceParameters
Creates a GraphicsOverlayFenceParameters using all of the graphics in theGraphicsOverlaybuffered by the buffer distance.Note that the GraphicsOverlayFenceParameters will respect any changes made to the supplied graphics overlay - for example, if a
Graphicis removed or added to the originalGraphicsOverlay, it will be added or removed as a fence.- Parameters:
graphicsOverlay- theGraphicsOverlay, to use as the source of graphics for theGraphicFenceParametersbufferDistance- a buffer distance in meters to apply to the graphics when checking if aGeotriggercondition is met- Throws:
IllegalArgumentException- if graphicsOverlay is null- Since:
- 100.12.0
-
-
Method Details
-
getGraphicsOverlay
Gets theGraphicsOverlayto use in the GraphicsOverlayFenceParameters.Changes to the
GraphicsOverlaywill be reflected in the fences tracked by theGeotrigger.- Returns:
- the
GraphicsOverlayto use in the GraphicsOverlayFenceParameters - Since:
- 100.12.0
-