|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRasterRendererClassInfo
Provides access to members which contain info about renderer classes.
While each of the single-band renderers produces different display effects, each at some point must divide the input data into classes. The unique value renderer creates a class for each value, the classified renderer creates an arbitrary number of classes defined by the user, and the stretched renderer divides the input data into 255 classes. The IRasterRendererClassInfo interface provides the ability to read these classes from each renderer through a common mechanism.
// This example assumes that there is a reference to an
// IRasterStretchColorRampRenderer object (pRen)
double[] vMin = {};
double[] vMax = {};
int[] vValue = {};IRasterRendererClassInfo pRenClassInfo =
new IRasterRendererClassInfoProxy(pRen);System.out.println(pRenClassInfo.getClassCount());
if(pRenClassInfo.IsNumericClasses()){
pRenClassInfo.queryNumberClass (0,vMin,vMax,vValue);
}System.out.println(vMin + " " + vMax + " " + vValue);
Method Summary | |
---|---|
int |
getClassCount()
Number of classes in the renderer. |
String |
getClassificationField()
Classification field name or an empty string if a table doesn't exist. |
String |
getNormalizationField()
Normalization field name or an empty string if none. |
boolean |
isNumericClasses()
Indicates if the classification field is numeric. |
void |
queryNumberClass(int classIndex,
double[] minValue,
double[] maxValue,
int[] outValue)
Information for a number class by index. |
void |
queryStringClass(int classIndex,
String[] inValue,
int[] outValue)
Information for a string class by index. |
Method Detail |
---|
String getClassificationField() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getNormalizationField() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isNumericClasses() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getClassCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryNumberClass(int classIndex, double[] minValue, double[] maxValue, int[] outValue) throws IOException, AutomationException
classIndex
- The classIndex (in)minValue
- The minValue (out: use single element array)maxValue
- The maxValue (out: use single element array)outValue
- The outValue (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void queryStringClass(int classIndex, String[] inValue, int[] outValue) throws IOException, AutomationException
classIndex
- The classIndex (in)inValue
- The inValue (out: use single element array)outValue
- The outValue (out: use single element array)
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 |