|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILegendClass
Provides access to members that control the legend/TOC entry for a renderer class.
There are typically many LegendClass objects in a LegendGroup. Each legend class contains a symbol and descriptive text strings form of a Label and Description. The Label appears in the table of contents, and the label and description can appear in the legend.
If a legend group is editable, then the symbol and label for the label classes contained by the legend group can be edited in the table of contents. Changes to symbols symbol will change the renderer's symbology and the map will refresh to reflect this change. Changes to labels will change the content of any legends that contain the layer.
The typically route for modifying renderer appeance through code is to go to the renderer objects themselves. For example, to change the simple renderer symbol, label and description fields, use the methods and properties of ISimpleRenderer in preference to the legend class object.
Method Summary | |
---|---|
String |
getDescription()
Legend class description. |
ILegendClassFormat |
getFormat()
Optional. |
String |
getLabel()
Legend class label. |
ISymbol |
getSymbol()
Legend class symbol. |
void |
setDescription(String label)
Legend class description. |
void |
setFormat(ILegendClassFormat format)
Optional. |
void |
setLabel(String label)
Legend class label. |
void |
setSymbolByRef(ISymbol symbol)
Legend class symbol. |
Method Detail |
---|
ISymbol getSymbol() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSymbolByRef(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 getLabel() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLabel(String label) throws IOException, AutomationException
label
- The label (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDescription() throws IOException, AutomationException
The Description does not apear in the table of contents but can appear in the legend depending on the LegendItem that is applied.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDescription(String label) throws IOException, AutomationException
label
- The label (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILegendClassFormat getFormat() throws IOException, AutomationException
A layer or renderer can provide legend class formatting information via this property, which makes it possible to store legend formatting information with layers in metadata-like fashion. However this is not normally done. Rather, legend formatting information usually comes from the legend. ILegendItem.LegendClassFormat is used and some patch settings can come from ILegend.LegendFormat .
So, when a legend is created, the code follows this logic:
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFormat(ILegendClassFormat format) throws IOException, AutomationException
The layer can provide legend class formatting information via ILegendClass.Format. This makes it possible to store legend formatting information with layers in metadata-like fashion. However, layers normally do not provide a LegendClassFormat object. Rather, legend formatting information usually comes from the legend. ILegendItem.LegendClassFormat is used and some patch settings can come from ILegend.LegendFormat .
So, when a legend is created, the code follows this logic:
format
- A reference to a com.esri.arcgis.carto.ILegendClassFormat (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 |