|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUniqueValueRenderer
Provides access to members that control a renderer where symbols are assigned to features based on unique attribute values.
Use IUniqueValueRenderer to work with the properties of a UniqueValueRenderer.
This interface is used to manage the list of categories and symbols. Each unique Value in your data can define a unique category, represented with a single Symbol, and values can also be combined by grouping so that more than one value is symbolized with the same symbol. To work with grouping use AddReferenceValue and ReferenceValue. Also, Headings can be used to organize categories in the table of contents and legend, use Heading to assign a value to a particular heading.
Unique value renderering is typically based on a single attribute Field, however up to 3 fields can be used. When more than one field is used, the combinations of the unique values from each field are used to define the categories. So, for example if two fields are used which store the values A and B; and X, Y, and Z respectively, then the initial categories will be defined as A|X, A|Y, A|Z, B|X, B|Y, and B|Z.
Method Summary | |
---|---|
void |
addReferenceValue(String value,
String refValue)
Adds a value to the renderer to be grouped with refValue, which has already been added to the renderer. |
void |
addValue(String value,
String heading,
ISymbol symbol)
Adds a value and corresponding symbol to the list. |
String |
getColorScheme()
Color scheme (user interface property only). |
String |
getDefaultLabel()
Label used for unspecified values. |
ISymbol |
getDefaultSymbol()
Symbol used to draw any unspecified values (may be NULL). |
String |
getDescription(String value)
Desription for the specified label. |
String |
getField(int index)
Field at the specified index that is used to categorize features. |
int |
getFieldCount()
Number of fields used by the renderer (0-3). |
String |
getFieldDelimiter()
Delimiter used to separate field values. |
String |
getHeading(String value)
Heading that contains the specified value. |
String |
getLabel(String value)
Label for the specified value. |
String |
getLookupStyleset()
Style used for matching (user interface property only). |
String |
getReferenceValue(String value)
Reference value for the specified value. |
ISymbol |
getSymbol(String value)
Symbol associated with the specified value. |
String |
getValue(int index)
Value at the specified index. |
int |
getValueCount()
Number of unique values used to categorize the data. |
boolean |
isUseDefaultSymbol()
Indicates if DefaultSymbol is used for drawing unspecified values. |
void |
removeAllValues()
Removes all values from the renderer. |
void |
removeValue(String value)
Removes a value from the renderer. |
void |
setColorScheme(String name)
Color scheme (user interface property only). |
void |
setDefaultLabel(String label)
Label used for unspecified values. |
void |
setDefaultSymbol(ISymbol symbol)
Symbol used to draw any unspecified values (may be NULL). |
void |
setDescription(String value,
String text)
Desription for the specified label. |
void |
setField(int index,
String field)
Field at the specified index that is used to categorize features. |
void |
setFieldCount(int fieldCount)
Number of fields used by the renderer (0-3). |
void |
setFieldDelimiter(String delimiter)
Delimiter used to separate field values. |
void |
setFieldType(int index,
boolean rhs2)
Indicates if the field at the specified index is a string. |
void |
setHeading(String value,
String heading)
Heading that contains the specified value. |
void |
setLabel(String value,
String label)
Label for the specified value. |
void |
setLookupStyleset(String name)
Style used for matching (user interface property only). |
void |
setSymbol(String value,
ISymbol symbol)
Symbol associated with the specified value. |
void |
setUseDefaultSymbol(boolean flag)
Indicates if DefaultSymbol is used for drawing unspecified values. |
void |
setValue(int index,
String value)
Value at the specified index. |
Method Detail |
---|
String getField(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setField(int index, String field) throws IOException, AutomationException
index
- The index (in)field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFieldType(int index, boolean rhs2) throws IOException, AutomationException
index
- The index (in)rhs2
- The rhs2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getFieldDelimiter() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFieldDelimiter(String delimiter) throws IOException, AutomationException
delimiter
- The delimiter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getFieldCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFieldCount(int fieldCount) throws IOException, AutomationException
fieldCount
- The fieldCount (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISymbol getDefaultSymbol() throws IOException, AutomationException
Values that have not been
added to the renderer object can be drawn according to the symbol
set for this property. To enable the drawing of this symbol
you must also set UseDefaultSymbol
= True. Access the label for the default symbol
through DefaultLabel.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultSymbol(ISymbol symbol) throws IOException, AutomationException
symbol
- 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 getDefaultLabel() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultLabel(String label) throws IOException, AutomationException
label
- The label (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseDefaultSymbol() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseDefaultSymbol(boolean flag) throws IOException, AutomationException
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getValueCount() throws IOException, AutomationException
To iterate through all of the renderer values, use the Value property and iterate from index 0 through index ValueCount - 1.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getValue(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setValue(int index, String 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.String getReferenceValue(String value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addReferenceValue(String value, String refValue) throws IOException, AutomationException
value
- The value (in)refValue
- The refValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISymbol getSymbol(String value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSymbol(String value, ISymbol symbol) throws IOException, AutomationException
value
- The value (in)symbol
- 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(String value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLabel(String value, String label) throws IOException, AutomationException
value
- The value (in)label
- The label (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDescription(String value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDescription(String value, String text) throws IOException, AutomationException
value
- The value (in)text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getHeading(String value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHeading(String value, String heading) throws IOException, AutomationException
value
- The value (in)heading
- The heading (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addValue(String value, String heading, ISymbol symbol) throws IOException, AutomationException
After setting
FieldCount and setting at least one
Field, use this method to add a unique value and
corresponding symbol to the renderer. You can later retrieve and/or
change the symbol for particular value using the
Symbol property.
If you pass a
Value that already exists in the renderer, then the
existing symbol for the Value will be replaced by the
object passed as the Symbol parameter.
If
FieldCount > 1 then the Value you pass should
be a list of values, one for each field, separated by the
FieldDelimitter. By default this is a
comma.
To add a value to the
renderer, and have that value be drawn with the same symbol as
another existing value or values, use
AddReferenceValue instead of
AddValue. When more than one value is drawn with
the same symbol, the values are said to be
grouped.
Null Values
At ArcGIS versions 8.2 and later, special behavior was added to the UniqueValueRenderer to handle Null values. If you add the special value "<Null>" to your renderer and your database supports Nulls, then features where Field = Null will be drawn with the "<Null>" symbol.
value
- The value (in)heading
- The heading (in)symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeValue(String value) throws IOException, AutomationException
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAllValues() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getColorScheme() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setColorScheme(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getLookupStyleset() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLookupStyleset(String name) throws IOException, AutomationException
name
- The name (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 |