|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.Legend
public class Legend
A map surround for displaying a legend.
Constructor Summary | |
---|---|
Legend()
Constructs a Legend using ArcGIS Engine. |
|
Legend(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Legend theLegend = (Legend) obj; |
Method Summary | |
---|---|
void |
addIMapSurroundEventsListener(IMapSurroundEvents theListener)
addIMapSurroundEventsListener. |
void |
addItem(ILegendItem item)
Adds a new item to the legend (to the end of the list). |
void |
adjustColumns(int columns)
Adjust the item settings so that the legend contains the specified number of columns. |
void |
afterDraw(IActiveViewEventsAfterDrawEvent theEvent)
Fired after the specified phase is drawn. |
void |
afterItemDraw(IActiveViewEventsAfterItemDrawEvent theEvent)
Fired after an individual view item is drawn. |
boolean |
applies(Object pUnk)
Indicates if the receiver can apply the given object at any given time. |
Object |
apply(Object newObject)
Applies the given property to the receiver and returns the old object. |
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
boundsUpdated(ITransformEventsBoundsUpdatedEvent theEvent)
Notifies clients when the bounds is updated. |
boolean |
canApply(Object pUnk)
Indicates if the receiver can apply the given object at that particular moment. |
void |
clearItems()
Removes all items from the legend. |
void |
contentsChanged(IActiveViewEventsContentsChangedEvent theEvent)
Fired when the contents of the view changes. |
void |
contentsCleared(IActiveViewEventsContentsClearedEvent theEvent)
Fired when the contents of the view is cleared. |
void |
delayEvents(boolean delay)
Used to batch operations together to minimize notifications. |
void |
deviceFrameUpdated(ITransformEventsDeviceFrameUpdatedEvent theEvent)
Notifies clients when the device frame is updated. |
void |
draw(IDisplay display,
ITrackCancel trackCancel,
IEnvelope bounds)
Draws the map surround into the specified display bounds. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
void |
fitToBounds(IDisplay display,
IEnvelope bounds,
boolean[] changed)
Adjusts the map surround to fit the bounds. |
void |
focusMapChanged(IActiveViewEventsFocusMapChangedEvent theEvent)
Fired when a new map is made active. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
Object |
getCurrent(Object pUnk)
The object currently being used. |
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). |
IEnumElement |
getGraphics(IDisplay display,
Object data)
Graphic elements that are used to render this object. |
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. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getTitle()
Title. |
int |
hashCode()
the hashcode for this object |
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. |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isFixedAspectRatio()
Indicates if the bounds has a fixed aspect ratio. |
boolean |
isFixedSize()
Indicates if size is determined by some other property like the symbol. |
boolean |
isFlowRight()
Reserved for future use. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isRightToLeft()
Indicates if the reading direction is right to left. |
boolean |
isScaleSymbols()
Indicates if symbols are scaled for the layer. |
void |
itemAdded(IActiveViewEventsItemAddedEvent theEvent)
Fired when an item is added to the view. |
void |
itemDeleted(IActiveViewEventsItemDeletedEvent theEvent)
Fired when an item is deleted from the view. |
void |
itemReordered(IActiveViewEventsItemReorderedEvent theEvent)
Fired when a view item is reordered. |
void |
load(IStream pstm)
load |
void |
queryBounds(IDisplay display,
IEnvelope oldBounds,
IEnvelope newBounds)
Returns the bounds of the map surround. |
void |
querySize(double[] widthPoints,
double[] heightPoints)
Get the size in points. |
void |
readExternal(ObjectInput in)
|
void |
refresh()
Makes sure the latest updates are refected the next time the Map Surround is drawn. |
void |
removeIMapSurroundEventsListener(IMapSurroundEvents theListener)
removeIMapSurroundEventsListener. |
void |
removeItem(int index)
Removes the specified item from the legend. |
void |
resolutionUpdated(ITransformEventsResolutionUpdatedEvent theEvent)
Notifies clients when the resolution is updated. |
void |
rotationUpdated(ITransformEventsRotationUpdatedEvent theEvent)
Notifies clients when the rotation angle is updated. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
selectionChanged(IActiveViewEventsSelectionChangedEvent theEvent)
Call this function to fire the selection changed event. |
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 |
setFixedAspectRatio(boolean flag)
Indicates if the bounds has a fixed aspect ratio. |
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 |
setRightToLeft(boolean rightToLeft)
Indicates if the reading direction is right to left. |
void |
setScaleSymbols(boolean scale)
Indicates if symbols are scaled for the layer. |
void |
setTitle(String title)
Title. |
void |
spatialReferenceChanged(IActiveViewEventsSpatialReferenceChangedEvent theEvent)
Fired when the spatial reference is changed. |
void |
unitsUpdated(ITransformEventsUnitsUpdatedEvent theEvent)
Notifies clients when the units are updated. |
void |
viewRefreshed(IActiveViewEventsViewRefreshedEvent theEvent)
Fired when view is refreshed before draw happens. |
void |
visibleBoundsUpdated(ITransformEventsVisibleBoundsUpdatedEvent theEvent)
Notifies clients when the visible bounds is updated. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public Legend() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic Legend(Object obj) throws IOException
Legend theLegend = (Legend) obj;
obj
to Legend
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void addIMapSurroundEventsListener(IMapSurroundEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.carto.IMapSurroundEvents interface.
IOException
- If there are communications problems.public void removeIMapSurroundEventsListener(IMapSurroundEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.carto.IMapSurroundEvents interface.
IOException
- If there are communications problems.public ILegendFormat getFormat() throws IOException, AutomationException
getFormat
in interface ILegend
getFormat
in interface ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFormatByRef(ILegendFormat legendFormat) throws IOException, AutomationException
setFormatByRef
in interface ILegend
setFormatByRef
in interface ILegend2
legendFormat
- 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 ILegend
getTitle
in interface ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTitle(String title) throws IOException, AutomationException
setTitle
in interface ILegend
setTitle
in interface ILegend2
title
- 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 ILegend
isAutoAdd
in interface ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoAdd(boolean autoAdd) throws IOException, AutomationException
setAutoAdd
in interface ILegend
setAutoAdd
in interface ILegend2
autoAdd
- 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 ILegend
isAutoReorder
in interface ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoReorder(boolean autoReorder) throws IOException, AutomationException
setAutoReorder
in interface ILegend
setAutoReorder
in interface ILegend2
autoReorder
- 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 ILegend
isAutoVisibility
in interface ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoVisibility(boolean autoVisibility) throws IOException, AutomationException
setAutoVisibility
in interface ILegend
setAutoVisibility
in interface ILegend2
autoVisibility
- 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 ILegend
isFlowRight
in interface ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFlowRight(boolean flag) throws IOException, AutomationException
setFlowRight
in interface ILegend
setFlowRight
in interface ILegend2
flag
- 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 ILegend
getItemCount
in interface ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILegendItem getItem(int index) throws IOException, AutomationException
getItem
in interface ILegend
getItem
in interface ILegend2
index
- 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 ILegend
addItem
in interface ILegend2
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 insertItem(int index, ILegendItem item) throws IOException, AutomationException
insertItem
in interface ILegend
insertItem
in interface ILegend2
index
- 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 ILegend
removeItem
in interface ILegend2
index
- 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 ILegend
clearItems
in interface ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMap getMap() throws IOException, AutomationException
getMap
in interface ILegend2
getMap
in interface IMapSurround
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapByRef(IMap map) throws IOException, AutomationException
setMapByRef
in interface ILegend2
setMapByRef
in interface IMapSurround
map
- 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 ILegend2
getName
in interface IMapSurround
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
setName
in interface ILegend2
setName
in interface IMapSurround
name
- 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 ILegend2
getIcon
in interface IMapSurround
IOException
- 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 ILegend2
queryBounds
in interface IMapSurround
display
- 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 ILegend2
fitToBounds
in interface IMapSurround
display
- 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 ILegend2
delayEvents
in interface IMapSurround
delay
- 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 ILegend2
refresh
in interface IMapSurround
IOException
- 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 ILegend2
draw
in interface IMapSurround
display
- 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 ILegendItem getDefaultLegendItem(ILayer layer) throws IOException, AutomationException
getDefaultLegendItem
in interface ILegend2
layer
- 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 ILegend2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setScaleSymbols(boolean scale) throws IOException, AutomationException
setScaleSymbols
in interface ILegend2
scale
- 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 ILegend2
columns
- The columns (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void querySize(double[] widthPoints, double[] heightPoints) throws IOException, AutomationException
querySize
in interface IQuerySize
widthPoints
- The widthPoints (in/out: use single element array)heightPoints
- The heightPoints (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isFixedAspectRatio() throws IOException, AutomationException
isFixedAspectRatio
in interface IBoundsProperties
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFixedAspectRatio(boolean flag) throws IOException, AutomationException
setFixedAspectRatio
in interface IBoundsProperties
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isFixedSize() throws IOException, AutomationException
isFixedSize
in interface IBoundsProperties
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumElement getGraphics(IDisplay display, Object data) throws IOException, AutomationException
getGraphics
in interface IGraphicsComposite
display
- A reference to a com.esri.arcgis.display.IDisplay (in)data
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum) throws IOException, AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints
in interface IConnectionPointContainer
ppEnum
- A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP) throws IOException, AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint
in interface IConnectionPointContainer
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP
- A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean applies(Object pUnk) throws IOException, AutomationException
Applies indicates whether the specified object can be applied to the current object. For instance, we might want to ask our CircleElement whether a Color object applies to it. If it does, then we can use the Apply method to update our CircleElement with the new Color object.
CanApply differs from Applies in that it is a check for the editability of the object at any given time. Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.
applies
in interface IPropertySupport
pUnk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canApply(Object pUnk) throws IOException, AutomationException
CanApply indicates whether the specified object can be applied to the current object. For instance, we might want to ask our CircleElement whether a Color object applies to it. If it does, then we can use the Apply method to update our CircleElement with the new Color object.
CanApply differs from Applies in that it is a check for the editability of the object at any given time. Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.
canApply
in interface IPropertySupport
pUnk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getCurrent(Object pUnk) throws IOException, AutomationException
getCurrent
in interface IPropertySupport
pUnk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object apply(Object newObject) throws IOException, AutomationException
Apply will apply the specified object to the current object. For instance, I might apply a Color object to my RectangleElement. When I execute Apply, the object I replace (the old object) is returned.
Use the Applies and CanApply methods to determine if an Apply can be used on an object.
apply
in interface IPropertySupport
newObject
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRightToLeft() throws IOException, AutomationException
isRightToLeft
in interface IReadingDirection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRightToLeft(boolean rightToLeft) throws IOException, AutomationException
setRightToLeft
in interface IReadingDirection
rightToLeft
- The rightToLeft (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void contentsChanged(IActiveViewEventsContentsChangedEvent theEvent) throws IOException, AutomationException
The Map object fires this event when a new document is loaded. Adding a new layer to a Map does not trigger this event.
The PageLayout object fires the event when IGraphicsContainer::DeleteAllElements in called and when a new document is loaded.
contentsChanged
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IActiveView.contentsChanged()
public void contentsCleared(IActiveViewEventsContentsClearedEvent theEvent) throws IOException, AutomationException
contentsCleared
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void itemAdded(IActiveViewEventsItemAddedEvent theEvent) throws IOException, AutomationException
The Map fires the event every time a new layer is added.
The PageLayout fires this event whenever a new element is added to the layout. Elements include not only graphics but data frames as well.
itemAdded
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void itemDeleted(IActiveViewEventsItemDeletedEvent theEvent) throws IOException, AutomationException
The PageLayout object fires this event whenever elements are deleted from the layout.
The Map object fires this event when a layer is removed.
itemDeleted
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void itemReordered(IActiveViewEventsItemReorderedEvent theEvent) throws IOException, AutomationException
The Map objects only fire this event whenever IMap::MoveLayer is called. In the ArcMap application, this occurs when you reorder layers in the table of contents. The Map will also fire this event when new layers are added.
The PageLayout object fires this event when changing the order of graphics. For example, IGraphicsContainer::BringToFront, PutElementOrder, SendToBack, SendBackward, and BringForward all fire this event. These functions are on ArcMap's Drawing menu under the Order pull right menu. Although the Map object is also a graphics container, it does not fire this event when its graphics are reordered.
itemReordered
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectionChanged(IActiveViewEventsSelectionChangedEvent theEvent) throws IOException, AutomationException
selectionChanged
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void viewRefreshed(IActiveViewEventsViewRefreshedEvent theEvent) throws IOException, AutomationException
Method that gets fired in response to IActiveView::Refresh and IActiveView::PartialRefresh.
This event is useful in the case where you're watching for something to change in the view and there aren't any specific events for that change (e.g. ContentsChanged, ItemAdded). You can always listen for this method as a last resort. Care must be taken however to be very efficient in your implementation of this event because it will be called quite often.
The event parameters directly coincide with the arguments to IActiveView::PartialRefresh. For additional information about the arguments, see the help for that method.
If the event object connects to both the layout and a map, then the view parameter tells you which object initiated the event.
In an implementation of this method you typically want to check the phase and respond to only one. Otherwise, your code will execute multiple times per drawing sequence.
viewRefreshed
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void afterDraw(IActiveViewEventsAfterDrawEvent theEvent) throws IOException, AutomationException
afterDraw
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void afterItemDraw(IActiveViewEventsAfterItemDrawEvent theEvent) throws IOException, AutomationException
AfterItemDraw can be used to execute after each individual item has drawn. Event firing can be an expensive operation (time consuming) when there are many layers in a map, however. As a result, the AfterItemDraw event is only fired when the IViewManger::VerboseEvents property is set to True. By default this property is False.
afterItemDraw
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void focusMapChanged(IActiveViewEventsFocusMapChangedEvent theEvent) throws IOException, AutomationException
focusMapChanged
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void spatialReferenceChanged(IActiveViewEventsSpatialReferenceChangedEvent theEvent) throws IOException, AutomationException
spatialReferenceChanged
in interface IActiveViewEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void boundsUpdated(ITransformEventsBoundsUpdatedEvent theEvent) throws IOException, AutomationException
boundsUpdated
in interface ITransformEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void visibleBoundsUpdated(ITransformEventsVisibleBoundsUpdatedEvent theEvent) throws IOException, AutomationException
visibleBoundsUpdated
in interface ITransformEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deviceFrameUpdated(ITransformEventsDeviceFrameUpdatedEvent theEvent) throws IOException, AutomationException
deviceFrameUpdated
in interface ITransformEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void resolutionUpdated(ITransformEventsResolutionUpdatedEvent theEvent) throws IOException, AutomationException
resolutionUpdated
in interface ITransformEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void rotationUpdated(ITransformEventsRotationUpdatedEvent theEvent) throws IOException, AutomationException
rotationUpdated
in interface ITransformEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void unitsUpdated(ITransformEventsUnitsUpdatedEvent theEvent) throws IOException, AutomationException
unitsUpdated
in interface ITransformEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |