com.esri.arcgis.datasourcesfile
Class SMPointsCollection

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMPointsCollection
All Implemented Interfaces:
ISMPointsCollection, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class SMPointsCollection
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMPointsCollection

The collection of geographic points.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
SMPointsCollection(Object obj)
          Construct a SMPointsCollection using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void add(ISMRouterPoint pItem)
          Adds a point to the end of the collection.
 void clear()
          Removes all points from the collection.
 boolean equals(Object o)
          Compare this object with another
 int getCount()
          Number of points in the collection.
 ISMRouterPoint getItem(int position)
          Represents the point in the collection at the specified position.
 int hashCode()
          the hashcode for this object
 void insert(int position, ISMRouterPoint pItem)
          Inserts a point in the collection at the specified position.
 void remove(int position)
          Removes a point from the collection at the specified position.
 
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

SMPointsCollection

public SMPointsCollection(Object obj)
                   throws IOException
Construct a SMPointsCollection using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to SMPointsCollection.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
SMPointsCollection o = (SMPointsCollection)obj; // will not work

SMPointsCollection o = new SMPointsCollection(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems SMPointsCollection theSMPointsCollection = (SMPointsCollection) obj;
Method Detail

equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getCount

public int getCount()
             throws IOException,
                    AutomationException
Number of points in the collection.

Description

Returns the number of points in the collection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getCount in interface ISMPointsCollection
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getItem

public ISMRouterPoint getItem(int position)
                       throws IOException,
                              AutomationException
Represents the point in the collection at the specified position.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getItem in interface ISMPointsCollection
Parameters:
position - The position (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.ISMRouterPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(ISMRouterPoint pItem)
         throws IOException,
                AutomationException
Adds a point to the end of the collection.

Description

Adds the point to the collection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
add in interface ISMPointsCollection
Parameters:
pItem - A reference to a com.esri.arcgis.datasourcesfile.ISMRouterPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

public void insert(int position,
                   ISMRouterPoint pItem)
            throws IOException,
                   AutomationException
Inserts a point in the collection at the specified position.

Description

Inserts the point to the collection at a specified position.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
insert in interface ISMPointsCollection
Parameters:
position - The position (in)
pItem - A reference to a com.esri.arcgis.datasourcesfile.ISMRouterPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int position)
            throws IOException,
                   AutomationException
Removes a point from the collection at the specified position.

Description

Removes the point from the collection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
remove in interface ISMPointsCollection
Parameters:
position - The position (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clear

public void clear()
           throws IOException,
                  AutomationException
Removes all points from the collection.

Description

Removes all points from the collection.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
clear in interface ISMPointsCollection
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.