|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabaseui.Calculator
public class Calculator
Calculator engine which is used by the UI and can be used independently.
Constructor Summary | |
---|---|
Calculator()
Constructs a Calculator using ArcGIS Engine. |
|
Calculator(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Calculator theCalculator = (Calculator) obj; |
Method Summary | |
---|---|
IEnvelope |
calculate()
Performs the calculation by executing the pre-expression and expression. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getExpression()
Expression or value applied to a field in each row of the cursor. |
String |
getPreExpression()
A pre-calculation determination of a value or variable that may be used as the expression (or value) of the calculation. |
int |
hashCode()
the hashcode for this object |
boolean |
isShowErrorPrompt()
Indicates whether to show a message prompt when an error occurs during calculation. |
void |
setCallbackByRef(ICalculatorCallback rhs1)
The call back routine. |
void |
setCursorByRef(ICursor rhs1)
Cursor used to access the rows on which the calculation will be performed. |
void |
setExpression(String pExpression)
Expression or value applied to a field in each row of the cursor. |
void |
setField(String rhs1)
Field to perform the calculation on. |
void |
setPreExpression(String pPreExpression)
A pre-calculation determination of a value or variable that may be used as the expression (or value) of the calculation. |
void |
setShowErrorPrompt(boolean pShowPrompt)
Indicates whether to show a message prompt when an error occurs during calculation. |
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 Calculator() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic Calculator(Object obj) throws IOException
Calculator theCalculator = (Calculator) obj;
obj
to Calculator
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setCursorByRef(ICursor rhs1) throws IOException, AutomationException
setCursorByRef
in interface ICalculator
rhs1
- A reference to a com.esri.arcgis.geodatabase.ICursor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IQueryFilter
public void setCallbackByRef(ICalculatorCallback rhs1) throws IOException, AutomationException
setCallbackByRef
in interface ICalculator
rhs1
- A reference to a com.esri.arcgis.geodatabaseui.ICalculatorCallback (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setField(String rhs1) throws IOException, AutomationException
setField
in interface ICalculator
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IField
public void setPreExpression(String pPreExpression) throws IOException, AutomationException
setPreExpression
in interface ICalculator
pPreExpression
- The pPreExpression (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPreExpression() throws IOException, AutomationException
getPreExpression
in interface ICalculator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExpression(String pExpression) throws IOException, AutomationException
setExpression
in interface ICalculator
pExpression
- The pExpression (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getExpression() throws IOException, AutomationException
getExpression
in interface ICalculator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope calculate() throws IOException, AutomationException
The calculate method returns an Envelope which covers features that have been modified by the calculation. This envelope can be used to refresh the display for the calculated area only. If the table used in the calculate is non-spatial, a null is returned.
calculate
in interface ICalculator
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowErrorPrompt(boolean pShowPrompt) throws IOException, AutomationException
setShowErrorPrompt
in interface ICalculator
pShowPrompt
- The pShowPrompt (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowErrorPrompt() throws IOException, AutomationException
isShowErrorPrompt
in interface ICalculator
IOException
- 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 |