|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.Map
public class Map
A container for the display and manipulation of map data.
A Map object is a container for map data. A Map object contains layers of both feature and graphic data.
The following is true for the ArcMap application model. Developers creating their own application may find some things different.
Every map document contains at least one Map object. Only one Map can have focus at a time and this Map is termed the focus map. A FocusMap property is conveniently placed on the IMxDocument interface. IMxDocument also has a Maps property which returns a reference (IMaps) to the entire collection of Maps. With IMaps you can get a create or delete Maps or get a reference to an existing Map.
All of the layers in a map share the same spatial reference. The Map's spatial reference is automatically set to the spatial reference of the first layer loaded. New layers loaded into a Map are projected to the Map's spatial reference if their spatial reference is different.
Map's are contained by MapFrames - the PageLayout object has a MapFrame and a MapFrame has a Map. Each Map, in turn, has a collection of Layers and MapSurrounds. Each MapSurround is also associated with a MapSurroundFrame. There are several types of Layers including FeatureLayers, FDOGraphicsLayers, and GroupLayers. MapSurrounds include Legends, NorthArrows, and ScaleBars.
Every Map has a Basic Graphics Layer where all graphics including labels are drawn by default. Users may create additional graphics layers called Groups or Annotation Target Layers all of which are managed by the CompositeGraphicsLayer.
com.esri.arcgis.carto.IMxDocument
,
Serialized FormConstructor Summary | |
---|---|
Map()
Constructs a Map using ArcGIS Engine. |
|
Map(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Map theMap = (Map) obj; |
Method Summary | |
---|---|
void |
activate(int hWnd)
Gives this view control of the specified window. |
void |
addBookmark(ISpatialBookmark bookmark)
Adds a bookmark to the collection. |
void |
addElement(IElement element,
int zorder)
Add a new graphic element to the layer. |
void |
addElements(IElementCollection elements,
int zorder)
Add new graphic elements to the layer. |
void |
addIActiveViewEventsListener(IActiveViewEvents theListener)
addIActiveViewEventsListener. |
void |
addIDynamicMapEventsListener(IDynamicMapEvents theListener)
addIDynamicMapEventsListener. |
void |
addIMapEventsListener(IMapEvents theListener)
addIMapEventsListener. |
void |
addLayer(ILayer layer)
Adds a layer to the map. |
void |
addLayers(IEnumLayer layers,
boolean autoArrange)
Adds multiple layers to the map, arranging them nicely if specified. |
void |
addMapSurround(IMapSurround mapSurround)
Adds a map surround to the map. |
void |
addStandaloneTable(IStandaloneTable table)
Adds a standalone table to the collection. |
void |
addTable(ITable table)
Adds a table to the collection. |
void |
animationRefresh(int phase,
Object data,
IEnvelope envelope)
Use to quickly redraw a phase that has it's own cache, i.e., a tracking layer. |
void |
animationRefreshShape(int phase,
Object data,
IGeometry geometry,
double symbolSizePoints)
Use to quickly redraw a phase that has it's own cache, i.e., a tracking layer. |
void |
boundsUpdated(ITransformEventsBoundsUpdatedEvent theEvent)
Notifies clients when the bounds is updated. |
void |
bringForward(IEnumElement elements)
Move the specified elements one step closer to the top of the stack of elements. |
void |
bringToFront(IEnumElement elements)
Make the specified elements draw in front of all other elements. |
void |
buildCache()
Build the spatial cache. |
void |
clear()
Empties the view contents. |
void |
clearLayers()
Removes all layers from the map. |
void |
clearMapSurrounds()
Removes all map surrounds from the map. |
void |
clearMasking(ILayer layer)
Clear masking layers on a layer. |
void |
clearSelection()
Clears the map selection. |
boolean |
completeRedrawNeeded()
Check if a complete redraw is needed. |
double |
computeDistance(IPoint p1,
IPoint p2)
Computes the distance between two points on the map and returns the result. |
ITimeExtent |
computeFullTimeExtent()
computeFullTimeExtent |
void |
contentsChanged()
Called by clients when view objects are modified. |
IMapSurround |
createMapSurround(IUID clsid,
IMapSurround optionalStyle)
Create and initialize a map surround. |
void |
deactivate()
Another view takes over the associated window. |
void |
delayDrawing(boolean delay)
Suspends drawing. |
void |
delayEvents(boolean delay)
Used to batch operations together to minimize notifications. |
void |
deleteAllElements()
Delete all the elements. |
void |
deleteElement(IElement element)
Delete the given element. |
void |
deleteLayer(ILayer layer)
Deletes a layer from the map. |
void |
deleteMapSurround(IMapSurround mapSurround)
Deletes a map surround from the map. |
void |
deviceFrameUpdated(ITransformEventsDeviceFrameUpdatedEvent theEvent)
Notifies clients when the device frame is updated. |
void |
displayFinished(IDisplayEventsDisplayFinishedEvent theEvent)
Notifies clients when drawing completes. |
void |
displayInvalidated(IDisplayEventsDisplayInvalidatedEvent theEvent)
Notifies clients when display is invalidated. |
void |
displayScrolled(IDisplayEventsDisplayScrolledEvent theEvent)
Notifies clients when display is scrolled. |
void |
displayStarted(IDisplayEventsDisplayStartedEvent theEvent)
Notifies clients when drawing starts. |
void |
draw(int hDC,
ITrackCancel trackCancel)
Draws the view to the specified device context. |
boolean |
elementSelected(IElement element)
Indicates if the element is selected. |
void |
emptyCache()
Empty the map cache. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
IFrameElement |
findFrame(Object frameObject)
Find the frame that contains the specified object. |
IEnumRelationshipClass |
findRelationshipClasses(IObjectClass objectClass,
int role)
Finds all relationship classes in the collection that reference the given object class in the specified role. |
void |
fireAfterDraw(int hDC)
Fire AfterDraw(esriViewForeground) event. |
void |
fireChangeFeatureClass(IFeatureClass oldClass,
IFeatureClass newClass)
Notifies listeners that the a layer's class has changed. |
void |
fireChangeTable(ITable oldTable,
ITable newTable)
Notifies listeners that the a layer's class has changed. |
void |
fireChangeVersion(IVersion oldVersion,
IVersion newVersion)
Notifies listeners that a version in the map changed. |
void |
fireLayerAdded(ILayer layer)
Notifies listeners that a layer has been added to the map. |
void |
fireLayerDeleted(ILayer layer)
Notifies listeners that a layer has been removed from the map. |
void |
fireLayerReordered(ILayer layer,
int toIndex)
Notifies listeners that a layer has been reordered the map. |
void |
forceGraphicSelectionDraw()
Call before using Output to cause graphic selection to be drawn. |
ILayer |
getActiveGraphicsLayer()
The active graphics layer. |
IActiveView |
getActiveView()
The Map object. |
IAnnotateMap |
getAnnotationEngine()
The annotation (label) engine the map will use. |
IEnvelope |
getAutoExtentBounds()
The bounds of the map displayed by the frame. |
IFeatureLayer |
getAutoExtentLayer()
Auto extent features. |
IMap |
getAutoExtentMap()
Auto extent map. |
double |
getAutoExtentMargin()
Auto extent margin. |
int |
getAutoExtentMarginUnits()
Auto extent margin units. |
double |
getAutoExtentScale()
The scale at which the map should be displayed. |
int |
getAutoExtentType()
The way in which the map extent of the frame is specified. |
IBarrierCollection |
getBarriers(IEnvelope pExtent)
The list of barriers and their weight for labeling. |
IBarrierCollection |
getBarriers2(IEnvelope pExtent,
ITrackCancel pTrackCancel)
The list of barriers and their weight for labeling. |
IBarrierCollection |
getBarriers3(IEnvelope pExtent,
double scale,
ITrackCancel pTrackCancel)
The list of barriers and their weight for labeling. |
IGraphicsLayer |
getBasicGraphicsLayer()
The basic graphics layer. |
IEnumSpatialBookmark |
getBookmarks()
The bookmarks. |
IEnvelope |
getCacheExtent()
Current cache extent. |
void |
getClassID(GUID[] pClassID)
getClassID |
IBorder |
getClipBorder()
An optional border drawn around ClipGeometry. |
Object |
getClipData()
Sets or returns extended clip type data, i.e., other Map when type is esriMapClipMapExtent. |
ISet |
getClipFilter()
Sets or returns the set of layers that will be excluded from clipping. |
IGeometry |
getClipGeometry()
A shape that layers in the map are clipped to. |
int |
getClipType()
Method used to clip layers in map. |
static String |
getClsid()
getClsid. |
void |
getContextMenu(double x,
double y,
IUID[] clsidMenu)
Called when a context menu should be displayed at the given xy location. |
String |
getCopyrightText()
Copyright information associated with the map. |
ITimeExtent |
getCurrentTimeExtent()
getCurrentTimeExtent |
double |
getDefaultTimeInterval()
getDefaultTimeInterval |
int |
getDefaultTimeIntervalUnits()
getDefaultTimeIntervalUnits |
double |
getDefaultTimeWindow()
getDefaultTimeWindow |
String |
getDescription()
Description of the map. |
String |
getDisplayDateFormat()
getDisplayDateFormat |
int |
getDisplaySpeed()
getDisplaySpeed |
String |
getDisplayTimeFormat()
getDisplayTimeFormat |
int |
getDistanceUnits()
The distance units for the map. |
ILayer |
getDomainDefiningLayer()
Returns the layer which defines map domain, 0 if domain is the union of all layers. |
IElement |
getDominantElement()
Dominant element. |
int |
getDynamicDrawRate()
The Dynamic draw rate in milliseconds. |
Object |
getElementOrder(IEnumElement elements)
Private order object. |
ISelection |
getElementSelection()
Object to use for element selection. |
int |
getElementSelectionCount()
The number of selected elements. |
tagRECT |
getExportFrame()
The device rectangle to export. |
IEnvelope |
getExtent()
The visible extent rectangle. |
IExtentStack |
getExtentStack()
The extent stack. |
ISelection |
getFeatureSelection()
The feature selection for the map. |
IMap |
getFocusMap()
The map that tools and controls act on. |
IEnvelope |
getFullExtent()
The full extent rectangle. |
ITimeExtent |
getFullTimeExtent()
getFullTimeExtent |
IGeoTransformationOperationSet |
getGeographicTransformations()
On-the-fly geographic transformations. |
IGraphicsContainer |
getGraphicsContainer()
The active graphics container. |
ILayer |
getLayer(int index)
The layer at the given index. |
int |
getLayerCount()
Number of layers in the map. |
IEnumLayer |
getLayers(IUID uid,
boolean recursive)
The layers in the map of the type specified in the uid. |
String |
getLevelMasking(ILayer maskedLayer,
ILayer maskingLayer)
The symbol levels for which the masking applies. |
void |
getLockedPan(boolean[] flag)
Check if the map can be panned. |
void |
getLockedZoom(boolean[] flag)
Check if the map can be zoomed. |
IMap |
getMap()
The Map object. |
double |
getMapScale()
The scale of the map as a representative fraction. |
IMapSurround |
getMapSurround(int index)
The map surround at the given index. |
int |
getMapSurroundCount()
Number of map surrounds associated with the map. |
int |
getMapUnits()
The units for the map. |
ISet |
getMaskedLayers()
The set of layers that are being masked. |
ISet |
getMaskingLayers(ILayer layer)
The masks for a layer. |
double |
getMaxScale()
The maximum scale for the cache to be built. |
String |
getName()
Name of the map. |
IBackground |
getNonFrameBackground()
Specify the background to use when drawing to destinations other than a frame. |
int |
getOutputBandSize()
Size allocated for each band when banding output. |
IOverposterProperties |
getOverposterProperties()
The overposter the map will use for labeling. |
IPageLayout |
getPageLayout()
The PageLayout object. |
void |
getPageSize(double[] widthInches,
double[] heightInches)
Gets the page size for the map. |
int |
getPlayOption()
getPlayOption |
double |
getReferenceScale()
The reference scale of the map as a representative fraction. |
IEnumRelationshipClass |
getRelationshipClasses()
The memory relationship classes. |
short |
getScreenCacheID(int phase,
Object data)
The screen cache ID that is used to draw the specified phase. |
IScreenDisplay |
getScreenDisplay()
The screen display used by the view. |
IEnumElement |
getSelectedElements()
The selected elements. |
ISelection |
getSelection()
The selection. |
IEnvelope |
getSelectionBounds(IDisplay display)
The bounds of the selection. |
int |
getSelectionCount()
Number of selected features. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
ISpatialReference |
getSpatialReference()
The spatial reference of the map. |
IStandaloneTable |
getStandaloneTable(int index)
The standalone table at the given index. |
int |
getStandaloneTableCount()
Number of standalone tables. |
ITable |
getTable(int index)
The table at the given index. |
int |
getTableCount()
Number of tables. |
ILayer |
getTimeExtentDefinitionLayer()
getTimeExtentDefinitionLayer |
int |
getTimeExtentOption()
getTimeExtentOption |
ITimeReference |
getTimeReference()
getTimeReference |
ITimeValue |
getTimeValue()
getTimeValue |
String |
getTipText(double x,
double y)
The tip text to display at the given location. |
int |
getTopFilterIndex()
Phase index that supplements TopFilterPhase. |
int |
getTopFilterPhase()
The highest phase in the drawing order that uses a display filter. |
int |
hashCode()
the hashcode for this object |
boolean |
hasTimeData()
hasTimeData |
IMap |
hitTestMap(IPoint location)
Returns any maps present in the view at the given location. |
void |
insertLayer(ILayer pLayer,
boolean autoArrange,
int position)
Inserts a layer at the given position. |
void |
insertLayerInGroup(IGroupLayer pGroup,
ILayer pLayer,
boolean autoArrange,
int position)
Inserts a layer at a given index of the map's group layer. |
void |
insertLayers(IEnumLayer pLayers,
boolean autoArrange,
int position)
Inserts layers at the given position. |
void |
insertLayersInGroup(IGroupLayer pGroup,
IEnumLayer pLayer,
boolean autoArrange,
int position)
Inserts layers at a given index of the map's group layer. |
boolean |
isActive()
Indicates if view is active or not. |
boolean |
isAutoCacheActive()
Indicates whether the autocache is active. |
boolean |
isCacheable()
Indicates whether a map cache can be created. |
boolean |
isClipGridAndGraticules()
Clip grids and grticules to data extent |
boolean |
isConserveMemory()
Indicates whether to be conservative when allocating resources. |
boolean |
isDelayBackgroundDraw()
Indicates if the background should draw immediately. |
void |
isDirty()
isDirty |
boolean |
isDisplayEachTimestamp()
isDisplayEachTimestamp |
boolean |
isDrawing()
Indicates whether the view is currently drawing or not. |
boolean |
isDynamicMapEnabled()
Indicates if dynamic map is turned on or off. |
boolean |
isDynamicTimeRefresh()
isDynamicTimeRefresh |
boolean |
isExpanded()
Indicates if the Map is expanded. |
boolean |
isExternalDrawing(int phase)
Indicates if external clients are drawing in response to the specified phase. |
boolean |
isFramed()
Indicates if map is drawn in a frame rather than on the whole window. |
boolean |
isLayerVisible(ILayer layer)
Check if layer is visible. |
void |
isLayerVisibleEx(ILayer layer,
boolean[] isLayerVisible,
boolean[] isParentLayerVisible)
Check if layer is visible. |
boolean |
isMapActivated()
Indicates if the focus map is activated. |
boolean |
isProgressiveDrawing()
Indicates whether the view should progressively update the window during drawing. |
boolean |
isScaleLimit()
Indicates whether there is a scale limit. |
boolean |
isShowRulers()
Indicates if rulers are visible. |
boolean |
isShowScrollBars()
Indicates if scrollbars are visible. |
boolean |
isShowSelection()
Indicates if selection is visible. |
boolean |
isShowTime()
isShowTime |
boolean |
isSimulateLayerEffectsInLegends()
Indicates whether to simulate transparency and other effects in legends. |
boolean |
isSpatialReferenceLocked()
Indicates whether the spatial reference is prevented from being changed. |
boolean |
isUseMasking()
Indicates whether to use masking. |
boolean |
isUsesFilter()
Indicates if the current object draws using a filter. |
boolean |
isUsesPageCoordinates()
Indicates whether view uses page coordinates. |
boolean |
isUseSubPixelRendering()
Indicates whether the dynamic map is rendered in Sub Pixels or Full Pixels (snap to the nearest discrete pixel). |
boolean |
isUseSymbolLevels()
Indicates if the Map draws using symbol levels. |
boolean |
isVerboseEvents()
Indicates whether to expand or limit the number of events that are fired. |
void |
load(IStream pstm)
load |
IEnumElement |
locateElements(IPoint point,
double tolerance)
Returns the elements at the given coordinate. |
IEnumElement |
locateElementsByEnvelope(IEnvelope envelope)
Returns the elements inside the given envelope. |
void |
moveBookmarkTo(ISpatialBookmark bookmark,
int index)
Moves a bookmark in the collection. |
void |
moveElementFromGroup(IGroupElement group,
IElement element,
int zorder)
Move the element from the group to the container. |
void |
moveElementToGroup(IElement element,
IGroupElement group)
Move the element from the container to the group. |
void |
moveLayer(ILayer layer,
int toIndex)
Moves a layer to another position. |
void |
moveLayerEx(IGroupLayer pFromGroup,
IGroupLayer pToGroup,
ILayer pLayer,
int newPosition)
Moves the layer with in the map. |
IElement |
next()
Returns the next graphic in the container. |
void |
onMessage(int msg,
int wParam,
int lParam)
Call from your application's message loop to enable automatic resizing and keyboard accelerators. |
void |
output(int hDC,
int dpi,
tagRECT pixelBounds,
IEnvelope visibleBounds,
ITrackCancel trackCancel)
Renders the view to the specified DC. |
void |
partialRefresh(int phase,
Object data,
IEnvelope envelope)
Draws the specified view phase. |
void |
partialRefreshShape(int phase,
Object data,
IGeometry geometry,
double symbolSizePoints)
Refreshes the specified shape on the specified view phase. |
void |
printerChanged(IPrinter printer)
Called by application when printer changes. |
void |
putElementOrder(Object order)
Private order object. |
void |
readExternal(ObjectInput in)
|
void |
recalcFullExtent()
Forces the full extent to be recalculated. |
void |
refresh()
Causes the entire view to draw. |
void |
refreshAutoCache()
Refresh the autocache. |
void |
refreshCaches()
Reallocate the display caches. |
void |
refreshItem(Object data)
Use to redraw a specific item and the content above it. |
void |
removeAllBookmarks()
Removes all bookmarks. |
void |
removeAllStandaloneTables()
Removes all standalone tables from the collection. |
void |
removeAllTables()
Removes all tables from the collection. |
void |
removeBookmark(ISpatialBookmark bookmark)
Removes a bookmark from the collection. |
void |
removeIActiveViewEventsListener(IActiveViewEvents theListener)
removeIActiveViewEventsListener. |
void |
removeIDynamicMapEventsListener(IDynamicMapEvents theListener)
removeIDynamicMapEventsListener. |
void |
removeIMapEventsListener(IMapEvents theListener)
removeIMapEventsListener. |
void |
removeStandaloneTable(IStandaloneTable table)
Removes the standalone table from the collection. |
void |
removeTable(ITable table)
Removes a table from the collection. |
void |
reset()
Reset internal cursor so that Next returns the first element. |
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 |
selectAllElements()
Selects all elements. |
void |
selectByShape(IGeometry shape,
ISelectionEnvironment env,
boolean justOne)
Selects features in the map given a shape and a selection environment (optional). |
IElement |
selectedElement(int index)
Returns the nth selected element. |
void |
selectElement(IElement element)
Selects the specified element. |
void |
selectElements(IEnumElement elements)
Selects the specified elements. |
void |
selectFeature(ILayer layer,
IFeature feature)
Selects a feature. |
void |
selectionChanged(ISelectionEventsSelectionChangedEvent theEvent)
Call this function to fire the selection changed event. |
ISelectionTracker |
selectionTracker(int index)
Returns the tracker for the nth selected element. |
void |
sendBackward(IEnumElement elements)
Move the specified elements one step closer to the bottom of the stack of elements. |
void |
sendToBack(IEnumElement elements)
Make the specified elements draw behind all other elements. |
void |
setActiveGraphicsLayerByRef(ILayer graphicsLayer)
The active graphics layer. |
void |
setAnnotationEngineByRef(IAnnotateMap annotateMap)
The annotation (label) engine the map will use. |
void |
setAreaOfInterest(IEnvelope rhs1)
Area of interest for the map. |
void |
setAutoCacheActive(boolean active)
Indicates whether the autocache is active. |
void |
setAutoExtentBounds(IEnvelope bounds)
The bounds of the map displayed by the frame. |
void |
setAutoExtentLayerByRef(IFeatureLayer layer)
Auto extent features. |
void |
setAutoExtentMapByRef(IMap map)
Auto extent map. |
void |
setAutoExtentMargin(double margin)
Auto extent margin. |
void |
setAutoExtentMarginUnits(int units)
Auto extent margin units. |
void |
setAutoExtentScale(double scale)
The scale at which the map should be displayed. |
void |
setAutoExtentType(int type)
The way in which the map extent of the frame is specified. |
void |
setClipBorder(IBorder border)
An optional border drawn around ClipGeometry. |
void |
setClipBounds(IGeometry rhs1)
Specify a boundary to clip to. |
void |
setClipData(Object data)
Sets or returns extended clip type data, i.e., other Map when type is esriMapClipMapExtent. |
void |
setClipFilter(ISet layers)
Sets or returns the set of layers that will be excluded from clipping. |
void |
setClipGeometry(IGeometry clipGeometry)
A shape that layers in the map are clipped to. |
void |
setClipGridAndGraticules(boolean pClipGridAndGraticules)
Clip grids and grticules to data extent |
void |
setClipType(int type)
Method used to clip layers in map. |
void |
setConserveMemory(boolean flag)
Indicates whether to be conservative when allocating resources. |
void |
setCopyrightText(String copyright)
Copyright information associated with the map. |
void |
setCurrentTimeExtentByRef(ITimeExtent timeExtent)
setCurrentTimeExtentByRef |
void |
setDefaultTimeInterval(double interval)
setDefaultTimeInterval |
void |
setDefaultTimeIntervalUnits(int units)
setDefaultTimeIntervalUnits |
void |
setDefaultTimeWindow(double duration)
setDefaultTimeWindow |
void |
setDelayBackgroundDraw(boolean flag)
Indicates if the background should draw immediately. |
void |
setDescription(String descr)
Description of the map. |
void |
setDisplayDateFormat(String dateFormat)
setDisplayDateFormat |
void |
setDisplayEachTimestamp(boolean value)
setDisplayEachTimestamp |
void |
setDisplaySpeed(int speed)
setDisplaySpeed |
void |
setDisplayTimeFormat(String timeFormat)
setDisplayTimeFormat |
void |
setDistanceUnits(int unitsCode)
The distance units for the map. |
void |
setDomainDefiningLayer(ILayer layer)
Returns the layer which defines map domain, 0 if domain is the union of all layers. |
void |
setDominantElementByRef(IElement dominantItem)
Dominant element. |
void |
setDynamicDrawRate(int dynamicDrawRateMS)
The Dynamic draw rate in milliseconds. |
void |
setDynamicMapEnabled(boolean isEnable)
Indicates if dynamic map is turned on or off. |
void |
setDynamicTimeRefresh(boolean flag)
setDynamicTimeRefresh |
void |
setElementSelectionByRef(ISelection selectionObject)
Object to use for element selection. |
void |
setExpanded(boolean expanded)
Indicates if the Map is expanded. |
void |
setExtent(IEnvelope extent)
The visible extent rectangle. |
void |
setExternalDrawing(int phase,
boolean externalDrawing)
Indicates if external clients are drawing in response to the specified phase. |
void |
setFeatureSelectionByRef(ISelection selection)
The feature selection for the map. |
void |
setFocusMapByRef(IMap activeMap)
The map that tools and controls act on. |
void |
setFullExtent(IEnvelope extent)
The full extent rectangle. |
void |
setFullTimeExtentByRef(ITimeExtent timeExtent)
setFullTimeExtentByRef |
void |
setIsFramed(boolean flag)
Indicates if map is drawn in a frame rather than on the whole window. |
void |
setIsMapActivated(boolean isMapActivated)
Indicates if the focus map is activated. |
void |
setLevelMasking(ILayer maskedLayer,
ILayer maskingLayer,
String pLevels)
The symbol levels for which the masking applies. |
void |
setMapScale(double scaleRF)
The scale of the map as a representative fraction. |
void |
setMapUnits(int unitsCode)
The units for the map. |
void |
setMaskingLayers(ILayer layer,
ISet maskingLayers)
The masks for a layer. |
void |
setMaxScale(double pMaxScale)
The maximum scale for the cache to be built. |
void |
setName(String name)
Name of the map. |
void |
setNonFrameBackgroundByRef(IBackground rhs1)
The background to use when drawing to destinations other than a frame. |
void |
setOutputBandSize(int kilobytes)
Size allocated for each band when banding output. |
void |
setOverposterPropertiesByRef(IOverposterProperties overposterProperties)
The overposter the map will use for labeling. |
void |
setPageSize(double widthInches,
double heightInches)
Sets the page size for the map (optional). |
void |
setPlayOption(int option)
setPlayOption |
void |
setProgressiveDrawing(boolean flag)
Indicates whether the view should progressively update the window during drawing. |
void |
setReferenceScale(double scaleRF)
The reference scale of the map as a representative fraction. |
void |
setScaleLimit(boolean limited)
Indicates whether there is a scale limit. |
void |
setSelectionByRef(ISelection selection)
The selection. |
void |
setShowRulers(boolean showRulers)
Indicates if rulers are visible. |
void |
setShowScrollBars(boolean showScrollBars)
Indicates if scrollbars are visible. |
void |
setShowSelection(boolean showRulers)
Indicates if selection is visible. |
void |
setShowTime(boolean flag)
setShowTime |
void |
setSimulateLayerEffectsInLegends(boolean flag)
Indicates whether to simulate transparency and other effects in legends. |
void |
setSpatialReferenceByRef(ISpatialReference spatialRef)
The spatial reference of the map. |
void |
setSpatialReferenceLocked(boolean locked)
Indicates whether the spatial reference is prevented from being changed. |
void |
setTimeExtentDefinitionLayerByRef(ILayer layer)
setTimeExtentDefinitionLayerByRef |
void |
setTimeExtentOption(int option)
setTimeExtentOption |
void |
setTimeReferenceByRef(ITimeReference timeReference)
setTimeReferenceByRef |
void |
setTimeValueByRef(ITimeValue time)
setTimeValueByRef |
void |
setTopFilterIndex(int phaseIndex)
Phase index that supplements TopFilterPhase. |
void |
setTopFilterPhase(int phase)
The highest phase in the drawing order that uses a display filter. |
void |
setUseMasking(boolean flag)
Indicates whether to use masking. |
void |
setUseSubPixelRendering(boolean useSubPixelRendering)
Indicates whether the dynamic map is rendered in Sub Pixels or Full Pixels (snap to the nearest discrete pixel). |
void |
setUseSymbolLevels(boolean flag)
Indicates if the Map draws using symbol levels. |
void |
setVerboseEvents(boolean verboseEvents)
Indicates whether to expand or limit the number of events that are fired. |
void |
sortBookmarks(boolean ascending)
Adds a bookmark to the collection. |
void |
suppressForegroundDraw()
Call before using Output to prevent AfterDraw(esriViewForeground) from being fired. |
void |
unitsUpdated(ITransformEventsUnitsUpdatedEvent theEvent)
Notifies clients when the units are updated. |
void |
unselectAllElements()
Unselects all elements. |
void |
unselectElement(IElement element)
Unselects the specified element. |
void |
unselectElements(IEnumElement elements)
Unselects the specified elements. |
void |
updateElement(IElement element)
The graphic element's properties have changed. |
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 Map() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic Map(Object obj) throws IOException
Map theMap = (Map) obj;
obj
to Map
.
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 addIActiveViewEventsListener(IActiveViewEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.carto.IActiveViewEvents interface.
IOException
- If there are communications problems.public void removeIActiveViewEventsListener(IActiveViewEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.carto.IActiveViewEvents interface.
IOException
- If there are communications problems.public void addIMapEventsListener(IMapEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.carto.IMapEvents interface.
IOException
- If there are communications problems.public void removeIMapEventsListener(IMapEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.carto.IMapEvents interface.
IOException
- If there are communications problems.public void addIDynamicMapEventsListener(IDynamicMapEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.display.IDynamicMapEvents interface.
IOException
- If there are communications problems.public void removeIDynamicMapEventsListener(IDynamicMapEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.display.IDynamicMapEvents interface.
IOException
- If there are communications problems.public String getName() throws IOException, AutomationException
Each map has a name controlled by this property. The default name of the first map is 'Layers' and new maps get the name 'New Data Frame', 'New Data Frame 2' and so on. The name of each map appears in the Display and Source content views in the table of contents.
getName
in interface IBasicMap
getName
in interface IBasicMap2
getName
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
Each map has a name controlled by this property. The default name of the first map is 'Layers' and new maps get the name 'New Data Frame', 'New Data Frame 2' and so on. The name of each map appears in the Display and Source content views in the table of contents.
setName
in interface IBasicMap
setName
in interface IBasicMap2
setName
in interface IMap
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
Each map has a description controlled by this property. Maps do not have a description by default.
getDescription
in interface IBasicMap
getDescription
in interface IBasicMap2
getDescription
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(String descr) throws IOException, AutomationException
Each map has a description controlled by this property. Maps do not have a description by default.
setDescription
in interface IBasicMap
setDescription
in interface IBasicMap2
setDescription
in interface IMap
descr
- The descr (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAreaOfInterest(IEnvelope rhs1) throws IOException, AutomationException
setAreaOfInterest
in interface IBasicMap
setAreaOfInterest
in interface IBasicMap2
setAreaOfInterest
in interface IMap
rhs1
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayer.getAreaOfInterest()
public int getLayerCount() throws IOException, AutomationException
LayerCount returns the number of layers in the map that implement IDataLayer.
LayerCount does not include the basic graphics layer (CompositeGraphicLayer) that each map contains nor does it return the graphic layers that can be created into this composite layer.
getLayerCount
in interface IBasicMap
getLayerCount
in interface IBasicMap2
getLayerCount
in interface IMap
getLayerCount
in interface IMapLayers
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDataLayer
public ILayer getLayer(int index) throws IOException, AutomationException
getLayer
in interface IBasicMap
getLayer
in interface IBasicMap2
getLayer
in interface IMap
getLayer
in interface IMapLayers
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumLayer getLayers(IUID uid, boolean recursive) throws IOException, AutomationException
getLayers
in interface IBasicMap
getLayers
in interface IBasicMap2
getLayers
in interface IMap
getLayers
in interface IMapLayers
uid
- A reference to a com.esri.arcgis.system.IUID (in, optional, pass 0 if not required)recursive
- The recursive (in, optional, pass true if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMapSurroundCount() throws IOException, AutomationException
getMapSurroundCount
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.getMapSurround(int)
,
IMap.addMapSurround(com.esri.arcgis.carto.IMapSurround)
public IMapSurround getMapSurround(int index) throws IOException, AutomationException
getMapSurround
in interface IMap
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMapUnits() throws IOException, AutomationException
MapControl m = new MapControl();IMap pMap;ISpatialReference pSpatialReference;IProjectedCoordinateSystem pProjectedCoordinateSystem;ILinearUnit pLinearUnit;ISpatialReferenceInfo pSpatialReferenceInfo;
pMap = m.getMap();System.out.println(pMap.getMapUnits());pSpatialReference = pMap.getSpatialReference();pProjectedCoordinateSystem =new IProjectedCoordinateSystemProxy(pSpatialReference);pLinearUnit = pProjectedCoordinateSystem.getCoordinateUnit();
pSpatialReferenceInfo =
new ISpatialReferenceInfoProxy(pLinearUnit);System.out.println(pSpatialReferenceInfo.getFactoryCode());
getMapUnits
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapUnits(int unitsCode) throws IOException, AutomationException
setMapUnits
in interface IMap
unitsCode
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDistanceUnits() throws IOException, AutomationException
The units - for example, feet, miles, meters, kilometers - ArcMap uses to report measurements, dimensions of shapes, and distance tolerances and offsets.
getDistanceUnits
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDistanceUnits(int unitsCode) throws IOException, AutomationException
setDistanceUnits
in interface IMap
unitsCode
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference() throws IOException, AutomationException
getSpatialReference
in interface IBasicMap
getSpatialReference
in interface IBasicMap2
getSpatialReference
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSpatialReferenceByRef(ISpatialReference spatialRef) throws IOException, AutomationException
setSpatialReferenceByRef
in interface IBasicMap
setSpatialReferenceByRef
in interface IBasicMap2
setSpatialReferenceByRef
in interface IMap
spatialRef
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMapScale() throws IOException, AutomationException
getMapScale
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMapScale(double scaleRF) throws IOException, AutomationException
setMapScale
in interface IMap
scaleRF
- The scaleRF (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getReferenceScale() throws IOException, AutomationException
All symbols are drawn relative to the scale value set in this property. By default this value is zero. Symbol size is true at the reference scale. When the reference scale is 0, symbols are always drawn at the same size regardless of the map scale (ScaleRatio). For example, if you set your labels to display with 10 pt font, they will appear as 10 pt text at any map scale. When the reference scale is greater than 0, symbols are drawn at a size relative to the map scale. For example, if you set your labels to display with 10 pt font and have a reference scale of 10,000, the labels will appear as 10 pt only at that map scale; as you zoom in, the size of all symbols increases because the size of the symbols is based on the smaller scale.
The ReferenceScale property is a shortcut to IDisplayTransformation::ReferenceScale.
getReferenceScale
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReferenceScale(double scaleRF) throws IOException, AutomationException
setReferenceScale
in interface IMap
scaleRF
- The scaleRF (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isFramed() throws IOException, AutomationException
When creating a custom application, if you want the display to take over the window it's drawing in, set IsFramed to FALSE. This will add scrollbars (IScreenDisplay::UseScrollBars = TRUE) as necessary and keeps the device frame in sync with the window extent. Setting IsFramed to TRUE means that the display is drawing on some extent within the window. In this case, it won't show scrollbars and it won't automatically update the device frame.
For example, in the ArcMap application, in layout view where each Map resides inside a separate MapFrame, each Map has it IsFramed property set to TRUE. In data view, the opposite is true, a Map's display fits the entire window; in this view, all Map's have IsFramed set to FALSE, not just the focus map.
The IsFramed property also sets the IsFirstCacheTransparent property. When a Map is drawing in layout view, the PageLayout object has its ScreenDisplay and each Map has its own separate ScreenDisplay. This means that the layout has it's display cache(s) and the maps have their own. If the bottom cache of each map was opaque, you wouldn't be able to see through a map onto layout elements below it. Setting IsFirstCacheTransparent on the maps in layout view lets you see through the maps.
This property is really a shortcut to IScreenDisplay::IsFramed.
If you are working with Map's inside of ArcMap these settings should not be touched. Only use this property when building a low level appliation that uses a display to draw on a frame on a window.
isFramed
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.com.esri.arcgis.carto.IScreenDisplay
public void setIsFramed(boolean flag) throws IOException, AutomationException
setIsFramed
in interface IMap
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeometry getClipGeometry() throws IOException, AutomationException
Use the ClipGeometry property to shape the area the Map is drawn in. For example, if you had a map of the United States that contained many layers, you could set the Map's ClipGeometry equal to the geometry of a particular state thereby telling the map to only draw the map data falling within the particular state's area.
The scripts below demonstrate this.
In the ArcMap user interface, the same functionality is available on the map's data frame properties page. Right-click on a map in the table of contents and select Properties. Select the Data Frame tab and look at 'Clip to Shape'. Under 'Specify a Shape', select 'Outline of Data Graphics'. You can also specify a 'Custom Extent' or use the 'Outline of Features'.
The ClipBorder property puts a border around the cut out.
By default there is no clip geometry and no clip border.
MapControl pMapControl = new MapControl();IMap pMap;IViewManager pViewManager;IEnumElement pEnumElement;IElement pElement;IActiveView pActiveView;IBorder pBorder;
pMap = pMapControl.getMap();
pViewManager = new IViewManagerProxy(pMap);
pEnumElement = new IEnumElementProxy( pViewManager.getElementSelection());
pEnumElement.reset();
pElement = pEnumElement.next();
if(pElement != null){
if(pElement.getGeometry().getGeometryType() == esriGeometryType.esriGeometryPolygon){
pBorder = new SymbolBorder();
pMap.setClipGeometry(pElement.getGeometry());
pMap.setClipBorder(pBorder);
pMapControl.getActiveView().refresh();
}
}
getClipGeometry
in interface IMap
getClipGeometry
in interface IMapClipOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.getClipBorder()
public void setClipGeometry(IGeometry clipGeometry) throws IOException, AutomationException
setClipGeometry
in interface IMap
setClipGeometry
in interface IMapClipOptions
clipGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addLayer(ILayer layer) throws IOException, AutomationException
addLayer
in interface IBasicMap
addLayer
in interface IBasicMap2
addLayer
in interface IMap
addLayer
in interface IMapLayers
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.IMap.addLayers(com.esri.arcgis.carto.IEnumLayer, boolean)
,
IMap.getLayerCount()
public void addLayers(IEnumLayer layers, boolean autoArrange) throws IOException, AutomationException
addLayers
in interface IBasicMap
addLayers
in interface IBasicMap2
addLayers
in interface IMap
addLayers
in interface IMapLayers
layers
- A reference to a com.esri.arcgis.carto.IEnumLayer (in)autoArrange
- The autoArrange (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.addLayer(com.esri.arcgis.carto.ILayer)
,
IMap.getLayerCount()
public void deleteLayer(ILayer layer) throws IOException, AutomationException
deleteLayer
in interface IBasicMap
deleteLayer
in interface IBasicMap2
deleteLayer
in interface IMap
deleteLayer
in interface IMapLayers
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 void moveLayer(ILayer layer, int toIndex) throws IOException, AutomationException
MapControl pMapControl = new MapControl();IMap pMap = pMapControl.getMap();ILayer pLayer = pMap.getLayer(0);pLayer = pMap.moveLayer(pLayer, pMap.getLayerCount() - 1);
moveLayer
in interface IMap
moveLayer
in interface IMapLayers
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)toIndex
- The toIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearLayers() throws IOException, AutomationException
clearLayers
in interface IBasicMap
clearLayers
in interface IBasicMap2
clearLayers
in interface IMap
clearLayers
in interface IMapLayers
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMapSurround createMapSurround(IUID clsid, IMapSurround optionalStyle) throws IOException, AutomationException
createMapSurround
in interface IMap
clsid
- A reference to a com.esri.arcgis.system.IUID (in)optionalStyle
- A reference to a com.esri.arcgis.carto.IMapSurround (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.createMapSurround(com.esri.arcgis.system.IUID, com.esri.arcgis.carto.IMapSurround)
,
IMap.deleteMapSurround(com.esri.arcgis.carto.IMapSurround)
,
IMap.addMapSurround(com.esri.arcgis.carto.IMapSurround)
,
IMapFrame.createSurroundFrame(com.esri.arcgis.system.IUID, com.esri.arcgis.carto.IMapSurround)
,
IMap.clearMapSurrounds()
public void addMapSurround(IMapSurround mapSurround) throws IOException, AutomationException
addMapSurround
in interface IMap
mapSurround
- A reference to a com.esri.arcgis.carto.IMapSurround (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.createMapSurround(com.esri.arcgis.system.IUID, com.esri.arcgis.carto.IMapSurround)
,
IMap.deleteMapSurround(com.esri.arcgis.carto.IMapSurround)
,
IMap.addMapSurround(com.esri.arcgis.carto.IMapSurround)
,
IMap.clearMapSurrounds()
public void deleteMapSurround(IMapSurround mapSurround) throws IOException, AutomationException
deleteMapSurround
in interface IMap
mapSurround
- A reference to a com.esri.arcgis.carto.IMapSurround (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.createMapSurround(com.esri.arcgis.system.IUID, com.esri.arcgis.carto.IMapSurround)
,
IMap.deleteMapSurround(com.esri.arcgis.carto.IMapSurround)
,
IMap.addMapSurround(com.esri.arcgis.carto.IMapSurround)
,
IMap.clearMapSurrounds()
public void clearMapSurrounds() throws IOException, AutomationException
clearMapSurrounds
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.createMapSurround(com.esri.arcgis.system.IUID, com.esri.arcgis.carto.IMapSurround)
,
IMap.deleteMapSurround(com.esri.arcgis.carto.IMapSurround)
,
IMap.addMapSurround(com.esri.arcgis.carto.IMapSurround)
,
IMap.clearMapSurrounds()
public double computeDistance(IPoint p1, IPoint p2) throws IOException, AutomationException
computeDistance
in interface IMap
p1
- A reference to a com.esri.arcgis.geometry.IPoint (in)p2
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.getDistanceUnits()
,
IMap.getMapUnits()
public IGraphicsLayer getBasicGraphicsLayer() throws IOException, AutomationException
getBasicGraphicsLayer
in interface IBasicMap
getBasicGraphicsLayer
in interface IBasicMap2
getBasicGraphicsLayer
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.getActiveGraphicsLayer()
public ILayer getActiveGraphicsLayer() throws IOException, AutomationException
getActiveGraphicsLayer
in interface IBasicMap
getActiveGraphicsLayer
in interface IBasicMap2
getActiveGraphicsLayer
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setActiveGraphicsLayerByRef(ILayer graphicsLayer) throws IOException, AutomationException
setActiveGraphicsLayerByRef
in interface IBasicMap
setActiveGraphicsLayerByRef
in interface IBasicMap2
setActiveGraphicsLayerByRef
in interface IMap
graphicsLayer
- 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 IBorder getClipBorder() throws IOException, AutomationException
If a ClipGeometry has been set, you have the option of drawing a border around the clipped map. Use the ClipBorder propety to specify the type of border drawn.
Use the ClipGeometry property to shape the area the Map is drawn in. For example, if you had a map of the United States that contained many layers, you could set the Map's ClipGeometry equal to the geometry of a particular state thereby telling the map to only draw the map data falling within the particular state's area.
By default there is no clip geometry or clip border.
MapControl pMapControl = new MapControl();IMap pMap;IViewManager pViewManager;IEnumElement pEnumElement;IElement pElement;IActiveView pActiveView;IBorder pBorder;
pMap = pMapControl.getMap();pViewManager = new IViewManagerProxy(pMap);pEnumElement = new IEnumElementProxy( pViewManager.getElementSelection());pEnumElement.reset();
pElement = pEnumElement.next();if(pElement != null){if(pElement.getGeometry().getGeometryType() ==esriGeometryType.esriGeometryPolygon){pBorder = new SymbolBorder();pMap.setClipGeometry(pElement.getGeometry());pMap.setClipBorder(pBorder);pMapControl.getActiveView().refresh();}}
getClipBorder
in interface IMap
getClipBorder
in interface IMapClipOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap.getClipGeometry()
public void setClipBorder(IBorder border) throws IOException, AutomationException
setClipBorder
in interface IMap
setClipBorder
in interface IMapClipOptions
border
- A reference to a com.esri.arcgis.carto.IBorder (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectFeature(ILayer layer, IFeature feature) throws IOException, AutomationException
Adds the feature to the feature layer's selection set. For example, the Editor's 'Create New Feature' task uses this method to select the new feature it has just created. This method also calls IActiveViewEvents::SelectionChanged to notify all listeners of the event.
selectFeature
in interface IMap
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)feature
- A reference to a com.esri.arcgis.geodatabase.IFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSelectionCount() throws IOException, AutomationException
getSelectionCount
in interface IBasicMap
getSelectionCount
in interface IBasicMap2
getSelectionCount
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void clearSelection() throws IOException, AutomationException
clearSelection
in interface IBasicMap
clearSelection
in interface IBasicMap2
clearSelection
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelection getFeatureSelection() throws IOException, AutomationException
ArcMap has two different selections, a feature selection and an element selection. Two different objects represent these selections and both implement the ISelection interface. The feature selection object additionally implements IEnumFeature and the element selection object IEnumElement. The ISelection interface is used for clipboard type operations and the IEnum interfaces are used to loop through the items in the collection.
When you ask for the FeatureSelection from IMap you are returned an ISelection but you can perform a query interface for IEnumFeature and usually do so. However, if you get the selection via IActiveView::Selection, the selection can either be an element selection or a feature selection depending on which one is currently active - only one of the selections can be active at a time. Use FeatureSelection to ensure a reference to the correct selection.
IEnumFeature works on all of the FeatureLayers as a whole. Each FeatureLayer has a ISelectionSet and IEnumFeature steps through all of these as though there was only one. Because IEnumFeature works with all the FeatureLayers, you cannot use it to loop through the features belonging to just one FeatureLayer.
Note, only the shape field is guaranteed with the selection. This is the default and exists for performance reasons. The IMap::FeatureSelection property is typically used to draw the map selection, not access feature attributes. This is particularly noticeable with shapefiles and coverage but also in geodatabases if the selection is large enough. Use IEnumFeatureSetup::AllFields to set a flag indicating all fields be returned with the selection. If you want to loop through the map selection to perform an operation, it is typically best to access each layer's selection rather than the entire map's selection. See the example for a sample of each.
getFeatureSelection
in interface IBasicMap
getFeatureSelection
in interface IBasicMap2
getFeatureSelection
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IViewManager.setElementSelectionByRef(com.esri.arcgis.carto.ISelection)
,
IActiveView.getSelection()
public void setFeatureSelectionByRef(ISelection selection) throws IOException, AutomationException
setFeatureSelectionByRef
in interface IBasicMap
setFeatureSelectionByRef
in interface IBasicMap2
setFeatureSelectionByRef
in interface IMap
selection
- A reference to a com.esri.arcgis.carto.ISelection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectByShape(IGeometry shape, ISelectionEnvironment env, boolean justOne) throws IOException, AutomationException
SelectByShape searches for features in all layers of type IFeatureLayer, that are intersected by the input shape. Each layer is searched only if its IFeatureLayer::Selectable property is set to TRUE.
The ISelectionEnvironment parameter determines the selection outcome. For example, a new selection may be created or the features found may be added to the existing feature selection. See the esriSelectionOption enumeration for the different selection options. The application's selection environment is available via IMxApplication::SelectionEnvironment.
The justOne parameter tells the search to stop once it has found one feature.
After the search is complete, IActiveViewEvents::SelectionChanged is called to notify all listeners the selection has changed.
selectByShape
in interface IBasicMap
selectByShape
in interface IBasicMap2
selectByShape
in interface IMap
shape
- A reference to a com.esri.arcgis.geometry.IGeometry (in)env
- A reference to a com.esri.arcgis.carto.ISelectionEnvironment (in)justOne
- The justOne (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delayEvents(boolean delay) throws IOException, AutomationException
All calls made to IActiveViewEvents::SelectionChanged are ignored when DelayEvents is set to TRUE. The event is automatically fired when DelayEvents is set back to FALSE to ensure that clients ultimately receive the event.
This method is typically used when changing the Map's selection. Without DelayEvents set to TRUE, the SelectionChanged event would fire each time a feature is added or removed; instead, DelayEvents is used so that only one notification is sent when the entire selection operation is complete.
delayEvents
in interface IMap
delay
- The delay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPageSize(double widthInches, double heightInches) throws IOException, AutomationException
setPageSize
in interface IMap
widthInches
- The widthInches (in)heightInches
- The heightInches (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getPageSize(double[] widthInches, double[] heightInches) throws IOException, AutomationException
getPageSize
in interface IMap
widthInches
- The widthInches (out: use single element array)heightInches
- The heightInches (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IBarrierCollection getBarriers(IEnvelope pExtent) throws IOException, AutomationException
getBarriers
in interface IMap
pExtent
- 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 setUseSymbolLevels(boolean flag) throws IOException, AutomationException
setUseSymbolLevels
in interface IMap
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUseSymbolLevels() throws IOException, AutomationException
Determines whether Symbol Level Drawing is enabled for a Map.
To set up Symbol Level Drawing:
isUseSymbolLevels
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExpanded(boolean expanded) throws IOException, AutomationException
setExpanded
in interface IMap
expanded
- The expanded (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isExpanded() throws IOException, AutomationException
Use this property to expand or collapse the Map in the table of contents. By default a Map is expanded.
isExpanded
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAnnotationEngineByRef(IAnnotateMap annotateMap) throws IOException, AutomationException
setAnnotationEngineByRef
in interface IMap
annotateMap
- A reference to a com.esri.arcgis.carto.IAnnotateMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAnnotateMap getAnnotationEngine() throws IOException, AutomationException
getAnnotationEngine
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void recalcFullExtent() throws IOException, AutomationException
Recalculates the Map's full extent so that all of the Map's feature layers, fall within its bounds.
AddLayer, AddLayers, and DeleteLayer all call RecalcFullExtent automatically.
recalcFullExtent
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delayDrawing(boolean delay) throws IOException, AutomationException
delayDrawing
in interface IMap
delay
- The delay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSpatialReferenceLocked(boolean locked) throws IOException, AutomationException
setSpatialReferenceLocked
in interface IMap
locked
- The locked (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSpatialReferenceLocked() throws IOException, AutomationException
isSpatialReferenceLocked
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCopyrightText() throws IOException, AutomationException
getCopyrightText
in interface IBasicMap2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCopyrightText(String copyright) throws IOException, AutomationException
setCopyrightText
in interface IBasicMap2
copyright
- The copyright (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IBarrierCollection getBarriers2(IEnvelope pExtent, ITrackCancel pTrackCancel) throws IOException, AutomationException
getBarriers2
in interface IMapBarriers
pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IBarrierCollection getBarriers3(IEnvelope pExtent, double scale, ITrackCancel pTrackCancel) throws IOException, AutomationException
getBarriers3
in interface IMapBarriers2
pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)scale
- The scale (in)pTrackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getFullExtent() throws IOException, AutomationException
The full extent of the view. In ArcMap's data view, the full extent is the full extent of all layers and it is automatically calculated whenever the spatial reference changes and when layers are added or removed with AddLayer, AddLayers, or DeleteLayer. In layout view, the full extent is the page size expanded some and it is automatically set whenever the page size changes.
This property is a shortcut to the bounds of the ActiveView's ScreenDisplay (accessed via IDisplayTransformation::Bounds) .
getFullExtent
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDisplayTransformation.getBounds()
,
IDisplayTransformation
,
IActiveView.getFullExtent()
public void setFullExtent(IEnvelope extent) throws IOException, AutomationException
setFullExtent
in interface IActiveView
extent
- 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 IEnvelope getExtent() throws IOException, AutomationException
The Extent property holds the visible area of the view. The Extent is automatically captured whenever the view's transformation changes. For example, when the active view is a Map, the Extent is modified whenever the spatial reference changes. Also, the Extent is set the first time a layer is added to a Map. In layout view, the Extent is initially set to the page size. In both layout view and data view, zooming in our out changes the Extent.
The Extent is always adjusted to fit the device frame and it is persisted in the map document.
getExtent
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDisplayTransformation.getVisibleBounds()
,
ITin.getExtent()
,
IActiveView.getExtent()
,
IFeatureClassManage.updateExtent()
,
IFeatureClassManage
,
IDisplayTransformation.getFittedBounds()
public void setExtent(IEnvelope extent) throws IOException, AutomationException
setExtent
in interface IActiveView
extent
- 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 IScreenDisplay getScreenDisplay() throws IOException, AutomationException
Each view has a ScreenDisplay object which controls drawing in the application's window. Use this property to get a reference to the ScreenDisplay object associated with the view you are currently working with. For example, to draw a polygon in data view, you must get an IActiveView reference on the focus Map object and then get a reference to its ScreenDisplay object via this property. If you are in data view and you mistakenly get an IActiveView reference on the PageLayout object, you will not see the polygon as you are drawing in the wrong view.
Each ScreenDisplay object has a DisplayTransformation object which is accessible via IDisplay::DisplayTransformation (ScreenDisplay inherits from Display ). Each DisplayTransformation related to a Map, holds onto the map's spatial reference (IDisplayTransformation::SpatialReference ) and has useful methods for converting between device units and map units. The PageLayout's DisplayTransformation does not have a spatial reference, the property returns nothing, and in this case its members map between device units and page units.
getScreenDisplay
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGraphicsContainer getGraphicsContainer() throws IOException, AutomationException
Both the Map and PageLayout objects are graphics containers - both implement the IGraphicsContainer interface.
The Map has a Basics Graphics Layer and this property returns a reference to that object (see CompositeGraphicsLayer and IMap::BasicGraphicsLayer). When working with a Map object, you can also perform a query interface from any of the interfaces the Map implements, IMap for example, to IGraphicsContainer. The QI also takes you to the CompositeGraphicsLayer object. These are both possible because the Map aggregates the Basic Graphics Layer.
The PageLayout object works differently. The PageLayout does not have a Basics Graphics Layer; instead, the PageLayout object is its own graphics container having its own implementation of IGraphicsContainer. A QI from IPageLayout to IGraphicsContainer connects you with the graphics container associated strictly with the PageLayout. However, this property, IActiveView::GraphicsContainer, on the PageLayout object has two possible outcomes. If a Map is activated (IActiveView::IsMapActivated), the property will return a reference to the focus Map's active graphics layer (IMap::ActiveGraphicsLayer ). If no Map is activated, the property will return a reference to the PageLayout's graphics container - the same as the QI case.
getGraphicsContainer
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMap getFocusMap() throws IOException, AutomationException
A user's map may comprise one or more Map objects. Each Map object typically holds layers of data as well as several MapSurround objects such as a Legend. This property returns an IMap reference to the Map object that currently has focus. In ArcMap, the focus map is the one visible in data view and the one selected in layout view.
Changing the focus map fires the IActiveViewEvents::FocusMapChanged event. In ArcMap, the focus map is automatically set to any new Map added.
IMxDocument::FocusMap is a read-only short cut to this property.
getFocusMap
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.com.esri.arcgis.carto.IMxDocument
public void setFocusMapByRef(IMap activeMap) throws IOException, AutomationException
setFocusMapByRef
in interface IActiveView
activeMap
- 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 boolean isMapActivated() throws IOException, AutomationException
In ArcMap's layout view, when the focus map is activated by double-clicking on it, new graphic elements are added to the Map's active graphics layer. When the focus map is not activated, the default, graphic elements are added to the PageLayout object. Both the Map and PageLayout objects are graphics containers, setting this property to TRUE diverts graphics from the PageLayout to the focus Map.
A Map can be activated in both layout and data views.
When this property is set to TRUE, IActiveView::PartialRefresh is called for the esriViewGraphicSelection draw phase.
isMapActivated
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.com.esri.arcgis.carto.IMxDocument
public void setIsMapActivated(boolean isMapActivated) throws IOException, AutomationException
setIsMapActivated
in interface IActiveView
isMapActivated
- The isMapActivated (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelection getSelection() throws IOException, AutomationException
ArcMap has two different selection types, a feature selection and an element selection. Two different objects represent these selections and both implement the ISelection interface. The feature selection object additionally implements IEnumFeature and the element selection object IEnumElement. The ISelection interface is used for clipboard type operations and the IEnum interfaces are used to loop through the items in the collection.
Each active view object, the PageLayout and all Maps, have their own selection objects. Actually, the PageLayout only has an element selection but each Map has a unique feature and element selection. When working with selections make sure you have the correct active view object.
For a Map, only one of the selections can be active at a time. As mentioned above, this interface provides an ISelection reference to either an element or feature selection depending on which one is currently active. To simplify the matter, IMap has a FeatureSelection property which always returns an ISelection on the feature selection, from which you can obtain an IEnumFeature reference. Just make sure you have the correct Map, usually the FocusMap. To get a Map's element selection, use IViewManager::ElementSelection.
Note: The features returned as part of IEnumFeature are in the spatial reference of the map, so they have the coordinate system and the resolution (1/precision) of the map.
getSelection
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IActiveView.getSelection()
,
IGraphicsContainerSelect
,
IMap.getFeatureSelection()
,
IEnumElement
public void setSelectionByRef(ISelection selection) throws IOException, AutomationException
setSelectionByRef
in interface IActiveView
selection
- A reference to a com.esri.arcgis.carto.ISelection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTipText(double x, double y) throws IOException, AutomationException
getTipText
in interface IActiveView
x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public tagRECT getExportFrame() throws IOException, AutomationException
Returns the area of the view to be exported.
For Maps, this is always the area corresponding to the constrained bounds (IDisplayTransformation::ContstrainedBounds), i.e., the visible bounds intersected with the full bounds. The coordinates are automatically converted, using IDisplayTransformation::TransformRect, from world units to device units.
For PageLayout, this is always the height and width of the page in device units (pixels) when the layout is zoomed to 100%. Because these values are independent of the layout's current zoom level and always correspond to the page instead of the full client area of the application, they are ideal for use when exporting a map to a graphics file. Assign the values of the ExportFrame property to the Export object's PixelBounds property.
getExportFrame
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowScrollBars() throws IOException, AutomationException
IActiveView::ShowScrollBars is a short cut to IScreenDisplay::UseScrollBars. Changes to this property are not reflected until the active view changes. For example, when in layout view in ArcMap, programmatically changing the PageLayout to not show its scrollbar will have no effect until the next time the active view is set to the PageLayout - calling IActiveView::Refresh has no effect.
ArcMap uses this property to hide Map's scroll bars when in layout view. Programmatically trying to display a Map's scroll bar in layout view will have no effect, for Maps this setting is only honored in data view and again it requires an active view change before the setting is reflected in the applications window.
isShowScrollBars
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowScrollBars(boolean showScrollBars) throws IOException, AutomationException
setShowScrollBars
in interface IActiveView
showScrollBars
- The showScrollBars (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowRulers() throws IOException, AutomationException
This property is a boolean flag that applications use to determine whether or not to draw rulers.
This property cannot be set for Maps, they always have rulers turned off.
The PageLayout is the only active view with rulers; an active view change is required before the setting is reflected in the applications window.
isShowRulers
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowRulers(boolean showRulers) throws IOException, AutomationException
setShowRulers
in interface IActiveView
showRulers
- The showRulers (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowSelection() throws IOException, AutomationException
This property is primarily used to hide a Map's element selection in layout view unless a Map has been activated.
When in layout view, the PageLayout always has its ShowSelection set to true, setting it to false has no effect. Similarly, when in data view, the focus Map always has its ShowSelection set to true and this cannot be overridden.
isShowSelection
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowSelection(boolean showRulers) throws IOException, AutomationException
setShowSelection
in interface IActiveView
showRulers
- The showRulers (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IExtentStack getExtentStack() throws IOException, AutomationException
Returns a reference to the active view's extent stack. Each active view has an extent stack which remembers previous extents so that users can 'go back' and then 'go forward' to previous extents.
Map map = new Map();
IExtentStack pExtentStack = map.getActiveView().getExtentStack();
if(pExtentStack.canUndo()){
pExtentStack.undo();}
getExtentStack
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public short getScreenCacheID(int phase, Object data) throws IOException, AutomationException
getScreenCacheID
in interface IActiveView
phase
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)data
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMap hitTestMap(IPoint location) throws IOException, AutomationException
Use this method on a PageLayout to find the nearest Map based on a point location. For example, when ArcMap's identify tool is used in Layout view, the tool first finds the Map clicked on before it searches for features in the Map.
When using this method on a PageLayout, for the
Location parameter, set up the Point in
page coordinates. To convert from device coordinates to page
coordinates:
Use this method on a Map to obtain a reference to it through IMap.
hitTestMap
in interface IActiveView
location
- A reference to a com.esri.arcgis.geometry.IPoint (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isActive() throws IOException, AutomationException
In layout view, all of the Maps and the PageLayout are active. In data view, only the focus map is active.
The PageLayout object uses this property when adding Elements; if the PageLayout is active, new elements are activated (IElement::Activate).
isActive
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void activate(int hWnd) throws IOException, AutomationException
Called to establish the current object as the active view. For example, view commands deactivate (IActiveView::Deactivate) the current view (IMxDocument::ActiveView) before calling Activate on their own associated view.
When working with the IActiveView interface on a MapDocument object, you should always first call IActiveView::Activate() in order to properly initialize the display of the PageLayout or Map object. The MxDocument and MapServer objects and the MapControl and PageLayoutControl all initialize display objects automatically after opening an MXD, but MapDocument does not do this, so you should call Activate() before working with any other members of IActiveView. If your application has a user interface, you should call Activate() with the hWnd of the application's client area. If your application runs in the background and has no windows, you can always get a valid hWnd from the GDI GetDesktopWindow() function, part of the Win32 API.
activate
in interface IActiveView
hWnd
- The hWnd (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deactivate() throws IOException, AutomationException
Called to deactivate the current active view. For example, view commands deactivate (IActiveView::Deactivate) the current view (IMxDocument::ActiveView) before calling Activate on their own associated view.
deactivate
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void draw(int hDC, ITrackCancel trackCancel) throws IOException, AutomationException
draw
in interface IActiveView
hDC
- The hDC (A COM typedef) (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void output(int hDC, int dpi, tagRECT pixelBounds, IEnvelope visibleBounds, ITrackCancel trackCancel) throws IOException, AutomationException
This method is used to draw to a non-app window hDC (see Windows GDI for more info). The ArcMap printing and exporting commands use this method. When drawing to an hWnd, normally IActiveView::Draw is used instead of this method because it handles caching and scrollbars.
Parameter use is as follows:
hDC - Output device.
dpi - Dots per inch (resolution). If Null is passed then this defaults to the resolution of the hDC. If that cannot be sampled, then this defaults to the window resolution.
pixelBounds - Device rectangle specified in pixels.
VisibleBounds - Zoom extent. If Null is passed then this defaults to the current visible extent.
All other display attributes are copied from the ActiveView.
If you want to draw the data frame to a 640x480 bitmap for example, specify the following parameter values:
dpi - 0
pixel bounds - { 0, 0, 640, 480 }
visible bounds - 0
If you want to create a bitmap that will print 8.5 x 11 on a 300 DPI printer, specify the following parameter values:
dpi - 300
pixel bounds - { 0, 0, 8.5 * dpi, 11 * dpi }
visible bounds - 0
If you want to zoom to a certain location and draw it on a 300x300 bitmap, specify the following parameter values:
dpi - 0
pixel bounds - { 0, 0, 300, 300 }
visible bounds - { -45.0, 44.0, -44.0, 45.0 }
The value of IDisplayTransformation::Resolution does not affect the results of this method.
The value of IOutputRasterSettings::ResampleRatio does affect the results of the this method. When rasters are drawn, they get resampled as specified in this attribute.
output
in interface IActiveView
hDC
- The hDC (A COM typedef) (in)dpi
- The dpi (in)pixelBounds
- A Structure: com.esri.arcgis.system.tagRECT (in)visibleBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refresh() throws IOException, AutomationException
IActiveView::Refresh invalidates all of the caches. This is a very inefficient operation; typically data from just one source has to be reread from the database and the rest can be drawn from cache. IActiveView::PartialRefresh uses it's knowledge of the cache layout to invalidate as little as possible and should be used whenever possible.
refresh
in interface IActiveView
refresh
in interface IViewRefresh
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriViewDrawPhase
,
IGlobeLayerProperties2
,
IActiveView.partialRefresh(int, java.lang.Object, com.esri.arcgis.geometry.IEnvelope)
,
IScreenDisplay.invalidate(com.esri.arcgis.geometry.IEnvelope, boolean, short)
,
IActiveView.getScreenCacheID(int, java.lang.Object)
,
IActiveView.refresh()
public void partialRefresh(int phase, Object data, IEnvelope envelope) throws IOException, AutomationException
The main application window is controlled by a view (IActiveView). ArcMap currently has two view objects: Map (data view) and PageLayout (layout view). Each view has a ScreenDisplay object which performs drawing operations. The ScreenDisplay object also makes it possible for clients to create any number of caches. A cache is an off screen bitmap representing the application's window. Instead of drawing directly to the screen, graphics are drawn into caches, then the caches are drawn on the screen. When the application's window is obscured and requires redrawing, it is done so from the caches instead of from a database. In this way, caches improve drawing performance - bitmap rendering is faster than reading and displaying data from a database.
In general, the Map creates three caches: one for all the layers, another if there are annotation or graphics, and a third cache if there is a feature selection. A layer can create its own private cache if it sets ILayer::Cached equal to TRUE. In this case, the Map will create a separate cache for the layer and groups the layers above and below it into different caches.
IActiveView::PartialRefresh uses its knowledge of the cache layout to invalidate as little as possible. IActiveView::Refresh , on the other hand, invalidates all the caches which is very inefficient. Use PartialRefresh whenever possible.
Both PartialRefresh and Refresh call IScreenDisplay::Invalidate which sets a flag clients watch for. Clients draw a cache from scratch (the database) if its flag is set to true, and from cache if the flag is set to false.
The following table shows the phases each view supports and what they map to:
phase | Map | Layout |
---|---|---|
esriViewBackground | Map grids | Page/snap grid |
esriViewGeography | Layers | Unused |
*esriViewGeoSelection | Feature selection | Unused |
esriViewGraphics | Labels/graphics | Graphics |
esriViewGraphicSelection | Graphic selection | Element selection |
esriViewForeground | Unused | Snap guides |
To specify multiple draw phases, combine individual phases together using a bitwise OR. This is equivalent to adding together the integer enumeration values. For example, pass 6 to invalidate both the esriViewGeography (2) and esriViewGeoSelection (4) phases.
Use the data parameter to invalidate just a specific piece of data. For example, if a layer is loaded and its cache property is set to TRUE, this layer alone can be invalidated. A tracking layer is a good example of this.
The envelope parameter specifies a region to invalidate. For example, if a graphic element is added, it is usually only necessary to invalidate the immediate area surrounding the new graphic.
Both the data and envelope parameters are optional.
*When selecting features, you must call PartialRefresh twice, once before and once after the selection operation.
partialRefresh
in interface IActiveView
partialRefresh
in interface IViewRefresh
phase
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)data
- A reference to another Object (IUnknown) (in)envelope
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriViewDrawPhase
,
IGlobeLayerProperties2
,
IActiveView.partialRefresh(int, java.lang.Object, com.esri.arcgis.geometry.IEnvelope)
,
IScreenDisplay.invalidate(com.esri.arcgis.geometry.IEnvelope, boolean, short)
,
IActiveView.getScreenCacheID(int, java.lang.Object)
,
IActiveView.refresh()
public void clear() throws IOException, AutomationException
The Map object's implementation of Clear deletes all of the Layers in the Map (IMap::ClearLayers ), removes all MapSurrounds (IMap::ClearSurrounds ), removes all bookmarks (IMapBookMarks::RemoveAllBookMarks), and resets the extent stack. Clear does not refresh the active view however.
Clear on PageLayout deletes all Elements, including MapFrames which hold a Map, resets the extent stack, and a new Map is created - there must always be a focus map.
clear
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void printerChanged(IPrinter printer) throws IOException, AutomationException
printerChanged
in interface IActiveView
printer
- A reference to a com.esri.arcgis.output.IPrinter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void contentsChanged() throws IOException, AutomationException
After modifying the contents view (table of contents), use this method to fire the IActiveViewEvents::ContentsChanged event so that clients listening for this event can respond accordingly.
contentsChanged
in interface IActiveView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IActiveViewEvents.contentsChanged(com.esri.arcgis.carto.IActiveViewEventsContentsChangedEvent)
public void onMessage(int msg, int wParam, int lParam) throws IOException, AutomationException
onMessage
in interface IActiveView
msg
- The msg (in)wParam
- The wParam (A COM typedef) (in)lParam
- The lParam (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getContextMenu(double x, double y, IUID[] clsidMenu) throws IOException, AutomationException
getContextMenu
in interface IActiveView
x
- The x (in)y
- The y (in)clsidMenu
- A reference to a com.esri.arcgis.system.IUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setElementSelectionByRef(ISelection selectionObject) throws IOException, AutomationException
setElementSelectionByRef
in interface IViewManager
selectionObject
- A reference to a com.esri.arcgis.carto.ISelection (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IActiveView.getSelection()
public ISelection getElementSelection() throws IOException, AutomationException
getElementSelection
in interface IViewManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGraphicsContainerSelect.getSelectedElements()
public void setConserveMemory(boolean flag) throws IOException, AutomationException
setConserveMemory
in interface IViewManager
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isConserveMemory() throws IOException, AutomationException
isConserveMemory
in interface IViewManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTopFilterPhase(int phase) throws IOException, AutomationException
setTopFilterPhase
in interface IViewManager
phase
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTopFilterPhase() throws IOException, AutomationException
getTopFilterPhase
in interface IViewManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTopFilterIndex(int phaseIndex) throws IOException, AutomationException
setTopFilterIndex
in interface IViewManager
phaseIndex
- The phaseIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTopFilterIndex() throws IOException, AutomationException
getTopFilterIndex
in interface IViewManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOutputBandSize(int kilobytes) throws IOException, AutomationException
setOutputBandSize
in interface IViewManager
kilobytes
- The kilobytes (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getOutputBandSize() throws IOException, AutomationException
getOutputBandSize
in interface IViewManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUsesPageCoordinates() throws IOException, AutomationException
isUsesPageCoordinates
in interface IViewManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isVerboseEvents() throws IOException, AutomationException
isVerboseEvents
in interface IViewManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setVerboseEvents(boolean verboseEvents) throws IOException, AutomationException
setVerboseEvents
in interface IViewManager
verboseEvents
- The verboseEvents (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDelayBackgroundDraw() throws IOException, AutomationException
isDelayBackgroundDraw
in interface IViewManager
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDelayBackgroundDraw(boolean flag) throws IOException, AutomationException
setDelayBackgroundDraw
in interface IViewManager
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isExternalDrawing(int phase) throws IOException, AutomationException
isExternalDrawing
in interface IViewManager
phase
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExternalDrawing(int phase, boolean externalDrawing) throws IOException, AutomationException
setExternalDrawing
in interface IViewManager
phase
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)externalDrawing
- The externalDrawing (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDrawing() throws IOException, AutomationException
isDrawing
in interface IViewRefresh
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isProgressiveDrawing() throws IOException, AutomationException
isProgressiveDrawing
in interface IViewRefresh
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setProgressiveDrawing(boolean flag) throws IOException, AutomationException
setProgressiveDrawing
in interface IViewRefresh
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void partialRefreshShape(int phase, Object data, IGeometry geometry, double symbolSizePoints) throws IOException, AutomationException
partialRefreshShape
in interface IViewRefresh
phase
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)data
- A reference to another Object (IUnknown) (in)geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)symbolSizePoints
- The symbolSizePoints (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void animationRefresh(int phase, Object data, IEnvelope envelope) throws IOException, AutomationException
animationRefresh
in interface IViewRefresh
phase
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)data
- A reference to another Object (IUnknown) (in)envelope
- 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 animationRefreshShape(int phase, Object data, IGeometry geometry, double symbolSizePoints) throws IOException, AutomationException
animationRefreshShape
in interface IViewRefresh
phase
- A com.esri.arcgis.carto.esriViewDrawPhase constant (in)data
- A reference to another Object (IUnknown) (in)geometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)symbolSizePoints
- The symbolSizePoints (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refreshItem(Object data) throws IOException, AutomationException
refreshItem
in interface IViewRefresh
data
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refreshCaches() throws IOException, AutomationException
refreshCaches
in interface IViewRefresh
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IElement next() throws IOException, AutomationException
next
in interface IGraphicsContainer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reset() throws IOException, AutomationException
reset
in interface IGraphicsContainer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addElement(IElement element, int zorder) throws IOException, AutomationException
This method adds the input element the graphics container referenced. The parameter zorder is currently not utilized by all of the IGraphicsContainer implementations and is typically set to 0 when calling this method.
addElement
in interface IGraphicsContainer
element
- A reference to a com.esri.arcgis.carto.IElement (in)zorder
- The zorder (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addElements(IElementCollection elements, int zorder) throws IOException, AutomationException
addElements
in interface IGraphicsContainer
elements
- A reference to a com.esri.arcgis.carto.IElementCollection (in)zorder
- The zorder (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteElement(IElement element) throws IOException, AutomationException
deleteElement
in interface IGraphicsContainer
element
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteAllElements() throws IOException, AutomationException
deleteAllElements
in interface IGraphicsContainer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void moveElementToGroup(IElement element, IGroupElement group) throws IOException, AutomationException
moveElementToGroup
in interface IGraphicsContainer
element
- A reference to a com.esri.arcgis.carto.IElement (in)group
- A reference to a com.esri.arcgis.carto.IGroupElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void moveElementFromGroup(IGroupElement group, IElement element, int zorder) throws IOException, AutomationException
moveElementFromGroup
in interface IGraphicsContainer
group
- A reference to a com.esri.arcgis.carto.IGroupElement (in)element
- A reference to a com.esri.arcgis.carto.IElement (in)zorder
- The zorder (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumElement locateElements(IPoint point, double tolerance) throws IOException, AutomationException
locateElements
in interface IGraphicsContainer
point
- A reference to a com.esri.arcgis.geometry.IPoint (in)tolerance
- The tolerance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumElement locateElementsByEnvelope(IEnvelope envelope) throws IOException, AutomationException
locateElementsByEnvelope
in interface IGraphicsContainer
envelope
- 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 IFrameElement findFrame(Object frameObject) throws IOException, AutomationException
findFrame
in interface IGraphicsContainer
frameObject
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void updateElement(IElement element) throws IOException, AutomationException
updateElement
in interface IGraphicsContainer
element
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getElementOrder(IEnumElement elements) throws IOException, AutomationException
getElementOrder
in interface IGraphicsContainer
elements
- A reference to a com.esri.arcgis.carto.IEnumElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putElementOrder(Object order) throws IOException, AutomationException
putElementOrder
in interface IGraphicsContainer
order
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void bringToFront(IEnumElement elements) throws IOException, AutomationException
bringToFront
in interface IGraphicsContainer
elements
- A reference to a com.esri.arcgis.carto.IEnumElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void sendToBack(IEnumElement elements) throws IOException, AutomationException
sendToBack
in interface IGraphicsContainer
elements
- A reference to a com.esri.arcgis.carto.IEnumElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void sendBackward(IEnumElement elements) throws IOException, AutomationException
sendBackward
in interface IGraphicsContainer
elements
- A reference to a com.esri.arcgis.carto.IEnumElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void bringForward(IEnumElement elements) throws IOException, AutomationException
bringForward
in interface IGraphicsContainer
elements
- A reference to a com.esri.arcgis.carto.IEnumElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectElement(IElement element) throws IOException, AutomationException
Adds the specified element to the element selection and fires the IActiveViewEvents::SelectionChanged event.
selectElement
in interface IGraphicsContainerSelect
element
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectElements(IEnumElement elements) throws IOException, AutomationException
Adds the specified elements to the element selection and fires the IActiveViewEvents::SelectionChanged event.
selectElements
in interface IGraphicsContainerSelect
elements
- A reference to a com.esri.arcgis.carto.IEnumElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectAllElements() throws IOException, AutomationException
Selects all elements in the container and fires the IActiveViewEvents::SelectionChanged event.
selectAllElements
in interface IGraphicsContainerSelect
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void unselectElement(IElement element) throws IOException, AutomationException
Removes the specified element from the element selection and fires the IActiveViewEvents::SelectionChanged event.
unselectElement
in interface IGraphicsContainerSelect
element
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void unselectElements(IEnumElement elements) throws IOException, AutomationException
Removes the specified elements from the element selection and fires the IActiveViewEvents::SelectionChanged event.
unselectElements
in interface IGraphicsContainerSelect
elements
- A reference to a com.esri.arcgis.carto.IEnumElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void unselectAllElements() throws IOException, AutomationException
Clears the element selection and fires the IActiveViewEvents::SelectionChanged event.
unselectAllElements
in interface IGraphicsContainerSelect
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumElement getSelectedElements() throws IOException, AutomationException
Returns an IEnumElement containing all of the selected elements.
An IEnumElement reference to the element selection is also available from IViewManager::ElementSelection and IActiveView::Selection (QI from ISelection).
getSelectedElements
in interface IGraphicsContainerSelect
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IViewManager.getElementSelection()
public int getElementSelectionCount() throws IOException, AutomationException
getElementSelectionCount
in interface IGraphicsContainerSelect
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IElement selectedElement(int index) throws IOException, AutomationException
selectedElement
in interface IGraphicsContainerSelect
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelectionTracker selectionTracker(int index) throws IOException, AutomationException
Elements have associated selection tracker objects which provide reshaping functionality. For example, in ArcMap after adding an element, the element is drawn with a selection tracker around it and users can then drag one of the selection handles on the selection tracker to modify the element's shape.
There are several types of selection tracker objects including EnvelopeTracker, MarkerTracker, PointTracker, and PolygonTracker. When an element is first selected, an EnvelopeTracker is created for it. However, if the element has its IElementEditVertices::MovingVertices property set to TRUE, then the geometry of the element dictates the type of selection tracker created. For example, a line element will create a LineTracker.
IElement::SelectionTracker checks if the elements IElementEditVertices::MovingVertices property is set to TRUE; if so, IElementEditVertices::GetMoveVerticesSelectionTracker is called to create the appropriate tracker object for the element. If MovingVertices returns FALSE, then an EnvelopeTracker is created for the element.
In ArcMap, selecting an element creates an EnvelopeTracker but the 'Edit Vertices' command swaps the it out with a PolygonTracker or LineTracker. Some elements such as a MarkerElement, CircleElement, EllipseElement, and RectangleElement, only create EnvelopeTrackers and the vertices of the these elements cannot be edited.
selectionTracker
in interface IGraphicsContainerSelect
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IElement
public boolean elementSelected(IElement element) throws IOException, AutomationException
Returns TRUE if the specified element is selected.
elementSelected
in interface IGraphicsContainerSelect
element
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IElement getDominantElement() throws IOException, AutomationException
The dominant element is by default the first element selected. The alignment commands make use of the dominant element to arrange elements more precisely.
getDominantElement
in interface IGraphicsContainerSelect
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDominantElementByRef(IElement dominantItem) throws IOException, AutomationException
setDominantElementByRef
in interface IGraphicsContainerSelect
dominantItem
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getSelectionBounds(IDisplay display) throws IOException, AutomationException
getSelectionBounds
in interface IGraphicsContainerSelect
display
- A reference to a com.esri.arcgis.display.IDisplay (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 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 IEnumSpatialBookmark getBookmarks() throws IOException, AutomationException
getBookmarks
in interface IMapBookmarks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addBookmark(ISpatialBookmark bookmark) throws IOException, AutomationException
addBookmark
in interface IMapBookmarks
bookmark
- A reference to a com.esri.arcgis.carto.ISpatialBookmark (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeBookmark(ISpatialBookmark bookmark) throws IOException, AutomationException
removeBookmark
in interface IMapBookmarks
bookmark
- A reference to a com.esri.arcgis.carto.ISpatialBookmark (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAllBookmarks() throws IOException, AutomationException
removeAllBookmarks
in interface IMapBookmarks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void moveBookmarkTo(ISpatialBookmark bookmark, int index) throws IOException, AutomationException
moveBookmarkTo
in interface IMapBookmarks2
bookmark
- A reference to a com.esri.arcgis.carto.ISpatialBookmark (in)index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void sortBookmarks(boolean ascending) throws IOException, AutomationException
sortBookmarks
in interface IMapBookmarks2
ascending
- The ascending (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectionChanged(ISelectionEventsSelectionChangedEvent theEvent) throws IOException, AutomationException
selectionChanged
in interface ISelectionEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void displayStarted(IDisplayEventsDisplayStartedEvent theEvent) throws IOException, AutomationException
IDisplay::StartDrawing fires this event to notify clients that drawing has started. The display where drawing was initiated is returned.
displayStarted
in interface IDisplayEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void displayFinished(IDisplayEventsDisplayFinishedEvent theEvent) throws IOException, AutomationException
IDisplay::FinishDrawing fires this event to notify clients that drawing has completed. The display where drawing has completed is returned to the client.
displayFinished
in interface IDisplayEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void displayInvalidated(IDisplayEventsDisplayInvalidatedEvent theEvent) throws IOException, AutomationException
IScreenDisplay::Invalidate fires this event to notify all clients a display has been invalidated. The display, the area invalidated, the erase setting, and the cacheID are all returned to clients listening to this event.
The Map object is one client that listens for this event and it may in turn fire the IActiveViewEvenets::ViewRefreshed event.
displayInvalidated
in interface IDisplayEvents
theEvent
- The event
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void displayScrolled(IDisplayEventsDisplayScrolledEvent theEvent) throws IOException, AutomationException
IScreenDisplay::DoScroll fires this event to notify all clients that the display has scrolled. For example, the Map object listens for this event because it needs to perform some drawing operations whenever its display is scrolled.
displayScrolled
in interface IDisplayEvents
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 int getTableCount() throws IOException, AutomationException
getTableCount
in interface ITableCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITable getTable(int index) throws IOException, AutomationException
getTable
in interface ITableCollection
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addTable(ITable table) throws IOException, AutomationException
addTable
in interface ITableCollection
table
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeTable(ITable table) throws IOException, AutomationException
removeTable
in interface ITableCollection
table
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAllTables() throws IOException, AutomationException
removeAllTables
in interface ITableCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getStandaloneTableCount() throws IOException, AutomationException
getStandaloneTableCount
in interface IStandaloneTableCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStandaloneTable getStandaloneTable(int index) throws IOException, AutomationException
getStandaloneTable
in interface IStandaloneTableCollection
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addStandaloneTable(IStandaloneTable table) throws IOException, AutomationException
addStandaloneTable
in interface IStandaloneTableCollection
table
- A reference to a com.esri.arcgis.carto.IStandaloneTable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeStandaloneTable(IStandaloneTable table) throws IOException, AutomationException
removeStandaloneTable
in interface IStandaloneTableCollection
table
- A reference to a com.esri.arcgis.carto.IStandaloneTable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAllStandaloneTables() throws IOException, AutomationException
removeAllStandaloneTables
in interface IStandaloneTableCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUsesFilter() throws IOException, AutomationException
The UsesFilter property returns true when the object in question will draw with a filter. Drawing with a filter means means that an object that would normally draw as vector graphics will instead draw as raster. The UsesFilter property is particularly useful for detecting vector map layers that will be rasterized at time of print or export.
isUsesFilter
in interface IDisplayAdmin
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setNonFrameBackgroundByRef(IBackground rhs1) throws IOException, AutomationException
setNonFrameBackgroundByRef
in interface IMapAdmin
setNonFrameBackgroundByRef
in interface IMapAdmin2
setNonFrameBackgroundByRef
in interface IMapAdmin3
rhs1
- A reference to a com.esri.arcgis.carto.IBackground (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setClipBounds(IGeometry rhs1) throws IOException, AutomationException
setClipBounds
in interface IMapAdmin
setClipBounds
in interface IMapAdmin2
setClipBounds
in interface IMapAdmin3
rhs1
- A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void fireAfterDraw(int hDC) throws IOException, AutomationException
fireAfterDraw
in interface IMapAdmin
fireAfterDraw
in interface IMapAdmin2
fireAfterDraw
in interface IMapAdmin3
hDC
- The hDC (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void fireChangeVersion(IVersion oldVersion, IVersion newVersion) throws IOException, AutomationException
fireChangeVersion
in interface IMapAdmin
fireChangeVersion
in interface IMapAdmin2
fireChangeVersion
in interface IMapAdmin3
oldVersion
- A reference to a com.esri.arcgis.geodatabase.IVersion (in)newVersion
- A reference to a com.esri.arcgis.geodatabase.IVersion (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void fireChangeFeatureClass(IFeatureClass oldClass, IFeatureClass newClass) throws IOException, AutomationException
fireChangeFeatureClass
in interface IMapAdmin
fireChangeFeatureClass
in interface IMapAdmin2
fireChangeFeatureClass
in interface IMapAdmin3
oldClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)newClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IBackground getNonFrameBackground() throws IOException, AutomationException
getNonFrameBackground
in interface IMapAdmin2
getNonFrameBackground
in interface IMapAdmin3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void fireChangeTable(ITable oldTable, ITable newTable) throws IOException, AutomationException
fireChangeTable
in interface IMapAdmin2
fireChangeTable
in interface IMapAdmin3
oldTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)newTable
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean completeRedrawNeeded() throws IOException, AutomationException
completeRedrawNeeded
in interface IMapAdmin2
completeRedrawNeeded
in interface IMapAdmin3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void forceGraphicSelectionDraw() throws IOException, AutomationException
forceGraphicSelectionDraw
in interface IMapAdmin2
forceGraphicSelectionDraw
in interface IMapAdmin3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void suppressForegroundDraw() throws IOException, AutomationException
suppressForegroundDraw
in interface IMapAdmin2
suppressForegroundDraw
in interface IMapAdmin3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void fireLayerDeleted(ILayer layer) throws IOException, AutomationException
fireLayerDeleted
in interface IMapAdmin3
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 void fireLayerAdded(ILayer layer) throws IOException, AutomationException
fireLayerAdded
in interface IMapAdmin3
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 void fireLayerReordered(ILayer layer, int toIndex) throws IOException, AutomationException
fireLayerReordered
in interface IMapAdmin3
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)toIndex
- The toIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer getDomainDefiningLayer() throws IOException, AutomationException
getDomainDefiningLayer
in interface IMapAdmin4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDomainDefiningLayer(ILayer layer) throws IOException, AutomationException
setDomainDefiningLayer
in interface IMapAdmin4
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 isSimulateLayerEffectsInLegends() throws IOException, AutomationException
isSimulateLayerEffectsInLegends
in interface IMapAdmin4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSimulateLayerEffectsInLegends(boolean flag) throws IOException, AutomationException
setSimulateLayerEffectsInLegends
in interface IMapAdmin4
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumRelationshipClass getRelationshipClasses() throws IOException, AutomationException
getRelationshipClasses
in interface IRelationshipClassCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumRelationshipClass findRelationshipClasses(IObjectClass objectClass, int role) throws IOException, AutomationException
findRelationshipClasses
in interface IRelationshipClassCollection
objectClass
- A reference to a com.esri.arcgis.geodatabase.IObjectClass (in)role
- A com.esri.arcgis.geodatabase.esriRelRole constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeoTransformationOperationSet getGeographicTransformations() throws IOException, AutomationException
Each Map has a set of active geographic transformations. The active GeoTransformations are stored in a GeoTransformationOperationSet. If the geographic coordinate systems of a layer and the data frame match a GeoTransformation and its direction in the GeoTransformationOperationSet, the transformation is applied automatically while displaying the layer in the data frame.
getGeographicTransformations
in interface IMapGeographicTransformations
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void buildCache() throws IOException, AutomationException
buildCache
in interface IMapCache
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaxScale(double pMaxScale) throws IOException, AutomationException
setMaxScale
in interface IMapCache
pMaxScale
- The pMaxScale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMaxScale() throws IOException, AutomationException
getMaxScale
in interface IMapCache
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCacheable() throws IOException, AutomationException
isCacheable
in interface IMapCache
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAutoCacheActive() throws IOException, AutomationException
isAutoCacheActive
in interface IMapCache
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoCacheActive(boolean active) throws IOException, AutomationException
setAutoCacheActive
in interface IMapCache
active
- The active (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isScaleLimit() throws IOException, AutomationException
isScaleLimit
in interface IMapCache
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setScaleLimit(boolean limited) throws IOException, AutomationException
setScaleLimit
in interface IMapCache
limited
- The limited (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getCacheExtent() throws IOException, AutomationException
getCacheExtent
in interface IMapCache
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void emptyCache() throws IOException, AutomationException
emptyCache
in interface IMapCache
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refreshAutoCache() throws IOException, AutomationException
refreshAutoCache
in interface IMapCache
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUseMasking(boolean flag) throws IOException, AutomationException
setUseMasking
in interface ILayerMasking
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUseMasking() throws IOException, AutomationException
isUseMasking
in interface ILayerMasking
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaskingLayers(ILayer layer, ISet maskingLayers) throws IOException, AutomationException
setMaskingLayers
in interface ILayerMasking
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)maskingLayers
- A reference to a com.esri.arcgis.system.ISet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet getMaskingLayers(ILayer layer) throws IOException, AutomationException
getMaskingLayers
in interface ILayerMasking
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 void clearMasking(ILayer layer) throws IOException, AutomationException
clearMasking
in interface ILayerMasking
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 ISet getMaskedLayers() throws IOException, AutomationException
getMaskedLayers
in interface ILayerMasking
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLevelMasking(ILayer maskedLayer, ILayer maskingLayer, String pLevels) throws IOException, AutomationException
setLevelMasking
in interface ILevelMasking
maskedLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)maskingLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)pLevels
- The pLevels (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getLevelMasking(ILayer maskedLayer, ILayer maskingLayer) throws IOException, AutomationException
getLevelMasking
in interface ILevelMasking
maskedLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)maskingLayer
- 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 IPageLayout getPageLayout() throws IOException, AutomationException
getPageLayout
in interface IMxdContents
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMap getMap() throws IOException, AutomationException
The map property is not supported in the case of new map being set into the focus map of the PageLayoutControl.
getMap
in interface IMxdContents
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IActiveView getActiveView() throws IOException, AutomationException
getActiveView
in interface IMxdContents
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IOverposterProperties getOverposterProperties() throws IOException, AutomationException
getOverposterProperties
in interface IMapOverposter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOverposterPropertiesByRef(IOverposterProperties overposterProperties) throws IOException, AutomationException
setOverposterPropertiesByRef
in interface IMapOverposter
overposterProperties
- A reference to a com.esri.arcgis.carto.IOverposterProperties (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLayerVisible(ILayer layer) throws IOException, AutomationException
This method determines if a layer is actually visible in a map. It does this by checking to see if the layer is not drawn due to scale ranges and also by validating whether or not the layer is in a composite layer or group layer that is not visible.
isLayerVisible
in interface IMapLayers
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 void insertLayer(ILayer pLayer, boolean autoArrange, int position) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the layer is added in the proper position as by its weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers. If autoArrange is true for this method, the position passed in is ignored as the position is determined by the auto arrange logic.
insertLayer
in interface IMapLayers
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)autoArrange
- The autoArrange (in)position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void insertLayers(IEnumLayer pLayers, boolean autoArrange, int position) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the layers are added in the proper position as by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers. If autoArrange is true for this method, the position passed in is ignored as the position is determined by the auto arrange logic.
insertLayers
in interface IMapLayers
pLayers
- A reference to a com.esri.arcgis.carto.IEnumLayer (in)autoArrange
- The autoArrange (in)position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void insertLayerInGroup(IGroupLayer pGroup, ILayer pLayer, boolean autoArrange, int position) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the sequence of layers is by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.
insertLayerInGroup
in interface IMapLayers
pGroup
- A reference to a com.esri.arcgis.carto.IGroupLayer (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)autoArrange
- The autoArrange (in)position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void insertLayersInGroup(IGroupLayer pGroup, IEnumLayer pLayer, boolean autoArrange, int position) throws IOException, AutomationException
The autoArrange parameter controls the ordering of the layers. If autoArrange is set to TRUE, the sequence of layers is by their weight specified via ILayerPosition::LayerWeight. By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.
insertLayersInGroup
in interface IMapLayers
pGroup
- A reference to a com.esri.arcgis.carto.IGroupLayer (in)pLayer
- A reference to a com.esri.arcgis.carto.IEnumLayer (in)autoArrange
- The autoArrange (in)position
- The position (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void moveLayerEx(IGroupLayer pFromGroup, IGroupLayer pToGroup, ILayer pLayer, int newPosition) throws IOException, AutomationException
moveLayerEx
in interface IMapLayers
pFromGroup
- A reference to a com.esri.arcgis.carto.IGroupLayer (in)pToGroup
- A reference to a com.esri.arcgis.carto.IGroupLayer (in)pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)newPosition
- The newPosition (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDynamicMapEnabled() throws IOException, AutomationException
Use the DynamicMapEnabled property to toggle between Dynamic and Standard mode.
When true the Map is in Dynamic Mode (Dynamic Display is Active), when false the Map is in Standard Mode (Dynamic Display is Deactivated).
isDynamicMapEnabled
in interface IDynamicMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDynamicMapEnabled(boolean isEnable) throws IOException, AutomationException
Use the DynamicMapEnabled property to toggle between Dynamic and Standard mode.
When true the Map is in Dynamic Mode (Dynamic Display is Active), when false the Map is in Standard Mode (Dynamic Display is Deactivated).
setDynamicMapEnabled
in interface IDynamicMap
isEnable
- The isEnable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDynamicDrawRate() throws IOException, AutomationException
The DynamicDrawRate property controls the heart-beat rate of the Dynamic Map. The rate value refers to the Dynamic Map cycle time in milliseconds. If this value is changed to be slower, everything in dynamic mode will respond slower.
getDynamicDrawRate
in interface IDynamicMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDynamicDrawRate(int dynamicDrawRateMS) throws IOException, AutomationException
The DynamicDrawRate property controls the heart-beat rate of the Dynamic Map. The rate value refers to the Dynamic Map cycle time in milliseconds. If this value is changed to be slower, everything in dynamic mode will respond slower.
setDynamicDrawRate
in interface IDynamicMap
dynamicDrawRateMS
- The dynamicDrawRateMS (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isUseSubPixelRendering() throws IOException, AutomationException
When true, the Dynamic Map will render in Sub Pixel units. That enables the map and the Dynamic Elements to navigate smoothly, while accurately converting map coordinates to floating point screen pixel coordinates. This method might cause some blurriness.
When false, the Dynamic Map will render in Full Pixel units. That will result in snapping the Map and the Dynamic Elements to the nearest discrete screen pixel coordinate.
isUseSubPixelRendering
in interface IDynamicMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setUseSubPixelRendering(boolean useSubPixelRendering) throws IOException, AutomationException
When true, the Dynamic Map will render in Sub Pixel units. That enables the map and the Dynamic Elements to navigate smoothly, while accurately converting map coordinates to floating point screen pixel coordinates. This method might cause some blurriness.
When false, the Dynamic Map will render in Full Pixel units. That will result in snapping the Map and the Dynamic Elements to the nearest discrete screen pixel coordinate.
setUseSubPixelRendering
in interface IDynamicMap
useSubPixelRendering
- The useSubPixelRendering (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isLayerVisibleEx(ILayer layer, boolean[] isLayerVisible, boolean[] isParentLayerVisible) throws IOException, AutomationException
isLayerVisibleEx
in interface IMapLayers2
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)isLayerVisible
- The isLayerVisible (out: use single element array)isParentLayerVisible
- The isParentLayerVisible (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getClipType() throws IOException, AutomationException
getClipType
in interface IMapClipOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setClipType(int type) throws IOException, AutomationException
setClipType
in interface IMapClipOptions
type
- A com.esri.arcgis.carto.esriMapClipType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getClipData() throws IOException, AutomationException
getClipData
in interface IMapClipOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setClipData(Object data) throws IOException, AutomationException
setClipData
in interface IMapClipOptions
data
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet getClipFilter() throws IOException, AutomationException
getClipFilter
in interface IMapClipOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setClipFilter(ISet layers) throws IOException, AutomationException
setClipFilter
in interface IMapClipOptions
layers
- A reference to a com.esri.arcgis.system.ISet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setClipGridAndGraticules(boolean pClipGridAndGraticules) throws IOException, AutomationException
setClipGridAndGraticules
in interface IMapClipOptions
pClipGridAndGraticules
- The pClipGridAndGraticules (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isClipGridAndGraticules() throws IOException, AutomationException
isClipGridAndGraticules
in interface IMapClipOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getAutoExtentType() throws IOException, AutomationException
getAutoExtentType
in interface IMapAutoExtentOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoExtentType(int type) throws IOException, AutomationException
setAutoExtentType
in interface IMapAutoExtentOptions
type
- A com.esri.arcgis.carto.esriExtentTypeEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getAutoExtentScale() throws IOException, AutomationException
getAutoExtentScale
in interface IMapAutoExtentOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoExtentScale(double scale) throws IOException, AutomationException
setAutoExtentScale
in interface IMapAutoExtentOptions
scale
- The scale (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getAutoExtentBounds() throws IOException, AutomationException
getAutoExtentBounds
in interface IMapAutoExtentOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoExtentBounds(IEnvelope bounds) throws IOException, AutomationException
setAutoExtentBounds
in interface IMapAutoExtentOptions
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 IMap getAutoExtentMap() throws IOException, AutomationException
getAutoExtentMap
in interface IMapAutoExtentOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoExtentMapByRef(IMap map) throws IOException, AutomationException
setAutoExtentMapByRef
in interface IMapAutoExtentOptions
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 double getAutoExtentMargin() throws IOException, AutomationException
getAutoExtentMargin
in interface IMapAutoExtentOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoExtentMargin(double margin) throws IOException, AutomationException
setAutoExtentMargin
in interface IMapAutoExtentOptions
margin
- The margin (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getAutoExtentMarginUnits() throws IOException, AutomationException
getAutoExtentMarginUnits
in interface IMapAutoExtentOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoExtentMarginUnits(int units) throws IOException, AutomationException
setAutoExtentMarginUnits
in interface IMapAutoExtentOptions
units
- A com.esri.arcgis.system.esriUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFeatureLayer getAutoExtentLayer() throws IOException, AutomationException
getAutoExtentLayer
in interface IMapAutoExtentOptions
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAutoExtentLayerByRef(IFeatureLayer layer) throws IOException, AutomationException
setAutoExtentLayerByRef
in interface IMapAutoExtentOptions
layer
- A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getLockedZoom(boolean[] flag) throws IOException, AutomationException
getLockedZoom
in interface IMapAutoExtentOptions
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getLockedPan(boolean[] flag) throws IOException, AutomationException
getLockedPan
in interface IMapAutoExtentOptions
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hasTimeData() throws IOException, AutomationException
hasTimeData
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getDefaultTimeInterval() throws IOException, AutomationException
getDefaultTimeInterval
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultTimeInterval(double interval) throws IOException, AutomationException
setDefaultTimeInterval
in interface IMapTimeDisplay
interval
- The interval (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDefaultTimeIntervalUnits() throws IOException, AutomationException
getDefaultTimeIntervalUnits
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultTimeIntervalUnits(int units) throws IOException, AutomationException
setDefaultTimeIntervalUnits
in interface IMapTimeDisplay
units
- A com.esri.arcgis.system.esriTimeUnits constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getDefaultTimeWindow() throws IOException, AutomationException
getDefaultTimeWindow
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultTimeWindow(double duration) throws IOException, AutomationException
setDefaultTimeWindow
in interface IMapTimeDisplay
duration
- The duration (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITimeExtent getFullTimeExtent() throws IOException, AutomationException
getFullTimeExtent
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFullTimeExtentByRef(ITimeExtent timeExtent) throws IOException, AutomationException
setFullTimeExtentByRef
in interface IMapTimeDisplay
timeExtent
- A reference to a com.esri.arcgis.system.ITimeExtent (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITimeExtent getCurrentTimeExtent() throws IOException, AutomationException
getCurrentTimeExtent
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentTimeExtentByRef(ITimeExtent timeExtent) throws IOException, AutomationException
setCurrentTimeExtentByRef
in interface IMapTimeDisplay
timeExtent
- A reference to a com.esri.arcgis.system.ITimeExtent (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITimeValue getTimeValue() throws IOException, AutomationException
getTimeValue
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTimeValueByRef(ITimeValue time) throws IOException, AutomationException
setTimeValueByRef
in interface IMapTimeDisplay
time
- A reference to a com.esri.arcgis.system.ITimeValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITimeReference getTimeReference() throws IOException, AutomationException
getTimeReference
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTimeReferenceByRef(ITimeReference timeReference) throws IOException, AutomationException
setTimeReferenceByRef
in interface IMapTimeDisplay
timeReference
- A reference to a com.esri.arcgis.system.ITimeReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDisplayDateFormat() throws IOException, AutomationException
getDisplayDateFormat
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplayDateFormat(String dateFormat) throws IOException, AutomationException
setDisplayDateFormat
in interface IMapTimeDisplay
dateFormat
- The dateFormat (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDisplayTimeFormat() throws IOException, AutomationException
getDisplayTimeFormat
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplayTimeFormat(String timeFormat) throws IOException, AutomationException
setDisplayTimeFormat
in interface IMapTimeDisplay
timeFormat
- The timeFormat (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDisplayEachTimestamp() throws IOException, AutomationException
isDisplayEachTimestamp
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplayEachTimestamp(boolean value) throws IOException, AutomationException
setDisplayEachTimestamp
in interface IMapTimeDisplay
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDisplaySpeed() throws IOException, AutomationException
getDisplaySpeed
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplaySpeed(int speed) throws IOException, AutomationException
setDisplaySpeed
in interface IMapTimeDisplay
speed
- The speed (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getPlayOption() throws IOException, AutomationException
getPlayOption
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPlayOption(int option) throws IOException, AutomationException
setPlayOption
in interface IMapTimeDisplay
option
- A com.esri.arcgis.carto.esriMapTimePlayOption constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTimeExtentOption() throws IOException, AutomationException
getTimeExtentOption
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTimeExtentOption(int option) throws IOException, AutomationException
setTimeExtentOption
in interface IMapTimeDisplay
option
- A com.esri.arcgis.carto.esriMapTimeExtentOption constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILayer getTimeExtentDefinitionLayer() throws IOException, AutomationException
getTimeExtentDefinitionLayer
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTimeExtentDefinitionLayerByRef(ILayer layer) throws IOException, AutomationException
setTimeExtentDefinitionLayerByRef
in interface IMapTimeDisplay
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 isDynamicTimeRefresh() throws IOException, AutomationException
isDynamicTimeRefresh
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDynamicTimeRefresh(boolean flag) throws IOException, AutomationException
setDynamicTimeRefresh
in interface IMapTimeDisplay
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowTime() throws IOException, AutomationException
isShowTime
in interface IMapTimeDisplay
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowTime(boolean flag) throws IOException, AutomationException
setShowTime
in interface IMapTimeDisplay
flag
- The flag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITimeExtent computeFullTimeExtent() throws IOException, AutomationException
computeFullTimeExtent
in interface IMapTimeDisplay
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 |