|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.CalcRendererValues
public class CalcRendererValues
An object that calculates renderer statistics which are required for some uses of the ChartRenderer object.
| Constructor Summary | |
|---|---|
CalcRendererValues()
Constructs a CalcRendererValues using ArcGIS Engine. |
|
CalcRendererValues(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. CalcRendererValues theCalcRendererValues = (CalcRendererValues) obj; |
|
| Method Summary | |
|---|---|
void |
calcMinMax(double[] minValue,
double[] maxValue)
Calculates minimum and maximum values. |
void |
calcMinMaxExt(boolean positiveValuesOnly,
double[] minValue,
double[] maxValue)
Calculates minimum and maximum values. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
Object |
getFieldTotals()
Gets totals for all fields. |
int |
hashCode()
the hashcode for this object |
void |
setData(IFeatureLayer layer,
IFeatureRenderer renderer)
Sets data for calculation. |
void |
setDirty()
Sets object to state where values will be recalculated. |
void |
setMinMax(double minValue,
double maxValue)
Manually sets minimum and maximum values. |
| 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 CalcRendererValues()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public CalcRendererValues(Object obj)
throws IOException
CalcRendererValues theCalcRendererValues = (CalcRendererValues) obj;
obj to CalcRendererValues.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void setData(IFeatureLayer layer,
IFeatureRenderer renderer)
throws IOException,
AutomationException
Use this method to connect the CalcRendererValues object to a feature layer and feature renderer. The renderer is usually a ChartRenderer.
setData in interface ICalcRendererValueslayer - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)renderer - A reference to a com.esri.arcgis.carto.IFeatureRenderer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void calcMinMax(double[] minValue,
double[] maxValue)
throws IOException,
AutomationException
Use this method to calculate the MinValue and MaxValue in the data referenced by the feature layer in the fields defined by the feature renderer. You must first set the feature layer and feature renderer using SetData. The feature renderer is usually a ChartRenderer which contains multiple fields, and MinValue and MaxValue are calculated for you based only on the fields defined for the ChartRenderer using IRendererFields .
Use this method to calculate a value to set to IChartSymbol::MaxValue. This property represents the maximum value for all of the renderer fields for all of the features. The value is used by the ChartRenderer to properly set up a the legend information for the ChartRenderer which appears in the table of contents and can also appear in a legend.
calcMinMax in interface ICalcRendererValuesminValue - The minValue (out: use single element array)maxValue - The maxValue (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDirty()
throws IOException,
AutomationException
Call this method after calling SetData or SetMinMax, and before calling CalcMinMax or GetFieldTotals.
setDirty in interface ICalcRendererValuesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMinMax(double minValue,
double maxValue)
throws IOException,
AutomationException
This method allows you to manually set the minimum and maximum values that are calculated and returned when you call CalcMinMax.
setMinMax in interface ICalcRendererValuesminValue - The minValue (in)maxValue - The maxValue (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getFieldTotals()
throws IOException,
AutomationException
This method calculates the field totals for the data referenced by the feature layer and the fields defined by the feature renderer. Before calling this method you must call SetData to set the feature layer and feature renderer.
This method is used to calculate field totals which can then be set to IChartRenderer::FieldTotal to support chart rendering with normalization by percent of total.
getFieldTotals in interface ICalcRendererValuesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void calcMinMaxExt(boolean positiveValuesOnly,
double[] minValue,
double[] maxValue)
throws IOException,
AutomationException
calcMinMaxExt in interface ICalcRendererValues2positiveValuesOnly - The positiveValuesOnly (in)minValue - The minValue (out: use single element array)maxValue - The maxValue (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 | ||||||||