|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.carto.ILegendClassProxy
public class ILegendClassProxy
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.
| Field Summary | |
|---|---|
boolean |
noncastable
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
| Constructor Summary | |
|---|---|
|
ILegendClassProxy()
|
|
ILegendClassProxy(Object obj)
|
protected |
ILegendClassProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
String |
getDescription()
Legend class description. |
ILegendClassFormat |
getFormat()
Optional. |
String |
getLabel()
Legend class label. |
ISymbol |
getSymbol()
Legend class symbol. |
void |
removeListener(String iidStr,
Object theListener)
|
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. |
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean noncastable
| Constructor Detail |
|---|
public ILegendClassProxy()
public ILegendClassProxy(Object obj)
throws IOException
IOException
protected ILegendClassProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public ISymbol getSymbol()
throws IOException,
AutomationException
getSymbol in interface ILegendClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSymbolByRef(ISymbol symbol)
throws IOException,
AutomationException
setSymbolByRef in interface ILegendClasssymbol - A reference to a com.esri.arcgis.display.ISymbol (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getLabel()
throws IOException,
AutomationException
getLabel in interface ILegendClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLabel(String label)
throws IOException,
AutomationException
setLabel in interface ILegendClasslabel - The label (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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.
getDescription in interface ILegendClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDescription(String label)
throws IOException,
AutomationException
setDescription in interface ILegendClasslabel - The label (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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:
getFormat in interface ILegendClassIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public 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:
setFormat in interface ILegendClassformat - 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 | ||||||||