java.lang.Object | |
↳ | com.esri.core.tasks.ags.na.NAFeaturesAsFeature |
Class containing a set of stops, facilities, incidents, or barriers,
represented as Graphics. For stops, users may use StopGraphic
for further convenience. May also use a URL to query a FeatureLayer
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NAFeaturesAsFeature()
Empty constructor
| |||||||||||
NAFeaturesAsFeature(List<Graphic> features)
Constructor taking the list of graphics
| |||||||||||
NAFeaturesAsFeature(List<Graphic> features, boolean hasZ, boolean doNotLocateOnRestrictedElements)
Constructor taking the list of graphics, as well as booleans to indicate
inclusion of z values and whether or not restricted elements should be
eligible to be located on
| |||||||||||
NAFeaturesAsFeature(String url)
Constructor taking a url for querying features
| |||||||||||
NAFeaturesAsFeature(String url, boolean hasZ, boolean doNotLocateOnRestrictedElements)
Constructor taking url for query features, as well as booleans to indicate
inclusion of z values and whether or not restricted elements should be
eligible to be located on
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addFeature(Graphic feature)
Adds a graphic to the list of graphics
NOTE:
StopGraphic may also be used here | ||||||||||
void |
addFeature(StopGraphic feature)
Adds a
StopGraphic to the list of graphics | ||||||||||
void |
addFeatures(Graphic[] features)
Adds a collection of graphics to the list of graphics
NOTE:
StopGraphic may also be used here | ||||||||||
void |
addFeatures(StopGraphic[] features)
Adds a a collection of
StopGraphic to the list of graphics | ||||||||||
void |
clearFeatures()
Clears out the list of graphics
| ||||||||||
boolean | equals(Object obj) | ||||||||||
List<Graphic> |
getFeatures()
Retrieves the list of graphics
| ||||||||||
SpatialReference |
getSpatialReference()
Gets the spatial reference to use for translating the graphics to json
| ||||||||||
String |
getURL()
Gets the url for the querying a FeatureLayer (query built into url)
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isCompressedRequest()
Gets whether or not to send point stops/barriers in a compressed format
NOTE: This can only be used for POINT graphics.
| ||||||||||
Boolean |
isDoNotLocateOnRestrictedElements()
Gets whether or not to consider restricted elements when locating
| ||||||||||
boolean |
isHasZ()
Gets whether or not these graphics contain z values
| ||||||||||
void |
setCompressedRequest(boolean compressedRequest)
Sets whether or not to send point stops/barriers in a compressed format
NOTE: This can only be used for POINT graphics.
| ||||||||||
void |
setDoNotLocateOnRestrictedElements(Boolean doNotLocateOnRestrictedElements)
Sets whether or not to consider restricted elements when locating
| ||||||||||
void |
setFeatures(StopGraphic[] features)
Overwrites the current list of graphics
| ||||||||||
void |
setFeatures(Graphic[] features)
Overwrites the current list of graphics
NOTE:
StopGraphic may also be used here | ||||||||||
void |
setHasZ(boolean hasZ)
Sets whether or not these graphics contain z values
| ||||||||||
void |
setSpatialReference(SpatialReference spatialRef)
Sets the spatial reference to use for translating the graphics to json
| ||||||||||
void |
setURL(String url)
Sets the url for the querying a FeatureLayer (query built into url)
| ||||||||||
String |
toJson()
Translates all fields into a JSON object representation
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.esri.core.tasks.ags.na.NAFeatures
|
Empty constructor
Constructor taking the list of graphics
features | The list of graphics |
---|
Constructor taking the list of graphics, as well as booleans to indicate inclusion of z values and whether or not restricted elements should be eligible to be located on
features | The list of graphics |
---|---|
hasZ | true if graphics contain z values |
doNotLocateOnRestrictedElements | true if restricted elements should be ignored |
Constructor taking a url for querying features
url | The url for the FeatureLayer (query built into url) |
---|
Constructor taking url for query features, as well as booleans to indicate inclusion of z values and whether or not restricted elements should be eligible to be located on
url | The url for the FeatureLayer (query built into url) |
---|---|
hasZ | true if graphics contain z values |
doNotLocateOnRestrictedElements | true if restricted elements should be ignored |
Adds a graphic to the list of graphics
NOTE: StopGraphic
may also be used here
feature | The graphic to add |
---|
Adds a StopGraphic
to the list of graphics
feature | The StopGraphic to add |
---|
Adds a collection of graphics to the list of graphics
NOTE: StopGraphic
may also be used here
features | The collection of graphics to add |
---|
Adds a a collection of StopGraphic
to the list of graphics
features | The collection of StopGraphics to add |
---|
Clears out the list of graphics
Retrieves the list of graphics
Gets the spatial reference to use for translating the graphics to json
Gets the url for the querying a FeatureLayer (query built into url)
Gets whether or not to send point stops/barriers in a compressed format NOTE: This can only be used for POINT graphics.
Gets whether or not to consider restricted elements when locating
Gets whether or not these graphics contain z values
Sets whether or not to send point stops/barriers in a compressed format NOTE: This can only be used for POINT graphics.
compressedRequest | true to send in compressed format |
---|
Sets whether or not to consider restricted elements when locating
doNotLocateOnRestrictedElements | true if restricted elements should be considered |
---|
Overwrites the current list of graphics
features | The StopGraphics that should override the current graphics |
---|
Overwrites the current list of graphics
NOTE: StopGraphic
may also be used here
features | The graphics that should override the current graphics |
---|
Sets whether or not these graphics contain z values
hasZ | true if graphics contain z values |
---|
Sets the spatial reference to use for translating the graphics to json
spatialRef | the spatial reference to use for translating the graphics to json |
---|
Sets the url for the querying a FeatureLayer (query built into url)
url | the url for the querying a FeatureLayer (query built into url) |
---|
Translates all fields into a JSON object representation
Exception |
---|