|
|||||||||
| 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.ILegend2Proxy
public class ILegend2Proxy
Provides access to additional members that control a legend.
| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
ILegend2Proxy()
|
|
ILegend2Proxy(Object obj)
|
protected |
ILegend2Proxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addItem(ILegendItem item)
Adds a new item to the legend (to the end of the list). |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
adjustColumns(int columns)
Adjust the item settings so that the legend contains the specified number of columns. |
void |
clearItems()
Removes all items from the legend. |
void |
delayEvents(boolean delay)
Used to batch operations together to minimize notifications. |
void |
draw(IDisplay display,
ITrackCancel trackCancel,
IEnvelope bounds)
Draws the map surround into the specified display bounds. |
void |
fitToBounds(IDisplay display,
IEnvelope bounds,
boolean[] changed)
Adjusts the map surround to fit the bounds. |
ILegendItem |
getDefaultLegendItem(ILayer layer)
The default legend item for the specified layer. |
ILegendFormat |
getFormat()
The formatting options for the legend (can be stored in the style gallery). |
int |
getIcon()
Icon used to represent the map surround. |
ILegendItem |
getItem(int index)
The specified item from the legend. |
int |
getItemCount()
Number of items in the legend. |
IMap |
getMap()
The parent map. |
String |
getName()
Name of the map surround. |
String |
getTitle()
Title. |
void |
insertItem(int index,
ILegendItem item)
Inserts a new item into the legend (at the location specified by index). |
boolean |
isAutoAdd()
Indicates if a new item should be added when a new layer is added to the map. |
boolean |
isAutoReorder()
Indicates if the legend items should be kept in the same order as the layers. |
boolean |
isAutoVisibility()
Indicates if items should be shown only when associated layers are visible. |
boolean |
isFlowRight()
Reserved for future use. |
boolean |
isScaleSymbols()
Indicates if symbols are scaled for the layer. |
void |
queryBounds(IDisplay display,
IEnvelope oldBounds,
IEnvelope newBounds)
Returns the bounds of the map surround. |
void |
readExternal(ObjectInput in)
|
void |
refresh()
Makes sure the latest updates are refected the next time the Map Surround is drawn. |
void |
removeItem(int index)
Removes the specified item from the legend. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setAutoAdd(boolean autoAdd)
Indicates if a new item should be added when a new layer is added to the map. |
void |
setAutoReorder(boolean autoReorder)
Indicates if the legend items should be kept in the same order as the layers. |
void |
setAutoVisibility(boolean autoVisibility)
Indicates if items should be shown only when associated layers are visible. |
void |
setFlowRight(boolean flag)
Reserved for future use. |
void |
setFormatByRef(ILegendFormat legendFormat)
The formatting options for the legend (can be stored in the style gallery). |
void |
setMapByRef(IMap map)
The parent map. |
void |
setName(String name)
Name of the map surround. |
void |
setScaleSymbols(boolean scale)
Indicates if symbols are scaled for the layer. |
void |
setTitle(String title)
Title. |
void |
writeExternal(ObjectOutput out)
|
| 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, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ILegend2Proxy()
public ILegend2Proxy(Object obj)
throws IOException
IOException
protected ILegend2Proxy(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 IMap getMap()
throws IOException,
AutomationException
getMap in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMapByRef(IMap map)
throws IOException,
AutomationException
setMapByRef in interface ILegend2map - A reference to a com.esri.arcgis.carto.IMap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String name)
throws IOException,
AutomationException
setName in interface ILegend2name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getIcon()
throws IOException,
AutomationException
getIcon in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryBounds(IDisplay display,
IEnvelope oldBounds,
IEnvelope newBounds)
throws IOException,
AutomationException
queryBounds in interface ILegend2display - A reference to a com.esri.arcgis.display.IDisplay (in)oldBounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)newBounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void fitToBounds(IDisplay display,
IEnvelope bounds,
boolean[] changed)
throws IOException,
AutomationException
fitToBounds in interface ILegend2display - A reference to a com.esri.arcgis.display.IDisplay (in)bounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)changed - The changed (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delayEvents(boolean delay)
throws IOException,
AutomationException
delayEvents in interface ILegend2delay - The delay (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh()
throws IOException,
AutomationException
refresh in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void draw(IDisplay display,
ITrackCancel trackCancel,
IEnvelope bounds)
throws IOException,
AutomationException
draw in interface ILegend2display - A reference to a com.esri.arcgis.display.IDisplay (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)bounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILegendFormat getFormat()
throws IOException,
AutomationException
getFormat in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFormatByRef(ILegendFormat legendFormat)
throws IOException,
AutomationException
setFormatByRef in interface ILegend2legendFormat - A reference to a com.esri.arcgis.carto.ILegendFormat (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getTitle()
throws IOException,
AutomationException
getTitle in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTitle(String title)
throws IOException,
AutomationException
setTitle in interface ILegend2title - The title (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAutoAdd()
throws IOException,
AutomationException
isAutoAdd in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAutoAdd(boolean autoAdd)
throws IOException,
AutomationException
setAutoAdd in interface ILegend2autoAdd - The autoAdd (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAutoReorder()
throws IOException,
AutomationException
isAutoReorder in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAutoReorder(boolean autoReorder)
throws IOException,
AutomationException
setAutoReorder in interface ILegend2autoReorder - The autoReorder (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAutoVisibility()
throws IOException,
AutomationException
isAutoVisibility in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAutoVisibility(boolean autoVisibility)
throws IOException,
AutomationException
setAutoVisibility in interface ILegend2autoVisibility - The autoVisibility (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isFlowRight()
throws IOException,
AutomationException
isFlowRight in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFlowRight(boolean flag)
throws IOException,
AutomationException
setFlowRight in interface ILegend2flag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getItemCount()
throws IOException,
AutomationException
getItemCount in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILegendItem getItem(int index)
throws IOException,
AutomationException
getItem in interface ILegend2index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addItem(ILegendItem item)
throws IOException,
AutomationException
addItem in interface ILegend2item - A reference to a com.esri.arcgis.carto.ILegendItem (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void insertItem(int index,
ILegendItem item)
throws IOException,
AutomationException
insertItem in interface ILegend2index - The index (in)item - A reference to a com.esri.arcgis.carto.ILegendItem (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeItem(int index)
throws IOException,
AutomationException
removeItem in interface ILegend2index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearItems()
throws IOException,
AutomationException
clearItems in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILegendItem getDefaultLegendItem(ILayer layer)
throws IOException,
AutomationException
getDefaultLegendItem in interface ILegend2layer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isScaleSymbols()
throws IOException,
AutomationException
isScaleSymbols in interface ILegend2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setScaleSymbols(boolean scale)
throws IOException,
AutomationException
setScaleSymbols in interface ILegend2scale - The scale (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void adjustColumns(int columns)
throws IOException,
AutomationException
adjustColumns in interface ILegend2columns - The columns (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.esri.arcgis.interop.DispatchIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.esri.arcgis.interop.DispatchIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||