

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
public interface IArea
Provides access to members that return properties common to rings and polygons.
Use the IArea interface to get the Area of a Geometry. It can also be used to get the Centroid point and Label point for a Geometry.
Method Summary  

double 
getArea()
The area. 
IPoint 
getCentroid()
The center of gravity (centroid). 
IPoint 
getLabelPoint()
A point guaranteed to be inside this area. 
void 
queryCentroid(IPoint center)
Copies the centroid of this area to the specified point. 
void 
queryLabelPoint(IPoint labelPoint)
Copies to the input point a point guaranteed to be inside this area. 
Method Detail 

double getArea() throws IOException, AutomationException
Returns the area enclosed between the Exterior Rings and the Interior Rings of the 2 (or 2.5) Dimensional geometry. Interior Rings return a negative Area.
IOException
 If there are interop problems.
AutomationException
 If the ArcObject component throws an exception.IPoint getCentroid() throws IOException, AutomationException
Returns the Centroid of the 2 (or 2.5) Dimensional figure. The Centroid is the center of the weighted area.
The Centroid does not always occur inside the Area of the geometry. The Centroid is not the same as the center of the geometry or the Envelope binding the geometry (but it may be if and only if that is also the center of the weighted area).
IOException
 If there are interop problems.
AutomationException
 If the ArcObject component throws an exception.IArea.queryCentroid(com.esri.arcgis.geometry.IPoint)
,
IArea.getCentroid()
,
IArea.queryLabelPoint(com.esri.arcgis.geometry.IPoint)
,
IArea.getLabelPoint()
IPoint getLabelPoint() throws IOException, AutomationException
Returns the Label Point of the object. The Label Point is the point at which the label is located. The Label Point is always located within the Area of the object.
IOException
 If there are interop problems.
AutomationException
 If the ArcObject component throws an exception.IArea.queryCentroid(com.esri.arcgis.geometry.IPoint)
,
IArea.getCentroid()
,
IArea.queryLabelPoint(com.esri.arcgis.geometry.IPoint)
,
IArea.getLabelPoint()
void queryCentroid(IPoint center) throws IOException, AutomationException
Queries the Centroid of the 2 (or 2.5) Dimensional figure. The Centroid is the center of the weighted area. You must instantiate the Point before calling QueryCentroid. For example,
Dim pPoint as IPoint
Set pPoint = New Point
The Centroid does not always occur inside the Area of the geometry. The Centroid is not the same as the center of the geometry or the Envelope binding the geometry (but it may be if and only if that is also the center of the weighted area).
Note: The output geometry must be cocreated prior to the query. The output geometry is not cocreated 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.
center
 A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
 If there are interop problems.
AutomationException
 If the ArcObject component throws an exception.IArea.queryCentroid(com.esri.arcgis.geometry.IPoint)
,
IArea.getCentroid()
,
IArea.queryLabelPoint(com.esri.arcgis.geometry.IPoint)
,
IArea.getLabelPoint()
void queryLabelPoint(IPoint labelPoint) throws IOException, AutomationException
Queries the Label Point of the object. The Label Point is the point at which the label is located. The Label Point is always located within the Area of the object. You must instantiate the point before calling QueryLabelPoint. For example,
Dim pPoint as IPoint
Set pPoint = New Point
Note: The output geometry must be cocreated prior to the query. The output geometry is not cocreated 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.
labelPoint
 A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
 If there are interop problems.
AutomationException
 If the ArcObject component throws an exception.IArea.queryCentroid(com.esri.arcgis.geometry.IPoint)
,
IArea.getCentroid()
,
IArea.queryLabelPoint(com.esri.arcgis.geometry.IPoint)
,
IArea.getLabelPoint()


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 