com.esri.arcgis.geoprocessing.tools.spatialstatisticstools
Class CalculateAreas

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.spatialstatisticstools.CalculateAreas
All Implemented Interfaces:
GPTool

public class CalculateAreas
extends AbstractGPTool

Calculates area values for each feature in a polygon feature class. The Calculate Areas tool is contained in the Spatial Statistics Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
CalculateAreas()
          Creates the Calculate Areas tool with defaults.
CalculateAreas(java.lang.Object inputFeatureClass, java.lang.Object outputFeatureClass)
          Creates the Calculate Areas tool with the required parameters.
 
Method Summary
 java.lang.Object getInputFeatureClass()
          Returns the Input Feature Class parameter of this tool .
 java.lang.Object getOutputFeatureClass()
          Returns the Output Feature Class parameter of this tool .
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 void setInputFeatureClass(java.lang.Object inputFeatureClass)
          Sets the Input Feature Class parameter of this tool .
 void setOutputFeatureClass(java.lang.Object outputFeatureClass)
          Sets the Output Feature Class parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalculateAreas

public CalculateAreas()
Creates the Calculate Areas tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


CalculateAreas

public CalculateAreas(java.lang.Object inputFeatureClass,
                      java.lang.Object outputFeatureClass)
Creates the Calculate Areas tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
inputFeatureClass - the input polygon feature class.
outputFeatureClass - the output feature class. This feature class is a copy of the input feature class with field F_AREA added (or updated). The F_AREA field contains the polygon area.
Method Detail

getInputFeatureClass

public java.lang.Object getInputFeatureClass()
Returns the Input Feature Class parameter of this tool . This parameter is the input polygon feature class. This is a required parameter.

Returns:
the Input Feature Class

setInputFeatureClass

public void setInputFeatureClass(java.lang.Object inputFeatureClass)
Sets the Input Feature Class parameter of this tool . This parameter is the input polygon feature class. This is a required parameter.

Parameters:
inputFeatureClass - the input polygon feature class.

getOutputFeatureClass

public java.lang.Object getOutputFeatureClass()
Returns the Output Feature Class parameter of this tool . This parameter is the output feature class. This feature class is a copy of the input feature class with field F_AREA added (or updated). The F_AREA field contains the polygon area. This is a required parameter.

Returns:
the Output Feature Class

setOutputFeatureClass

public void setOutputFeatureClass(java.lang.Object outputFeatureClass)
Sets the Output Feature Class parameter of this tool . This parameter is the output feature class. This feature class is a copy of the input feature class with field F_AREA added (or updated). The F_AREA field contains the polygon area. This is a required parameter.

Parameters:
outputFeatureClass - the output feature class. This feature class is a copy of the input feature class with field F_AREA added (or updated). The F_AREA field contains the polygon area.

getToolName

public java.lang.String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public java.lang.String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public java.lang.String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias