|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.analyst3d.Scene
public class Scene
A container for the display and manipulation of data.
Scene is to ArcScene what Map is to ArcMap. There's only one scene object in each ArcScene session. It's the collection of various layers. Similar to that in ArcScene, there's also a scene object in a scene viewer control or a later version, scene control.
Constructor Summary | |
---|---|
Scene()
Constructs a Scene using ArcGIS Engine. |
|
Scene(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. Scene theScene = (Scene) obj; |
Method Summary | |
---|---|
void |
activate(int hWnd)
Gives this view control of the specified window. |
void |
addBookmark(IBookmark3D pBookmark)
Adds a bookmark to the collection. |
void |
addIActiveViewEventsListener(IActiveViewEvents theListener)
addIActiveViewEventsListener. |
void |
addLayer(ILayer pLayer)
Adds a layer to the map. |
void |
addLayer(ILayer pLayer,
boolean autoArrange)
Adds a layer to the scene. |
void |
addLayers(IEnumLayer layers,
boolean autoArrange)
Adds multiple layers to the scene, optionally arranging them automatically. |
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 |
addTrack(IAGAnimationTrack pTrack)
Adds a track to the collection. |
void |
addTrack(IAnimationTrack pTrack)
Adds a track to the collection. |
boolean |
applies(Object object)
Indicates if the given object is supported by the scene. |
void |
applyTracks(boolean bApplyToAllViewers,
double time)
Uses the enabled animation tracks for the given time. |
void |
applyTracks(ISceneViewer pViewer,
double time,
double duration)
Plays the enabled animation tracks in the given viewer (in all if null). |
void |
changePriority(IAGAnimationTrack pTrack,
boolean bAbsolute,
boolean bInSameType,
int changeInIndex)
Changes the priority (index) of the track. |
void |
changePriority(IAnimationTrack pTrack,
boolean bAbsolute,
boolean bInSameType,
int changeInIndex)
Changes the priority (index) of the track. |
void |
clear()
Empties the view contents. |
void |
clearLayers()
Removes all layers from the scene. |
void |
clearMapSurrounds()
Removes all map surrounds from the map. |
void |
clearSelection()
Clears the scene's selection. |
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. |
IAGAnimationTrack |
createTrack(IAGAnimationType pType)
Creates a new track and adds it to the collection. |
void |
deactivate()
Another view takes over the associated window. |
void |
delayDrawing(boolean delay)
Suspends drawing. |
void |
delayEvents(boolean delay)
Used to batch operations together in order to minimize system notifications. |
void |
deleteLayer(ILayer layer)
Deletes a layer from the scene. |
void |
deleteMapSurround(IMapSurround mapSurround)
Deletes a map surround from the map. |
void |
detachObject(Object pObject)
Detach an object from all tracks it is attached to. |
void |
draw(int hDC,
ITrackCancel trackCancel)
Draws the view to the specified device context. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
void |
findBookmark(String name,
IBookmark3D[] ppBookmark)
Finds a bookmark by name. |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
IEnumRelationshipClass |
findRelationshipClasses(IObjectClass objectClass,
int role)
Finds all relationship classes in the collection that reference the given object class in the specified role. |
void |
findTrack(String name,
IAGAnimationTrack[] ppTrack)
Finds a track by name. |
void |
findTrack(String name,
IAnimationTrack[] ppTrack)
Finds a track by name. |
ILayer |
getActiveGraphicsLayer()
The active graphics layer. |
IArray |
getAGTracks()
The animation tracks. |
IAnimationExtension |
getAnimationExtension()
The animation extension containing tracks and environment settings. |
IAGAnimationContainer |
getAnimationObjectContainer()
The container of the animation objects attached to the tracks. |
IArray |
getAnimationTypes()
The objects that describe the registered types of animation. |
IAnnotateMap |
getAnnotationEngine()
The annotation (label) engine the map will use. |
IEnvelope |
getAreaOfInterest()
The area of interest for the scene. |
IBarrierCollection |
getBarriers(IEnvelope pExtent)
The list of barriers and their weight for labeling. |
IViewers3D |
getBasicDisplay()
The basic 3D display used by the scene. |
IGraphicsLayer |
getBasicGraphicsLayer()
The basic graphics layer. |
int |
getBookmarkCount()
The number of bookmarks. |
IArray |
getBookmarks()
The bookmarks. |
void |
getClassID(GUID[] pClassID)
getClassID |
IBorder |
getClipBorder()
An optional border drawn around ClipGeometry. |
IGeometry |
getClipGeometry()
A shape that layers in the map are clipped to. |
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. |
ITimeExtent |
getCurrentTimeExtent()
getCurrentTimeExtent |
void |
getDefaultBackgroundColor(float[] red,
float[] green,
float[] blue)
Returns the default background color. |
double |
getDefaultTimeInterval()
getDefaultTimeInterval |
int |
getDefaultTimeIntervalUnits()
getDefaultTimeIntervalUnits |
double |
getDefaultTimeWindow()
getDefaultTimeWindow |
String |
getDescription()
The description of the scene. |
String |
getDisplayDateFormat()
getDisplayDateFormat |
int |
getDisplaySpeed()
getDisplaySpeed |
String |
getDisplayTimeFormat()
getDisplayTimeFormat |
int |
getDistanceUnits()
The distance units for the map. |
double |
getExaggerationFactor()
The vertical exaggeration of the scene. |
tagRECT |
getExportFrame()
The device rectangle to export. |
IEnvelope |
getExtent()
The extent of the scene. |
IExtentStack |
getExtentStack()
The extent stack. |
ISelection |
getFeatureSelection()
The scene's feature selection. |
IMap |
getFocusMap()
The map that tools and controls act on. |
IEnvelope |
getFullExtent()
The full extent rectangle. |
ITimeExtent |
getFullTimeExtent()
getFullTimeExtent |
IGraphicsContainer |
getGraphicsContainer()
The active graphics container. |
ILayer |
getLayer(int index)
The layer corresponding to a given index. |
int |
getLayerCount()
The number of layers in the scene. |
IEnumLayer |
getLayers(IUID uid,
boolean recursive)
The layers in the scene of the type specified in the UID. |
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. |
String |
getName()
The name of the scene. |
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. |
ISceneGraph |
getSceneGraph()
The scene's scenegraph. |
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. |
ISelection |
getSelection()
The selection. |
int |
getSelectionCount()
The number of selected features. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
ISpatialReference |
getSpatialReference()
The spatial reference of the scene. |
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 |
getTrackCount()
The number of tracks. |
IArray |
getTracks()
The animation tracks. |
IArray |
getTracksOfType(IAGAnimationType pType)
The animation tracks of a given type. |
IArray |
getTracksOfType(IAnimationType pType)
The animation tracks of a given type. |
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. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isActive()
Indicates if view is active or not. |
void |
isDirty()
isDirty |
boolean |
isDisplayEachTimestamp()
isDisplayEachTimestamp |
boolean |
isDynamicTimeRefresh()
isDynamicTimeRefresh |
boolean |
isExpanded()
Indicates if the Map is expanded. |
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 |
isShowRulers()
Indicates if rulers are visible. |
boolean |
isShowScrollBars()
Indicates if scrollbars are visible. |
boolean |
isShowSelection()
Indicates if selection is visible. |
boolean |
isShowTime()
isShowTime |
boolean |
isSpatialReferenceLocked()
Indicates whether the spatial reference is prevented from being changed. |
boolean |
isUseSymbolLevels()
Indicates if the Map draws using symbol levels. |
void |
load(IStream pstm)
load |
void |
loadAnimation(String pFilename)
Load the animation from a file. |
void |
loadBookmarks(IStream pStm)
Load the bookmarks from a stream. |
void |
loadTracks(IStream pStm)
Load the animation tracks from a stream. |
void |
moveLayer(ILayer layer,
int toIndex)
Moves a layer to another position within the Table Of Contents. |
void |
moveLayerEx(IGroupLayer pFromGroup,
IGroupLayer pToGroup,
ILayer pLayer,
int newPosition)
Moves the layer with in the map. |
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 |
printerChanged(IPrinter printer)
Called by application when printer changes. |
void |
proposeSpatialReference(ISpatialReference pProposedSR,
boolean[] pbChanged)
Proposes a spatial reference for the scene. |
void |
readExternal(ObjectInput in)
|
void |
recalcFullExtent()
Forces the full extent to be recalculated. |
void |
recalculateExtent()
Forces the scene's extent to be recalculated. |
void |
refresh()
Causes the entire view to draw. |
void |
refreshAttachedObjects()
Detaches from the tracks those objects that no longer exist. |
void |
removeAllBookmarks()
Removes all bookmarks. |
void |
removeAllStandaloneTables()
Removes all standalone tables from the collection. |
void |
removeAllTables()
Removes all tables from the collection. |
void |
removeAllTracks()
Removes all tracks. |
void |
removeBookmark(IBookmark3D bookmark)
Removes a bookmark from the collection. |
void |
removeIActiveViewEventsListener(IActiveViewEvents theListener)
removeIActiveViewEventsListener. |
void |
removeStandaloneTable(IStandaloneTable table)
Removes the standalone table from the collection. |
void |
removeTable(ITable table)
Removes a table from the collection. |
void |
removeTrack(IAGAnimationTrack pTrack)
Removes a track from the collection. |
void |
removeTrack(IAnimationTrack pTrack)
Removes a track from the collection. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
saveAnimation(String pFilename)
Save the animation to a file. |
void |
saveBookmarks(IStream pStm)
Save the bookmarks to a stream. |
void |
saveTracks(IStream pStm)
Save the animation tracks to a stream. |
void |
selectByShape(IGeometry shape,
ISelectionEnvironment env,
boolean justOne)
Selects features in the scene given a shape and an optional selection environment. |
void |
selectFeature(ILayer layer,
IFeature pFeature)
Selects a feature. |
void |
selectionChanged(ISelectionEventsSelectionChangedEvent theEvent)
Call this function to fire the selection changed event. |
void |
setActiveGraphicsLayerByRef(ILayer ppLayer)
The active graphics layer. |
void |
setAnimationObjectContainerByRef(IAGAnimationContainer ppContainer)
The container of the animation objects attached to the tracks. |
void |
setAnnotationEngineByRef(IAnnotateMap annotateMap)
The annotation (label) engine the map will use. |
void |
setAreaOfInterest(IEnvelope aoi)
The area of interest for the scene. |
void |
setClipBorder(IBorder border)
An optional border drawn around ClipGeometry. |
void |
setClipGeometry(IGeometry clipGeometry)
A shape that layers in the map are clipped to. |
void |
setCurrentTimeExtentByRef(ITimeExtent timeExtent)
setCurrentTimeExtentByRef |
void |
setDefaultBackgroundColor(float red,
float green,
float blue)
Sets the default background color. |
void |
setDefaultTimeInterval(double interval)
setDefaultTimeInterval |
void |
setDefaultTimeIntervalUnits(int units)
setDefaultTimeIntervalUnits |
void |
setDefaultTimeWindow(double duration)
setDefaultTimeWindow |
void |
setDescription(String descr)
The description of the scene. |
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 |
setDynamicTimeRefresh(boolean flag)
setDynamicTimeRefresh |
void |
setExaggerationFactor(double exaggerationFactor)
The vertical exaggeration of the scene. |
void |
setExpanded(boolean expanded)
Indicates if the Map is expanded. |
void |
setExtent(IEnvelope extent)
The visible extent rectangle. |
void |
setFeatureSelectionByRef(ISelection selection)
The scene's feature selection. |
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 |
setMapScale(double scaleRF)
The scale of the map as a representative fraction. |
void |
setMapUnits(int unitsCode)
The units for the map. |
void |
setName(String name)
The name of the scene. |
void |
setPageSize(double widthInches,
double heightInches)
Sets the page size for the map (optional). |
void |
setPlayOption(int option)
setPlayOption |
void |
setReferenceScale(double scaleRF)
The reference scale of the map as a representative fraction. |
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 |
setSpatialReferenceByRef(ISpatialReference spatialRef)
The spatial reference of the scene. |
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 |
setUseSymbolLevels(boolean flag)
Indicates if the Map draws using symbol levels. |
void |
suggestExaggerationFactor(double aspectRatio,
double[] exaggerationFactor)
Returns the vertical exaggeration factor that achieves the aspect ratio for the scene's extent. |
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 Scene() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic Scene(Object obj) throws IOException
Scene theScene = (Scene) obj;
obj
to Scene
.
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 IEnvelope getExtent() throws IOException, AutomationException
The returned envelope represents the extent of the scene in X, Y, and Z.
The ZMin and ZMax of the envelope take into consideration the 3D properties of the scene's layers (base heights, extrusion, etc.).
The ZMin and ZMax of the envelope do not take into consideration the scene's vertical exaggeration.
getExtent
in interface IScene
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 suggestExaggerationFactor(double aspectRatio, double[] exaggerationFactor) throws IOException, AutomationException
suggestExaggerationFactor
in interface IScene
aspectRatio
- The aspectRatio (in)exaggerationFactor
- The exaggerationFactor (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getExaggerationFactor() throws IOException, AutomationException
getExaggerationFactor
in interface IScene
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setExaggerationFactor(double exaggerationFactor) throws IOException, AutomationException
setExaggerationFactor
in interface IScene
exaggerationFactor
- The exaggerationFactor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean applies(Object object) throws IOException, AutomationException
The Applies member is used to determine whether the passed Layer, DatasetName, or GxLayer is supported.
applies
in interface IScene
object
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
The Name is in reference to the string displayed at the top of the Scene's table of contents (TOC). When setting a new name call ISxDocument.UpdateContents to refresh the TOC display so the new name becomes visible.
getName
in interface IScene
getName
in interface IBasicMap
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
setName
in interface IScene
setName
in interface IBasicMap
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
getDescription
in interface IScene
getDescription
in interface IBasicMap
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
setDescription
in interface IScene
setDescription
in interface IBasicMap
setDescription
in interface IMap
descr
- The descr (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getAreaOfInterest() throws IOException, AutomationException
getAreaOfInterest
in interface IScene
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAreaOfInterest(IEnvelope aoi) throws IOException, AutomationException
setAreaOfInterest
in interface IScene
setAreaOfInterest
in interface IBasicMap
setAreaOfInterest
in interface IMap
aoi
- 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
getLayerCount
in interface IScene
getLayerCount
in interface IBasicMap
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 IScene
getLayer
in interface IBasicMap
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 IScene
getLayers
in interface IBasicMap
getLayers
in interface IMap
getLayers
in interface IMapLayers
uid
- A reference to a com.esri.arcgis.system.IUID (in, optional, pass null if not required)recursive
- The recursive (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addLayer(ILayer pLayer, boolean autoArrange) 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.
addLayer
in interface IScene
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)autoArrange
- The autoArrange (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addLayers(IEnumLayer layers, boolean autoArrange) 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.
addLayers
in interface IScene
addLayers
in interface IBasicMap
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
public void deleteLayer(ILayer layer) {
IScene pScene;
ILayer pLayer;
// get IScene ...
if (pScene.LayerCount > 0) {
pLayer = pScene.getLayer(0);
pScene.deleteLayer(pLayer);
}
}
<PRE>
public void deleteLayer(ILayer layer) {
IScene pScene;
ILayer pLayer;
// get IScene ......
if (pScene.LayerCount > 0) {
pLayer = pScene.getLayer(0);
pScene.deleteLayer(pLayer);
}
}
</PRE>
deleteLayer
in interface IScene
deleteLayer
in interface IBasicMap
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
moveLayer
in interface IScene
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
public void clearLayers(ILayer layer) throws IOException, AutomationException
{
IScene pScene;
ILayer pLayer;//get IScene ......
pScene.clearLayers();
}
The following example shows how to remove all layers from the scene:
<PRE>
public void clearLayers(ILayer layer) throws IOException, AutomationException
{
IScene pScene;
ILayer pLayer;
//get IScene ......
pScene.clearLayers();
}
</PRE>
clearLayers
in interface IScene
clearLayers
in interface IBasicMap
clearLayers
in interface IMap
clearLayers
in interface IMapLayers
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference() throws IOException, AutomationException
getSpatialReference
in interface IScene
getSpatialReference
in interface IBasicMap
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 IScene
setSpatialReferenceByRef
in interface IBasicMap
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 void proposeSpatialReference(ISpatialReference pProposedSR, boolean[] pbChanged) throws IOException, AutomationException
proposeSpatialReference
in interface IScene
pProposedSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pbChanged
- The pbChanged (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGraphicsLayer getBasicGraphicsLayer() throws IOException, AutomationException
getBasicGraphicsLayer
in interface IScene
getBasicGraphicsLayer
in interface IBasicMap
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 IScene
getActiveGraphicsLayer
in interface IBasicMap
getActiveGraphicsLayer
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setActiveGraphicsLayerByRef(ILayer ppLayer) throws IOException, AutomationException
setActiveGraphicsLayerByRef
in interface IScene
setActiveGraphicsLayerByRef
in interface IBasicMap
setActiveGraphicsLayerByRef
in interface IMap
ppLayer
- 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 delayEvents(boolean delay) throws IOException, AutomationException
delayEvents
in interface IScene
delayEvents
in interface IMap
delay
- The delay (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSelectionCount() throws IOException, AutomationException
getSelectionCount
in interface IScene
getSelectionCount
in interface IBasicMap
getSelectionCount
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void selectFeature(ILayer layer, IFeature pFeature) throws IOException, AutomationException
selectFeature
in interface IScene
selectFeature
in interface IMap
layer
- A reference to a com.esri.arcgis.carto.ILayer (in)pFeature
- 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 void clearSelection() throws IOException, AutomationException
clearSelection
in interface IScene
clearSelection
in interface IBasicMap
clearSelection
in interface IMap
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelection getFeatureSelection() throws IOException, AutomationException
getFeatureSelection
in interface IScene
getFeatureSelection
in interface IBasicMap
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 IScene
setFeatureSelectionByRef
in interface IBasicMap
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
in interface IScene
selectByShape
in interface IBasicMap
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 recalculateExtent() throws IOException, AutomationException
recalculateExtent
in interface IScene
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISceneGraph getSceneGraph() throws IOException, AutomationException
getSceneGraph
in interface IScene
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDefaultBackgroundColor(float red, float green, float blue) throws IOException, AutomationException
The values for the red, green, and blue components should fall between 0 and 1 inclusive. A value of 1 represents 100% saturation of that component.
The DefaultBackgroundColor is that used by new scenes. Only when a new scene is created will the color set here be used.
If you want to set the background color of the existing scene use ISceneGraph.SetBackgroundColor.
setDefaultBackgroundColor
in interface IScene
red
- The red (in)green
- The green (in)blue
- The blue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getDefaultBackgroundColor(float[] red, float[] green, float[] blue) throws IOException, AutomationException
The values for the red, green, and blue components will fall between 0 and 1 inclusive. A value of 1 represents 100% saturation of that component.
The DefaultBackgroundColor is that used by new scenes. It does not necessarilly indicate the background color of the current scene.
If you want to know the background color of the current scene use ISceneGraph.GetBackgroundColor.
getDefaultBackgroundColor
in interface IScene
red
- The red (out: use single element array)green
- The green (out: use single element array)blue
- The blue (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAnimationExtension getAnimationExtension() throws IOException, AutomationException
getAnimationExtension
in interface IBasicScene2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IViewers3D getBasicDisplay() throws IOException, AutomationException
getBasicDisplay
in interface IBasicScene
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveAnimation(String pFilename) throws IOException, AutomationException
saveAnimation
in interface IBasicScene
pFilename
- The pFilename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadAnimation(String pFilename) throws IOException, AutomationException
loadAnimation
in interface IBasicScene
pFilename
- The pFilename (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 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
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
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 addLayer(ILayer pLayer) throws IOException, AutomationException
addLayer
in interface IBasicMap
addLayer
in interface IMap
addLayer
in interface IMapLayers
pLayer
- 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 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 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
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
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 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 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
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
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 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 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 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 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 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 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 IArray getBookmarks() throws IOException, AutomationException
getBookmarks
in interface ISceneBookmarks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addBookmark(IBookmark3D pBookmark) throws IOException, AutomationException
addBookmark
in interface ISceneBookmarks
pBookmark
- A reference to a com.esri.arcgis.analyst3d.IBookmark3D (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findBookmark(String name, IBookmark3D[] ppBookmark) throws IOException, AutomationException
findBookmark
in interface ISceneBookmarks
name
- The name (in)ppBookmark
- A reference to a com.esri.arcgis.analyst3d.IBookmark3D (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeBookmark(IBookmark3D bookmark) throws IOException, AutomationException
removeBookmark
in interface ISceneBookmarks
bookmark
- A reference to a com.esri.arcgis.analyst3d.IBookmark3D (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAllBookmarks() throws IOException, AutomationException
removeAllBookmarks
in interface ISceneBookmarks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBookmarkCount() throws IOException, AutomationException
getBookmarkCount
in interface ISceneBookmarks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveBookmarks(IStream pStm) throws IOException, AutomationException
saveBookmarks
in interface ISceneBookmarks
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 loadBookmarks(IStream pStm) throws IOException, AutomationException
loadBookmarks
in interface ISceneBookmarks
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 IArray getAnimationTypes() throws IOException, AutomationException
getAnimationTypes
in interface IAnimationTracks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTrackCount() throws IOException, AutomationException
getTrackCount
in interface IAnimationTracks
getTrackCount
in interface IAGAnimationTracks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getTracks() throws IOException, AutomationException
getTracks
in interface IAnimationTracks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getTracksOfType(IAnimationType pType) throws IOException, AutomationException
getTracksOfType
in interface IAnimationTracks
pType
- A reference to a com.esri.arcgis.analyst3d.IAnimationType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addTrack(IAnimationTrack pTrack) throws IOException, AutomationException
addTrack
in interface IAnimationTracks
pTrack
- A reference to a com.esri.arcgis.analyst3d.IAnimationTrack (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findTrack(String name, IAnimationTrack[] ppTrack) throws IOException, AutomationException
findTrack
in interface IAnimationTracks
name
- The name (in)ppTrack
- A reference to a com.esri.arcgis.analyst3d.IAnimationTrack (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeTrack(IAnimationTrack pTrack) throws IOException, AutomationException
removeTrack
in interface IAnimationTracks
pTrack
- A reference to a com.esri.arcgis.analyst3d.IAnimationTrack (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAllTracks() throws IOException, AutomationException
removeAllTracks
in interface IAnimationTracks
removeAllTracks
in interface IAGAnimationTracks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveTracks(IStream pStm) throws IOException, AutomationException
saveTracks
in interface IAnimationTracks
saveTracks
in interface IAGAnimationTracks
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 loadTracks(IStream pStm) throws IOException, AutomationException
loadTracks
in interface IAnimationTracks
loadTracks
in interface IAGAnimationTracks
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 detachObject(Object pObject) throws IOException, AutomationException
detachObject
in interface IAnimationTracks
detachObject
in interface IAGAnimationTracks
pObject
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refreshAttachedObjects() throws IOException, AutomationException
refreshAttachedObjects
in interface IAnimationTracks
refreshAttachedObjects
in interface IAGAnimationTracks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void applyTracks(ISceneViewer pViewer, double time, double duration) throws IOException, AutomationException
applyTracks
in interface IAnimationTracks
pViewer
- A reference to a com.esri.arcgis.analyst3d.ISceneViewer (in)time
- The time (in)duration
- The duration (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void changePriority(IAnimationTrack pTrack, boolean bAbsolute, boolean bInSameType, int changeInIndex) throws IOException, AutomationException
changePriority
in interface IAnimationTracks
pTrack
- A reference to a com.esri.arcgis.analyst3d.IAnimationTrack (in)bAbsolute
- The bAbsolute (in)bInSameType
- The bInSameType (in)changeInIndex
- The changeInIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAGAnimationContainer getAnimationObjectContainer() throws IOException, AutomationException
getAnimationObjectContainer
in interface IAGAnimationTracks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAnimationObjectContainerByRef(IAGAnimationContainer ppContainer) throws IOException, AutomationException
setAnimationObjectContainerByRef
in interface IAGAnimationTracks
ppContainer
- A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getAGTracks() throws IOException, AutomationException
This property returns the animation tracks in the animation track container, which is an IArray object.
getAGTracks
in interface IAGAnimationTracks
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getTracksOfType(IAGAnimationType pType) throws IOException, AutomationException
getTracksOfType
in interface IAGAnimationTracks
pType
- A reference to a com.esri.arcgis.animation.IAGAnimationType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IAGAnimationTrack createTrack(IAGAnimationType pType) throws IOException, AutomationException
createTrack
in interface IAGAnimationTracks
pType
- A reference to a com.esri.arcgis.animation.IAGAnimationType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addTrack(IAGAnimationTrack pTrack) throws IOException, AutomationException
addTrack
in interface IAGAnimationTracks
pTrack
- A reference to a com.esri.arcgis.animation.IAGAnimationTrack (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findTrack(String name, IAGAnimationTrack[] ppTrack) throws IOException, AutomationException
findTrack
in interface IAGAnimationTracks
name
- The name (in)ppTrack
- A reference to a com.esri.arcgis.animation.IAGAnimationTrack (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeTrack(IAGAnimationTrack pTrack) throws IOException, AutomationException
removeTrack
in interface IAGAnimationTracks
pTrack
- A reference to a com.esri.arcgis.animation.IAGAnimationTrack (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void applyTracks(boolean bApplyToAllViewers, double time) throws IOException, AutomationException
applyTracks
in interface IAGAnimationTracks
bApplyToAllViewers
- The bApplyToAllViewers (in)time
- The time (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void changePriority(IAGAnimationTrack pTrack, boolean bAbsolute, boolean bInSameType, int changeInIndex) throws IOException, AutomationException
changePriority
in interface IAGAnimationTracks
pTrack
- A reference to a com.esri.arcgis.animation.IAGAnimationTrack (in)bAbsolute
- The bAbsolute (in)bInSameType
- The bInSameType (in)changeInIndex
- The changeInIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 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 |