|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.networkanalyst.INAStreetDirectionsContainerProxy
public class INAStreetDirectionsContainerProxy
Provides access to a container for driving directions.
The INAStreetDirectionsContainer interface provides access to the directions contents and a method to save the contents in a file in XML format.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
INAStreetDirectionsContainerProxy()
|
|
INAStreetDirectionsContainerProxy(Object obj)
|
protected |
INAStreetDirectionsContainerProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
INAStreetDirections |
getDirections(int index)
The route directions by index. |
int |
getDirectionsCount()
The number of routes for the generated directions. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
saveAsXML(String filename)
Saves the directions to a file in XML format. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public INAStreetDirectionsContainerProxy()
public INAStreetDirectionsContainerProxy(Object obj) throws IOException
IOException
protected INAStreetDirectionsContainerProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public int getDirectionsCount() throws IOException, AutomationException
DirectionsCount returns the number of NAStreetDirections objects that were generated based on the number of routes passed in to INAStreetDirectionsAgent::Execute.
getDirectionsCount
in interface INAStreetDirectionsContainer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public INAStreetDirections getDirections(int index) throws IOException, AutomationException
getDirections
in interface INAStreetDirectionsContainer
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveAsXML(String filename) throws IOException, AutomationException
SaveAsXML saves all of the directions into an XML file.
The output XML file containing directions can be converted into a properly formatted HTML file using the style sheets available in the ArcGIS installation folder. For example, the directions output in XML format can be converted into an HTML file or a Text file using the style sheet Dir2WebDocument.xsl or Dir2PlainText.xsl respectively (usually found at C:\Program Files\ArcGIS\NetworkAnalyst\Directions\Styles).
saveAsXML
in interface INAStreetDirectionsContainer
filename
- The filename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |