|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IClassBreaksRenderer
Provides access to members that control a renderer which is used to draw graduated color (choropleth) and graduated symbol maps.
IClassBreaksRenderer defines the parameters for drawing
features based on the values of a quantitative attribute that
is statistically grouped by a classification
algorithm.
To set up a
ClassBreaksRenderer you first need to know how
many classes you will have. You can decide this arbitrarily, or you
can pass a proposed number of class breaks to a classification
object and then have it return a valid number of breaks for your
data and the classification method that you chose. To learn more
see IClassifyGen. Set the number of class breaks
using BreakCount.
Once
BreakCount is set, the Break,
Description, Label, and
Symbol array properties are initialized with a
lower index index of 0 and an upper index of
BreakCount -1.
The next step is to set the
values in Break, which are referred to as the class breaks.
These values define the classes. Before setting your class breaks,
you should understand the characteristics of your data. One
possibility is that you may have predefined class breaks in
mind, for example you might classify temperature data into 10
classes of 10 degrees each.
More commonly, you
will apply a particular classification algorithm (e.g.
natural breaks, quantile, equal interval) to your data and use
the breaks generated from the algorithm to assign
to your renderer. The easiest way to do this is to
use a histogram object such as a TableHistogram,
and a classification object such as
NaturalBreaks. To learn more, see
IClassifyGEN.
Once you have decided on
your breaks, assign them to your renderering using the
Break array property. You should set
MinimumBreak to the lowest value in the data that
you want to symbolize, and then Break(i) represents the
highest value in the ith class. Values less than or equal to
Break(i) but greater than
Break(i-1) will be drawn with
Symbol(i). To learn more see
Break and
Symbol.
Use this interface to make changes to the drawing properties of a ClassBreaksRenderer.
StandardDeviation
,
EqualInterval
,
NaturalBreaks
,
ClassBreaksRenderer
,
DefinedInterval
,
Quantile
Method Summary | |
---|---|
IFillSymbol |
getBackgroundSymbol()
Background fill symbol used when graduated marker symbols are draw on polygon features. |
double |
getBreak(int index)
Break value at the specified index. |
int |
getBreakCount()
Number of class breaks (equal to the number of classes). |
String |
getDescription(int index)
Description at the specified index. |
String |
getField()
Classification field. |
String |
getLabel(int index)
Label at the specified index. |
double |
getMinimumBreak()
Minimum break, i.e. |
String |
getNormField()
Normalization field. |
ISymbol |
getSymbol(int index)
Symbol at the specified index (used to draw features in the specified class). |
boolean |
isSortClassesAscending()
Indicates if classes are displayed in increasing order in legends/TOC. |
void |
setBackgroundSymbol(IFillSymbol sym)
Background fill symbol used when graduated marker symbols are draw on polygon features. |
void |
setBreak(int index,
double value)
Break value at the specified index. |
void |
setBreakCount(int valueCount)
Number of class breaks (equal to the number of classes). |
void |
setDescription(int index,
String text)
Description at the specified index. |
void |
setField(String field)
Classification field. |
void |
setLabel(int index,
String label)
Label at the specified index. |
void |
setMinimumBreak(double value)
Minimum break, i.e. |
void |
setNormField(String field)
Normalization field. |
void |
setSortClassesAscending(boolean ascending)
Indicates if classes are displayed in increasing order in legends/TOC. |
void |
setSymbol(int index,
ISymbol sym)
Symbol at the specified index (used to draw features in the specified class). |
Method Detail |
---|
int getBreakCount() throws IOException, AutomationException
BreakCount is the number of class breaks which is equal to the number of classes in which the features are grouped for symbolization.
Increasing this property preserves existing breaks, but decreasing it removes excess break values.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBreakCount(int valueCount) throws IOException, AutomationException
valueCount
- The valueCount (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getField() throws IOException, AutomationException
This field must be numeric.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setField(String field) throws IOException, AutomationException
field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getNormField() throws IOException, AutomationException
NormField is the field that contains the values that the Field values will be divided by to produce the symbolization.
Normalizing, i.e. dividing, by a field is the most common way to normalize data for a ClassBreaksRenderer. In general, mapping of ratios or densities is preferrable to mapping counts and a NormField can be used to generate these types of values. Normalize by an area field to represent a density, or normalize by another field with the same units as the values in Field to produce a rate. For example, to map a rate set Field to a field that stores the count of hispanic persons, and set NormField to a field that stores total persons.
Setting NormField is the same as setting IDataNormalization::NormalizationField and setting IDataNormalization::NormalizationType to esriNormalizeByField. You can use IDataNormalization to do other types of normalization.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setNormField(String field) throws IOException, AutomationException
field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISymbol getSymbol(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSymbol(int index, ISymbol sym) throws IOException, AutomationException
index
- The index (in)sym
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getLabel(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLabel(int index, String label) throws IOException, AutomationException
index
- The index (in)label
- The label (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDescription(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDescription(int index, String text) throws IOException, AutomationException
index
- The index (in)text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getBreak(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBreak(int index, double value) throws IOException, AutomationException
index
- The index (in)value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getMinimumBreak() throws IOException, AutomationException
Represents the minimum value symbolized by the renderer. Values less than the MinimumBreak will not be drawn by the renderer, thererfore is is common to set this property to the minimum value in the dataset being symbolized.
If you change the data being symbolized, you may need to reset the MinimumBreak if the minimum value in the data is affected.
MinimumBreak does NOT equal Break(0). Break(0) is the highest value in the first class, while MinimumBreak is functionally the lowest value in the first class.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMinimumBreak(double value) throws IOException, AutomationException
Commonly the minimum value in the dataset. Does NOT equal Break(0).
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSortClassesAscending() throws IOException, AutomationException
Changing this property reverses the Break array, but keeps the Symbol, Label, and Description arrays intact and in the same order.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSortClassesAscending(boolean ascending) throws IOException, AutomationException
ascending
- The ascending (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IFillSymbol getBackgroundSymbol() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBackgroundSymbol(IFillSymbol sym) throws IOException, AutomationException
sym
- A reference to a com.esri.arcgis.display.IFillSymbol (in)
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 |