|
||||||||||
| 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.system.IClassifyProxy
Provides access to members that control the classification methods.
| 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 | |
|
IClassifyProxy()
For internal use only |
|
IClassifyProxy(java.lang.Object obj)
|
protected |
IClassifyProxy(java.lang.Object obj,
java.lang.String iid)
|
|
IClassifyProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
|
protected |
IClassifyProxy(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 |
classify(int[] numClasses)
Classifies data into the specified number of classes. |
java.lang.Object |
getClassBreaks()
The array of class breaks (double). |
IUID |
getClassID()
The CLSID for the classification object. |
java.lang.String |
getMethodName()
The name of the classification method (based on choice of classification object). |
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 |
setHistogramData(java.lang.Object doubleArrayValues,
java.lang.Object longArrayFrequencies)
Adds data in form of a histogram (array of values (doubles) and a paired array of frequencies (longs)) to the classification. |
| 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 IClassifyProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
throws java.net.UnknownHostException,
java.io.IOException
public IClassifyProxy()
public IClassifyProxy(java.lang.Object obj)
throws java.io.IOException
protected IClassifyProxy(java.lang.Object obj,
java.lang.String iid)
throws java.io.IOException
protected IClassifyProxy(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 void setHistogramData(java.lang.Object doubleArrayValues,
java.lang.Object longArrayFrequencies)
throws java.io.IOException,
AutomationException
IClassify
setHistogramData in interface IClassifydoubleArrayValues - A Variant (in)longArrayFrequencies - A Variant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void classify(int[] numClasses)
throws java.io.IOException,
AutomationException
IClassifyClassify generates the ClassBreaks given the number of classes specified. Use Classify only after you have added data to the classification using SetHistogramData.
Having obtained the data values and frequencies using the SetHistogramData method, the next step is to compute some class breaks. Do this by calling the Classify method and specifying the number of classes you would like. You must supply the number of desired classes as a variable defined as a Long. Some classification algorithms will return a different number of class breaks to what you specified. The number of classes will be written back to the variable you supplied, so it is always best to recheck the number of class breaks after calling Classify.
classify in interface IClassifynumClasses - The numClasses (in/out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.Object getClassBreaks()
throws java.io.IOException,
AutomationException
IClassifyClassBreaks returns an array of class breaks. The number of breaks may be different than what was specified in the Classify method, so it is essential that you check this before setting the BreakCount on IClassBreaksRenderer. The reason this may be different has to do with how a particular classification method handles skewness in the data being classified.
The first ClassBreak returned is the minimum value of the data being classified. The rest of the breaks are the upper bounds for each class. The last break represents the upper bound of the highest class.
To properly assign ClassBreaks to an IClassBreaksRenderer:
Note that the Breaks property array on the ClassBreaksRenderer has one less entry than the array returned from Classify. The first break value in the array returned from Classify is put into the ClassBreakRenderers’ MinimumBreak property. Next, copy the break values into the ClassBreaksRenderer object. You can set up the symbol property of the classes at the same time.

getClassBreaks in interface IClassifyAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getMethodName()
throws java.io.IOException,
AutomationException
IClassify
getMethodName in interface IClassifyjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getClassID()
throws java.io.IOException,
AutomationException
IClassifyReturns the GUID of the classification object.
getClassID in interface IClassifyAutomationException - 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 | |||||||||