|
|||||||||
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.datasourcesfile.ISMDirItemProxy
public class ISMDirItemProxy
Provides access to the description and geography of one item of driving directions.
Provides information about one item in the driving directions collection.
The ISMDirItem interface provides detailed information about one item in the driving directions collection. This is the place the route path geography can be retrieved.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
ISMDirItemProxy()
|
|
ISMDirItemProxy(Object obj)
|
protected |
ISMDirItemProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
int |
getAzimuth()
The azimuth of the direction item. |
ISMRouterEnvelope |
getBoundBox()
The geographic extent of the direction item. |
String |
getDriveText()
Formatted text descrbing the length and time of the direction item. |
int |
getItemType()
The type of direction item. |
double |
getLength()
The length of the route part, in miles by default, corresponding to the direction item. |
int |
getRoutePart()
The route part number associated with a direction item. |
ISMPointsCollection |
getShape()
A collection of points representing the shape of the direction item. |
String |
getStreetName()
The street name of the direction item. |
String |
getText()
A string describing the direction item. |
double |
getTime()
The driving time of the route part corresponding to the direction item. |
double |
getTurnAngle()
The turn angle of the direction item. |
void |
removeListener(String iidStr,
Object theListener)
|
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 ISMDirItemProxy()
public ISMDirItemProxy(Object obj) throws IOException
IOException
protected ISMDirItemProxy(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 String getText() throws IOException, AutomationException
Provides a description of the item.
getText
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getLength() throws IOException, AutomationException
Returns length (in miles) of the route part that the item describes.
getLength
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getTime() throws IOException, AutomationException
Returns the driving time for the item.
getTime
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDriveText() throws IOException, AutomationException
Returns formatted text composed from the item length and time. For example, "drive 10 mi ~ 10 minutes".
getDriveText
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getItemType() throws IOException, AutomationException
Returns type of the driving directions item. One of esriSMDirItemType constants.
Item type can have one value from the esriSMDirItemType enumeraiton. See esriSMDirItemType for more details.
getItemType
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getRoutePart() throws IOException, AutomationException
Route part is an ordinal associated with a direction item. It equals the ordinal number of the stop with which the current segment begins.
getRoutePart
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMPointsCollection getShape() throws IOException, AutomationException
Returns a collection of points that represent the item shape.
Each direction item contains its shape. If you need the whole route path shape, then you need to append shapes from all items.
getShape
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISMRouterEnvelope getBoundBox() throws IOException, AutomationException
Returns the geographic extent of the directions item.
getBoundBox
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getStreetName() throws IOException, AutomationException
Provides a street name to the corresponding item.
getStreetName
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getTurnAngle() throws IOException, AutomationException
Provides an angle of the directions item.
getTurnAngle
in interface ISMDirItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getAzimuth() throws IOException, AutomationException
Provides the azimuth of the directions item.
getAzimuth
in interface ISMDirItem
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 |