|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.geometry.IPointCollectionProxy
Provides access to members that manipulate the points of a Multipoint, Path, Ring, Polyline, Polygon, TriangleFan, TriangleStrip, or MultiPatch.
| Field Summary | |
static java.lang.Class |
targetClass
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF |
| Constructor Summary | |
|
IPointCollectionProxy()
For internal use only |
|
IPointCollectionProxy(java.lang.Object obj)
|
protected |
IPointCollectionProxy(java.lang.Object obj,
java.lang.String iid)
|
|
IPointCollectionProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
|
protected |
IPointCollectionProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
AuthInfo authInfo)
|
| Method Summary | |
void |
addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
Adds a Java object to be a listener for a specific kind of event generated by the COM object. |
void |
addPoint(IPoint inPoint,
java.lang.Object before,
java.lang.Object after)
Adds a vertex to a Path, Ring, Polyline, or Polygon; or adds a reference to the input point to a Multipoint, TriangleFan, or TriangleStrip. |
void |
addPointCollection(IPointCollection newPoints)
Adds copies of points in the input point collection to this Path, Ring, Polyline, or Polygon; or adds references to the points in the collection to this Multipoint, TriangleFan, or TriangleStrip. |
void |
addPoints(int count,
IPoint newPoints)
Adds copies of the input points as vertices to this Path, Ring, Polyline, or Polygon; or references to the input points to this Multipoint, TriangleFan, or TriangleStrip. |
IEnumVertex |
getEnumVertices()
A new enumerator for this point collection. |
IPoint |
getPoint(int i)
A copy of the ith vertex of a Path, Ring, Polyline, or Polygon; or a reference to the ith point of a Multipoint, TriangleFan, or TriangleStrip. |
int |
getPointCount()
The number of points in the collection. |
void |
insertPointCollection(int index,
IPointCollection newPoints)
Inserts copies of points, from the input point collection, as vertices into this Path, Ring, Polyline, or Polygon; or references to points in the input point collection into this Multipoint, TriangleFan, or TriangleStrip. |
void |
insertPoints(int index,
int count,
IPoint newPoints)
Inserts copies of the input points as vertices into a Path, Ring, Polyline, or Polygon; or references to the input points into a Multipoint, TriangleFan, or TriangleStrip. |
void |
queryPoint(int index,
IPoint point)
Queries for a point in the PointCollection at given index. |
void |
queryPoints(int index,
int count,
IPoint points)
Copies some points to an existing array of points. |
void |
removeListener(java.lang.String iidStr,
java.lang.Object theListener)
Removes a Java object as a listener to events generated by a COM object. |
void |
removePoints(int index,
int count)
Removes vertices from a Path, Ring, Polyline, or Polygon, or references to points from a Multipoint, TriangleFan, or TriangleStrip. |
void |
replacePointCollection(int index,
int goingAway,
IPointCollection newPoints)
Replaces vertices/points within a PointCollection. |
void |
replacePoints(int index,
int comingIn,
int goingAway,
IPoint newPoints)
Replaces vertices/points within a PointCollection. |
void |
setPointCollection(IPointCollection newPoints)
Replaces all vertices of this Path, Ring, Polyline, or Polygon with copies of the points in the input collection; or all points of this Multipoint, TriangleFan, or TriangleStrip with references to points from the input collection. |
void |
setPoints(int count,
IPoint newPoints)
Replaces all existing vertices of this Path, Ring, Polyline, or Polygon with copies of the input points; or all existing points of this Multipoint, TriangleFan, or TriangleStrip with references to the input points (for C++ and VB users only). |
void |
updatePoint(int i,
IPoint p)
Changes the ith vertex or point to be a copy of the input point. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.Class targetClass
| Constructor Detail |
public IPointCollectionProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
throws java.net.UnknownHostException,
java.io.IOException
public IPointCollectionProxy()
public IPointCollectionProxy(java.lang.Object obj)
throws java.io.IOException
protected IPointCollectionProxy(java.lang.Object obj,
java.lang.String iid)
throws java.io.IOException
protected IPointCollectionProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
AuthInfo authInfo)
throws java.io.IOException
| Method Detail |
public void addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
throws java.io.IOException
Dispatch
addListener in class DispatchiidStr - the ID of the outgoing interface, implemented by the listenertheListener - the object to be informed of the eventstheSource - the proxy class that represents the COM class that is the source of the events
java.io.IOException
public void removeListener(java.lang.String iidStr,
java.lang.Object theListener)
throws java.io.IOException
Dispatch
removeListener in class DispatchiidStr - the ID of the outgoing interface, implemented by the listenertheListener - the object that no longer wishes to be informed of the events
java.io.IOException
public int getPointCount()
throws java.io.IOException,
AutomationException
IPointCollectionReturns the number of Points in the PointCollection. The last Point in the PointCollection has an index equal to PointCount - 1.
getPointCount in interface IPointCollectionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPoint getPoint(int i)
throws java.io.IOException,
AutomationException
IPointCollectionGets the ith Point from the PointCollection. The first Point in the PointCollection has index 0, and the last Point has index equal to PointCount - 1. (Alternatively, the last Point in the PointCollection can be referenced using index -1.).
Note: Since a copy of the point is returned by Point (get_Point) for path, ring, polyline and polygon the IPointCollection::UpdatePoint method must be used to update points on those geometry types.
getPoint in interface IPointCollectioni - The i (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addPoint(IPoint inPoint,
java.lang.Object before,
java.lang.Object after)
throws java.io.IOException,
AutomationException
IPointCollectionAdds a Point to a PointCollection. If before and after are omitted, the Point is added to the end of the PointCollection. Additionally, by specifying either the before or after index, the Point can be added at a specific location in the PointCollection.
addPoint in interface IPointCollectioninPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)before - A Variant (in, optional, pass null if not required)after - A Variant (in, optional, pass null if not required)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void updatePoint(int i,
IPoint p)
throws java.io.IOException,
AutomationException
IPointCollectionUpdates the ith Point with a copy of the input Point. Update replaces the reference to the indexed point with a reference to the input Point.
For efficiency UpdatePoint does not check if the spatial reference of the input point is equal to the spatial reference of the PointCollection. Please make sure that the spatial reference of the input point is equal to the spatial reference of the PointCollection before you pass the point in.
Note : You can also explicitly check the spatial reference by using IClone::IsEqual
updatePoint in interface IPointCollectioni - The i (in)p - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void queryPoints(int index,
int count,
IPoint points)
throws java.io.IOException,
AutomationException
IPointCollectionQueries a specified number (Count) of Points starting at the given index into an array of Points.
queryPoints in interface IPointCollectionindex - The index (in)count - The count (in)points - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void insertPoints(int index,
int count,
IPoint newPoints)
throws java.io.IOException,
AutomationException
IPointCollectionInserts a specified number (Count) of Points into the PointCollection at the given index from an array of Points. The first Count points from the array are inserted.
insertPoints in interface IPointCollectionindex - The index (in)count - The count (in)newPoints - A reference to a com.esri.arcgis.geometry.IPoint (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void insertPointCollection(int index,
IPointCollection newPoints)
throws java.io.IOException,
AutomationException
IPointCollectionInserts a PointCollection of Points into the PointCollection at the specified index. The resulting PointCollection does not retain information about the distinction between the old and new Point Collections.
insertPointCollection in interface IPointCollectionindex - The index (in)newPoints - A reference to a com.esri.arcgis.geometry.IPointCollection (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addPoints(int count,
IPoint newPoints)
throws java.io.IOException,
AutomationException
IPointCollectionAdds the first specified number (Count) of Points to the PointCollection from an array of Points (with at least Count points). The Points are all added to the end of the PointCollection in the same sequence as they are ordered in the array.
addPoints in interface IPointCollectioncount - The count (in)newPoints - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addPointCollection(IPointCollection newPoints)
throws java.io.IOException,
AutomationException
IPointCollectionAdds a PointCollection of Points to the end of the PointCollection. The resulting PointCollection does not retain the division between the old PointCollection and the additional PointCollection.
addPointCollection in interface IPointCollectionnewPoints - A reference to a com.esri.arcgis.geometry.IPointCollection (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPoints(int count,
IPoint newPoints)
throws java.io.IOException,
AutomationException
IPointCollection
setPoints in interface IPointCollectioncount - The count (in)newPoints - A reference to a com.esri.arcgis.geometry.IPoint (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPointCollection(IPointCollection newPoints)
throws java.io.IOException,
AutomationException
IPointCollection
setPointCollection in interface IPointCollectionnewPoints - A reference to a com.esri.arcgis.geometry.IPointCollection (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void removePoints(int index,
int count)
throws java.io.IOException,
AutomationException
IPointCollectionRemoves a specified number (Count) of Points from a PointCollection starting at a given index.
removePoints in interface IPointCollectionindex - The index (in)count - The count (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumVertex getEnumVertices()
throws java.io.IOException,
AutomationException
IPointCollectionReturns an EnumVertex for the vertices in the PointCollection. The EnumVertex allows the Points to be tranversed in a sequential order.
getEnumVertices in interface IPointCollectionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void replacePoints(int index,
int comingIn,
int goingAway,
IPoint newPoints)
throws java.io.IOException,
AutomationException
IPointCollectionRemoves a specified number (goingAway) of Points from a PointCollection starting at a given index and replaces them (starting at the same index) with a specified number (comingIn) of Points from an array of Points.
If you are using attempting to use this method from a .NET enabled language, such as VB.NET, you may need to use the ReplacePoints method provided by the IGeometryBridge interface exposed on the GeometryEnvironment object.
replacePoints in interface IPointCollectionindex - The index (in)comingIn - The comingIn (in)goingAway - The goingAway (in)newPoints - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void replacePointCollection(int index,
int goingAway,
IPointCollection newPoints)
throws java.io.IOException,
AutomationException
IPointCollectionReplaces a specified number (goingAway) of Points in the PointCollection begining at a given index with a PointCollection of Points (inserted at the given index).
replacePointCollection in interface IPointCollectionindex - The index (in)goingAway - The goingAway (in)newPoints - A reference to a com.esri.arcgis.geometry.IPointCollection (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void queryPoint(int index,
IPoint point)
throws java.io.IOException,
AutomationException
IPointCollectionQueries the ith Point from the PointCollection. The first Point in the PointCollection has index 0, and the last Point has index equal to PointCount - 1. (Alternatively, the last Point in the PointCollection can be referenced using index -1.).
Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.
queryPoint in interface IPointCollectionindex - The index (in)point - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||