|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.datasourcesfile.SMDirItem
public class SMDirItem
Deprecated as of 10.1. A description and geography of one item of driving directions.
| Constructor Summary | |
|---|---|
SMDirItem(Object obj)
Construct a SMDirItem using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
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. |
int |
hashCode()
the hashcode for this object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public SMDirItem(Object obj)
throws IOException
obj to SMDirItem. *
SMDirItem o = (SMDirItem)obj; // will not work
SMDirItem o = new SMDirItem(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException - if there are interop problems
SMDirItem theSMDirItem = (SMDirItem) obj;| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String getText()
throws IOException,
AutomationException
Provides a description of the item.
getText in interface ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 ISMDirItemIOException - 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 | ||||||||