|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.tasks.ags.na.NAFeaturesAsFeature
public class 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
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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(Graphic[] features)
Overwrites the current list of graphics NOTE: StopGraphic may also be used here |
void |
setFeatures(StopGraphic[] features)
Overwrites the current list of graphics |
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NAFeaturesAsFeature()
public NAFeaturesAsFeature(List<Graphic> features)
features
- The list of graphicspublic NAFeaturesAsFeature(List<Graphic> features, boolean hasZ, boolean doNotLocateOnRestrictedElements)
features
- The list of graphicshasZ
- true if graphics contain z valuesdoNotLocateOnRestrictedElements
- true if restricted elements should be ignoredpublic NAFeaturesAsFeature(String url)
url
- The url for the FeatureLayer (query built into url)public NAFeaturesAsFeature(String url, boolean hasZ, boolean doNotLocateOnRestrictedElements)
url
- The url for the FeatureLayer (query built into url)hasZ
- true if graphics contain z valuesdoNotLocateOnRestrictedElements
- true if restricted elements should be ignoredMethod Detail |
---|
public void addFeature(Graphic feature)
StopGraphic
may also be used here
feature
- The graphic to addpublic void addFeature(StopGraphic feature)
StopGraphic
to the list of graphics
feature
- The StopGraphic to addpublic void addFeatures(Graphic[] features)
StopGraphic
may also be used here
features
- The collection of graphics to addpublic void addFeatures(StopGraphic[] features)
StopGraphic
to the list of graphics
features
- The collection of StopGraphics to addpublic List<Graphic> getFeatures()
public void setFeatures(Graphic[] features)
StopGraphic
may also be used here
features
- The graphics that should override the current graphicspublic void setFeatures(StopGraphic[] features)
features
- The StopGraphics that should override the current graphicspublic void clearFeatures()
public SpatialReference getSpatialReference()
public void setSpatialReference(SpatialReference spatialRef)
spatialRef
- the spatial reference to use for translating the graphics to jsonpublic String getURL()
public void setURL(String url)
url
- the url for the querying a FeatureLayer (query built into url)public boolean isHasZ()
public void setHasZ(boolean hasZ)
hasZ
- true if graphics contain z valuespublic Boolean isDoNotLocateOnRestrictedElements()
public void setDoNotLocateOnRestrictedElements(Boolean doNotLocateOnRestrictedElements)
doNotLocateOnRestrictedElements
- true if restricted elements should be consideredpublic boolean isCompressedRequest()
public void setCompressedRequest(boolean compressedRequest)
compressedRequest
- true to send in compressed formatpublic String toJson() throws Exception
toJson
in interface NAFeatures
Exception
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |