|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.globecore.Globe
A container for the display and manipulation of data in the Globe.
The Globe object is central to the ArcGlobe application. It's analogous to Map and Scene objects in ArcMap and ArcScene. It's used to add and retrieve layers and to manipulate document level properties.
| Constructor Summary | |
Globe()
Constructs a Globe using ArcGIS Engine. |
|
Globe(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| 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)
|
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 |
addLayerType(ILayer pLayer,
int layerType,
boolean autoArrange)
Add layer to globe as specified type. |
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(java.lang.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 |
clearSelection()
Clears the scene's selection. |
void |
contentsChanged()
Called by clients when view objects are modified. |
IAGAnimationTrack |
createTrack(IAGAnimationType pType)
Creates a new track and adds it to the collection. |
void |
deactivate()
Another view takes over the associated window. |
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 |
detachObject(java.lang.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 |
drawGraphsToDC(int hDC)
Draw datagraphs to specified device context. |
void |
drawPageLayoutToDC(int hDC)
Draw the page layout to specified device context. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
Supported Platforms |
boolean |
equals(java.lang.Object o)
Compare this object with another |
void |
findBookmark(java.lang.String name,
IBookmark3D[] ppBookmark)
Finds a bookmark by name. |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
Supported Platforms |
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(java.lang.String name,
IAGAnimationTrack[] ppTrack)
Finds a track by name. |
void |
findTrack(java.lang.String name,
IAnimationTrack[] ppTrack)
Finds a track by name. |
ILayer |
getActiveGraphicsLayer()
The active graphics layer. |
IArray |
getAGTracks()
The animation tracks. |
IArray |
getAllViews()
All the viewers. |
IAnimationExtension |
getAnimationExtension()
The animation extension containing tracks and environment settings. |
java.lang.String |
getAnimationFileExtension()
The extension for the animation files. |
java.lang.String |
getAnimationFileFilter(boolean bAllVersions)
The filter for browing animation files. |
IAGAnimationContainer |
getAnimationObjectContainer()
The container of the animation objects attached to the tracks. |
IArray |
getAnimationTypes()
The objects that describe the registered types of animation. |
IEnvelope |
getAreaOfInterest()
The area of interest for the scene. |
IActiveView |
getAsIActiveView()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAGAnimationContainer |
getAsIAGAnimationContainer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAGAnimationTracks |
getAsIAGAnimationTracks()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IAnimationTracks |
getAsIAnimationTracks()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IBasicMap |
getAsIBasicMap()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IBasicScene2 |
getAsIBasicScene2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IConnectionPointContainer |
getAsIConnectionPointContainer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IGlobe2 |
getAsIGlobe2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IMapGeographicTransformations |
getAsIMapGeographicTransformations()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IPersistStream |
getAsIPersistStream()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IRelationshipClassCollection |
getAsIRelationshipClassCollection()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IScene |
getAsIScene()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ISceneBookmarks |
getAsISceneBookmarks()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ISelectionEvents |
getAsISelectionEvents()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IStandaloneTableCollection |
getAsIStandaloneTableCollection()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ISupportErrorInfo |
getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ITableCollection |
getAsITableCollection()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
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)
Supported Platforms |
static java.lang.String |
getClsid()
|
void |
getContextMenu(double x,
double y,
IUID[] clsidMenu)
Called when a context menu should be displayed at the given xy location. |
java.lang.Object |
getCurrentView()
The current active viewer. |
int |
getDanglingCachesCount()
Returns the count of globe caches which are not saved. |
void |
getDefaultBackgroundColor(float[] red,
float[] green,
float[] blue)
Returns the default background color. |
void |
getDefaultBackgTransitionDistances(float[] pLowAltitute,
float[] pHighAltitude)
The altitude values in kilometers for the transition in the background color. |
int |
getDefaultGlobeBackgroundOption()
The default background option. |
void |
getDefaultHighBackgroundColor(float[] red,
float[] green,
float[] blue)
The default high altitude background color. |
void |
getDefaultLowBackgroundColor(float[] red,
float[] green,
float[] blue)
The default low altitude background color. |
java.lang.String |
getDescription()
The description of the scene. |
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. |
IGeoTransformationOperationSet |
getGeographicTransformations()
On-the-fly geographic transformations. |
IGlobeDisplay |
getGlobeDisplay()
The globe display. |
IEnumLayer |
getGlobeLayers(IUID pUid,
boolean bRecursive,
boolean bInBaseGlobe,
boolean bSortedByDrawingPriority)
The globe layers by UID and internal grouping. |
int |
getGlobeUnits()
The linear units used in the globe. |
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. |
java.lang.String |
getName()
The name of the scene. |
IEnumRelationshipClass |
getRelationshipClasses()
The memory relationship classes. |
ISceneGraph |
getSceneGraph()
The scene's scenegraph. |
short |
getScreenCacheID(int phase,
java.lang.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. |
int |
getShowGlobeTips()
Show globe tips. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
Supported Platforms |
IArray |
getSpatialBookmarks()
The spatial bookmarks that can be used to define animations. |
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. |
java.lang.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. |
java.lang.Object |
getViewController(java.lang.Object pViewer)
The controller object (Camera) of a viewer. |
int |
getWindowHandle(java.lang.Object pView)
The window handle associated with the given view. |
int |
hashCode()
the hashcode for this object |
IMap |
hitTestMap(IPoint location)
Returns any maps present in the view at the given location. |
void |
interfaceSupportsErrorInfo(GUID riid)
Supported Platforms |
boolean |
isActive()
Indicates if view is active or not. |
void |
isDirty()
Supported Platforms |
boolean |
isGestureEnabled()
Indicates if interactive gestures are enabled. |
boolean |
isMapActivated()
Indicates if the focus map is activated. |
boolean |
isReportLayersInDrawingOrder()
Controls if layers are reported in drawing order. |
boolean |
isShowRulers()
Indicates if rulers are visible. |
boolean |
isShowScrollBars()
Indicates if scrollbars are visible. |
boolean |
isShowSelection()
Indicates if selection is visible. |
void |
load(IStream pstm)
Supported Platforms |
void |
loadAnimation(java.lang.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 |
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,
java.lang.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 |
putIsAnimating(boolean bAnimating,
boolean bFullQuality)
Indicates if the animation is active, and if full quality rendering is used (for video). |
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 |
refreshGroupLayer(ILayer pLayer)
Refresh globe group layer. |
void |
refreshObject(java.lang.Object pObject)
Container-specific actions to refresh object. |
void |
refreshViews(boolean bRefreshAllViewers)
Refresh the active viewer or all viewers. |
void |
removeAllAnimationTimeStrings(IAGAnimationTracks pTracks)
Remove all animation time string from the display. |
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)
|
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 |
removeTrackTimeDisplay(IAGAnimationTrack pTrack)
Remove a single animation track time string from the display. |
void |
restoreViewerStates(boolean bApplyRestored)
Restore the current state of the viewers. |
void |
save(IStream pstm,
int fClearDirty)
Supported Platforms |
void |
saveAnimation(java.lang.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 |
saveViewerStates()
Save the current state of the viewers. |
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 |
setAnimationTime(IStringArray rhs1)
Set the animation time string. |
void |
setAreaOfInterest(IEnvelope aoi)
The area of interest for the scene. |
void |
setDefaultBackgroundColor(float red,
float green,
float blue)
Sets the default background color. |
void |
setDefaultBackgTransitionDistances(float lowAltitute,
float highAltitude)
The altitude values in kilometers for the transition in the background color. |
void |
setDefaultGlobeBackgroundOption(int pOption)
The default background option. |
void |
setDefaultHighBackgroundColor(float red,
float green,
float blue)
The default high altitude background color. |
void |
setDefaultLowBackgroundColor(float red,
float green,
float blue)
The default low altitude background color. |
void |
setDescription(java.lang.String descr)
The description of the scene. |
void |
setExaggerationFactor(double exaggerationFactor)
The vertical exaggeration of the scene. |
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 |
setGlobeUnits(int pUnits)
The linear units used in the globe. |
void |
setIsGestureEnabled(boolean pbGestureEnabled)
Indicates if interactive gestures are enabled. |
void |
setIsMapActivated(boolean isMapActivated)
Indicates if the focus map is activated. |
void |
setName(java.lang.String name)
The name of the scene. |
void |
setReportLayersInDrawingOrder(boolean bTyped)
Controls if layers are reported in drawing order. |
void |
setSelectionByRef(ISelection selection)
The selection. |
void |
setShowGlobeTips(int pTipsType)
Show globe tips. |
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 |
setSpatialReferenceByRef(ISpatialReference spatialRef)
The spatial reference of the scene. |
void |
suggestExaggerationFactor(double aspectRatio,
double[] exaggerationFactor)
Returns the vertical exaggeration factor that achieves the aspect ratio for the scene's extent. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Globe()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public Globe(java.lang.Object obj)
throws java.io.IOException
obj to Globe. Globe theGlobe = (Globe) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public IGlobe2 getAsIGlobe2()
public IScene getAsIScene()
public IBasicScene2 getAsIBasicScene2()
public IActiveView getAsIActiveView()
public IBasicMap getAsIBasicMap()
public ISelectionEvents getAsISelectionEvents()
public ITableCollection getAsITableCollection()
public IStandaloneTableCollection getAsIStandaloneTableCollection()
public IRelationshipClassCollection getAsIRelationshipClassCollection()
public ISceneBookmarks getAsISceneBookmarks()
public IAnimationTracks getAsIAnimationTracks()
public IAGAnimationTracks getAsIAGAnimationTracks()
public IAGAnimationContainer getAsIAGAnimationContainer()
public ISupportErrorInfo getAsISupportErrorInfo()
public IConnectionPointContainer getAsIConnectionPointContainer()
public IPersistStream getAsIPersistStream()
public IMapGeographicTransformations getAsIMapGeographicTransformations()
public boolean equals(java.lang.Object o)
public int hashCode()
public void addIActiveViewEventsListener(IActiveViewEvents theListener)
throws java.io.IOException
java.io.IOException
public void removeIActiveViewEventsListener(IActiveViewEvents theListener)
throws java.io.IOException
java.io.IOException
public void refreshGroupLayer(ILayer pLayer)
throws java.io.IOException,
AutomationException
IGlobe2
refreshGroupLayer in interface IGlobe2pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setReportLayersInDrawingOrder(boolean bTyped)
throws java.io.IOException,
AutomationException
IGlobe2
setReportLayersInDrawingOrder in interface IGlobe2bTyped - The bTyped (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isReportLayersInDrawingOrder()
throws java.io.IOException,
AutomationException
IGlobe2
isReportLayersInDrawingOrder in interface IGlobe2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDanglingCachesCount()
throws java.io.IOException,
AutomationException
IGlobe2
getDanglingCachesCount in interface IGlobe2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumLayer getGlobeLayers(IUID pUid,
boolean bRecursive,
boolean bInBaseGlobe,
boolean bSortedByDrawingPriority)
throws java.io.IOException,
AutomationException
IGlobeReturns layers of the specified type that reside in the globe document.
pUID is the interface identifier (IID) for the desired layer type. For example, the IID for IRasterLayer is
{D02371C7-35F7-11D2-B1F2-00C04F8EDEFF}. This is the value to use when you desire the collection of raster layers in the globe document.
bRecursive indictates whether the contents of group layers should be searched for candidates. Set to TRUE if the contents of group layers should be used, FALSE if not.
bInBaseGlobe is used to make a distinction between layers belonging to the base globe, elevation and draped layers, and those independent of the base globe, the floating layers. Set to TRUE for elevation or draped layers. Set to FALSE to return only floating layers.
bSortedByDrawingPriority controls the return order of draped layers. Set to TRUE if they should be returned based on drawing order, which matches the order of draped layers in the Type tab of the Table of Contents (TOC).
getGlobeLayers in interface IGlobepUid - A reference to a com.esri.arcgis.system.IUID (in)bRecursive - The bRecursive (in)bInBaseGlobe - The bInBaseGlobe (in)bSortedByDrawingPriority - The bSortedByDrawingPriority (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGlobeDisplay getGlobeDisplay()
throws java.io.IOException,
AutomationException
IGlobe
getGlobeDisplay in interface IGlobeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getDefaultGlobeBackgroundOption()
throws java.io.IOException,
AutomationException
IGlobeControls whether the background sky color is based on a transition between two colors assigned to observer altitude or is a constant single color.
The esriGlobeBackgroundOption enumeration provides the definition for the two options available. These are esriGlobeBackgroundTransition, the default, and esriGlobeBackgroundSingle.
When using esriGlobeBackgroundTransition consider the related IGlobe interface members to set or get the background colors and transition distances.
getDefaultGlobeBackgroundOption in interface IGlobeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDefaultGlobeBackgroundOption(int pOption)
throws java.io.IOException,
AutomationException
IGlobe
setDefaultGlobeBackgroundOption in interface IGlobepOption - A com.esri.arcgis.globecore.esriGlobeBackgroundOption constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDefaultHighBackgroundColor(float red,
float green,
float blue)
throws java.io.IOException,
AutomationException
IGlobe
setDefaultHighBackgroundColor in interface IGlobered - The red (in)green - The green (in)blue - The blue (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void getDefaultHighBackgroundColor(float[] red,
float[] green,
float[] blue)
throws java.io.IOException,
AutomationException
IGlobeReturns the default RGB color of the display background, or sky, when the observer is at high altitude.
RGB values are floating point between 0 and 1 inclusive.
getDefaultHighBackgroundColor in interface IGlobered - The red (out: use single element array)green - The green (out: use single element array)blue - The blue (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultLowBackgroundColor(float red,
float green,
float blue)
throws java.io.IOException,
AutomationException
IGlobe
setDefaultLowBackgroundColor in interface IGlobered - The red (in)green - The green (in)blue - The blue (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void getDefaultLowBackgroundColor(float[] red,
float[] green,
float[] blue)
throws java.io.IOException,
AutomationException
IGlobeReturns the default RGB color of the display background, or sky, when the observer is at low altitude.
RGB values are floating point between 0 and 1 inclusive.
getDefaultLowBackgroundColor in interface IGlobered - The red (out: use single element array)green - The green (out: use single element array)blue - The blue (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultBackgTransitionDistances(float lowAltitute,
float highAltitude)
throws java.io.IOException,
AutomationException
IGlobe
setDefaultBackgTransitionDistances in interface IGlobelowAltitute - The lowAltitute (in)highAltitude - The highAltitude (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void getDefaultBackgTransitionDistances(float[] pLowAltitute,
float[] pHighAltitude)
throws java.io.IOException,
AutomationException
IGlobeReturns the high and low transition distances for changing between background sky colors. These represent the altitude of the virtual camera.
Values are in kilometers.
getDefaultBackgTransitionDistances in interface IGlobepLowAltitute - The pLowAltitute (out: use single element array)pHighAltitude - The pHighAltitude (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setGlobeUnits(int pUnits)
throws java.io.IOException,
AutomationException
IGlobe
setGlobeUnits in interface IGlobepUnits - A com.esri.arcgis.system.esriUnits constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getGlobeUnits()
throws java.io.IOException,
AutomationException
IGlobeGlobeUnits are the measurement units used when reporting the distance of the virtual camera from the globe surface (in the lower right hand side of the status bar) and the distance of the Measure tool.
getGlobeUnits in interface IGlobeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addLayerType(ILayer pLayer,
int layerType,
boolean autoArrange)
throws java.io.IOException,
AutomationException
IGlobeAdds a layer to the globe. The type of layer is specified by esriGlobeLayerType. This determines how the layer will be used in the globe document: as globe surface elevation, as a draped layer, or as a floating layer.
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.
addLayerType in interface IGlobepLayer - A reference to a com.esri.arcgis.carto.ILayer (in)layerType - A com.esri.arcgis.globecore.esriGlobeLayerType constant (in)autoArrange - The autoArrange (in, optional, pass false if not required)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setShowGlobeTips(int pTipsType)
throws java.io.IOException,
AutomationException
IGlobe
setShowGlobeTips in interface IGlobepTipsType - A com.esri.arcgis.globecore.esriGlobeTipsType constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getShowGlobeTips()
throws java.io.IOException,
AutomationException
IGlobeUsed to indicate whether or not globe tips are used, and if so, what type of tips. The option is given by the esriGlobeTipTypes enumeration.
getShowGlobeTips in interface IGlobeAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnvelope getExtent()
throws java.io.IOException,
AutomationException
ISceneThe 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 IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void suggestExaggerationFactor(double aspectRatio,
double[] exaggerationFactor)
throws java.io.IOException,
AutomationException
IScene
suggestExaggerationFactor in interface ISceneaspectRatio - The aspectRatio (in)exaggerationFactor - The exaggerationFactor (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public double getExaggerationFactor()
throws java.io.IOException,
AutomationException
IScene
getExaggerationFactor in interface IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setExaggerationFactor(double exaggerationFactor)
throws java.io.IOException,
AutomationException
IScene
setExaggerationFactor in interface ISceneexaggerationFactor - The exaggerationFactor (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean applies(java.lang.Object object)
throws java.io.IOException,
AutomationException
ISceneThe Applies member is used to determine whether the passed Layer, DatasetName, or GxLayer is supported.
applies in interface ISceneobject - A reference to another Object (IUnknown) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getName()
throws java.io.IOException,
AutomationException
ISceneThe 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 IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(java.lang.String name)
throws java.io.IOException,
AutomationException
IScene
setName in interface IScenename - The name (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getDescription()
throws java.io.IOException,
AutomationException
IScene
getDescription in interface ISceneAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDescription(java.lang.String descr)
throws java.io.IOException,
AutomationException
IScene
setDescription in interface IScenedescr - The descr (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope getAreaOfInterest()
throws java.io.IOException,
AutomationException
IScene
getAreaOfInterest in interface ISceneAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setAreaOfInterest(IEnvelope aoi)
throws java.io.IOException,
AutomationException
IScene
setAreaOfInterest in interface ISceneaoi - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getLayerCount()
throws java.io.IOException,
AutomationException
IScene
getLayerCount in interface IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILayer getLayer(int index)
throws java.io.IOException,
AutomationException
IScene
getLayer in interface ISceneindex - The index (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumLayer getLayers(IUID uid,
boolean recursive)
throws java.io.IOException,
AutomationException
IScene
getLayers in interface ISceneuid - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addLayer(ILayer pLayer,
boolean autoArrange)
throws java.io.IOException,
AutomationException
ISceneThe 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 IScenepLayer - A reference to a com.esri.arcgis.carto.ILayer (in)autoArrange - The autoArrange (in, optional, pass false if not required)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addLayers(IEnumLayer layers,
boolean autoArrange)
throws java.io.IOException,
AutomationException
ISceneThe 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 IScenelayers - A reference to a com.esri.arcgis.carto.IEnumLayer (in)autoArrange - The autoArrange (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteLayer(ILayer layer)
throws java.io.IOException,
AutomationException
IScene
<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 IScenelayer - A reference to a com.esri.arcgis.carto.ILayer (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void moveLayer(ILayer layer,
int toIndex)
throws java.io.IOException,
AutomationException
IScene
moveLayer in interface IScenelayer - A reference to a com.esri.arcgis.carto.ILayer (in)toIndex - The toIndex (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void clearLayers()
throws java.io.IOException,
AutomationException
ISceneThe 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 ISceneAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ISpatialReference getSpatialReference()
throws java.io.IOException,
AutomationException
IScene
getSpatialReference in interface IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSpatialReferenceByRef(ISpatialReference spatialRef)
throws java.io.IOException,
AutomationException
IScene
setSpatialReferenceByRef in interface IScenespatialRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void proposeSpatialReference(ISpatialReference pProposedSR,
boolean[] pbChanged)
throws java.io.IOException,
AutomationException
IScene
proposeSpatialReference in interface IScenepProposedSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)pbChanged - The pbChanged (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IGraphicsLayer getBasicGraphicsLayer()
throws java.io.IOException,
AutomationException
IScene
getBasicGraphicsLayer in interface ISceneAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ILayer getActiveGraphicsLayer()
throws java.io.IOException,
AutomationException
IScene
getActiveGraphicsLayer in interface IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setActiveGraphicsLayerByRef(ILayer ppLayer)
throws java.io.IOException,
AutomationException
IScene
setActiveGraphicsLayerByRef in interface ISceneppLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void delayEvents(boolean delay)
throws java.io.IOException,
AutomationException
IScene
delayEvents in interface IScenedelay - The delay (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSelectionCount()
throws java.io.IOException,
AutomationException
IScene
getSelectionCount in interface IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void selectFeature(ILayer layer,
IFeature pFeature)
throws java.io.IOException,
AutomationException
IScene
selectFeature in interface IScenelayer - A reference to a com.esri.arcgis.carto.ILayer (in)pFeature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void clearSelection()
throws java.io.IOException,
AutomationException
IScene
clearSelection in interface IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISelection getFeatureSelection()
throws java.io.IOException,
AutomationException
IScene
getFeatureSelection in interface IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFeatureSelectionByRef(ISelection selection)
throws java.io.IOException,
AutomationException
IScene
setFeatureSelectionByRef in interface ISceneselection - A reference to a com.esri.arcgis.carto.ISelection (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void selectByShape(IGeometry shape,
ISelectionEnvironment env,
boolean justOne)
throws java.io.IOException,
AutomationException
IScene
selectByShape in interface ISceneshape - 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void recalculateExtent()
throws java.io.IOException,
AutomationException
IScene
recalculateExtent in interface ISceneAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ISceneGraph getSceneGraph()
throws java.io.IOException,
AutomationException
IScene
getSceneGraph in interface IScenejava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultBackgroundColor(float red,
float green,
float blue)
throws java.io.IOException,
AutomationException
IScene
setDefaultBackgroundColor in interface IScenered - The red (in)green - The green (in)blue - The blue (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getDefaultBackgroundColor(float[] red,
float[] green,
float[] blue)
throws java.io.IOException,
AutomationException
ISceneThe 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 IScenered - The red (out: use single element array)green - The green (out: use single element array)blue - The blue (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IAnimationExtension getAnimationExtension()
throws java.io.IOException,
AutomationException
IBasicScene2
getAnimationExtension in interface IBasicScene2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IViewers3D getBasicDisplay()
throws java.io.IOException,
AutomationException
IBasicScene
getBasicDisplay in interface IBasicSceneAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void saveAnimation(java.lang.String pFilename)
throws java.io.IOException,
AutomationException
IBasicScene
saveAnimation in interface IBasicScenepFilename - The pFilename (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void loadAnimation(java.lang.String pFilename)
throws java.io.IOException,
AutomationException
IBasicScene
loadAnimation in interface IBasicScenepFilename - The pFilename (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope getFullExtent()
throws java.io.IOException,
AutomationException
IActiveViewThe 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 IActiveViewjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFullExtent(IEnvelope extent)
throws java.io.IOException,
AutomationException
IActiveView
setFullExtent in interface IActiveViewextent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setExtent(IEnvelope extent)
throws java.io.IOException,
AutomationException
IActiveView
setExtent in interface IActiveViewextent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IScreenDisplay getScreenDisplay()
throws java.io.IOException,
AutomationException
IActiveViewEach 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 IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IGraphicsContainer getGraphicsContainer()
throws java.io.IOException,
AutomationException
IActiveViewBoth 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 IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IMap getFocusMap()
throws java.io.IOException,
AutomationException
IActiveViewA 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 IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setFocusMapByRef(IMap activeMap)
throws java.io.IOException,
AutomationException
IActiveView
setFocusMapByRef in interface IActiveViewactiveMap - A reference to a com.esri.arcgis.carto.IMap (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isMapActivated()
throws java.io.IOException,
AutomationException
IActiveView
isMapActivated in interface IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setIsMapActivated(boolean isMapActivated)
throws java.io.IOException,
AutomationException
IActiveView
setIsMapActivated in interface IActiveViewisMapActivated - The isMapActivated (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ISelection getSelection()
throws java.io.IOException,
AutomationException
IActiveViewArcMap 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 IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.IMap.getFeatureSelection()
public void setSelectionByRef(ISelection selection)
throws java.io.IOException,
AutomationException
IActiveView
setSelectionByRef in interface IActiveViewselection - A reference to a com.esri.arcgis.carto.ISelection (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getTipText(double x,
double y)
throws java.io.IOException,
AutomationException
IActiveViewReturns the tip text (through ILayer::TipText) for the first feature found at the given coordinate. This property only works for a Map object. This property returns an empty string for PageLayout objects.
getTipText in interface IActiveViewx - The x (in)y - The y (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public tagRECT getExportFrame()
throws java.io.IOException,
AutomationException
IActiveViewReturns 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 IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isShowScrollBars()
throws java.io.IOException,
AutomationException
IActiveViewIActiveView::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 IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setShowScrollBars(boolean showScrollBars)
throws java.io.IOException,
AutomationException
IActiveView
setShowScrollBars in interface IActiveViewshowScrollBars - The showScrollBars (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isShowRulers()
throws java.io.IOException,
AutomationException
IActiveViewThis 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 IActiveViewjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowRulers(boolean showRulers)
throws java.io.IOException,
AutomationException
IActiveView
setShowRulers in interface IActiveViewshowRulers - The showRulers (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowSelection()
throws java.io.IOException,
AutomationException
IActiveViewThis 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 IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setShowSelection(boolean showRulers)
throws java.io.IOException,
AutomationException
IActiveView
setShowSelection in interface IActiveViewshowRulers - The showRulers (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IExtentStack getExtentStack()
throws java.io.IOException,
AutomationException
IActiveViewReturns 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.
getExtentStack in interface IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public short getScreenCacheID(int phase,
java.lang.Object data)
throws java.io.IOException,
AutomationException
IActiveViewThis property is widely used during invalidation (refresh) operations. For example, IScreenDisplay::Invalidate requires a cacheIndex. Use this property to get the cacheIndex for the desired draw phase you wish to refresh. The valid draw phases are held in the esriViewDrawPhase enumeration.
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.
getScreenCacheID in interface IActiveViewphase - A com.esri.arcgis.carto.esriViewDrawPhase constant (in)data - A reference to another Object (IUnknown) (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.esriViewDrawPhase
public IMap hitTestMap(IPoint location)
throws java.io.IOException,
AutomationException
IActiveViewUse 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 IActiveViewlocation - A reference to a com.esri.arcgis.geometry.IPoint (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isActive()
throws java.io.IOException,
AutomationException
IActiveView
isActive in interface IActiveViewjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void activate(int hWnd)
throws java.io.IOException,
AutomationException
IActiveViewCalled 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 IActiveViewhWnd - The hWnd (A COM typedef) (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void deactivate()
throws java.io.IOException,
AutomationException
IActiveViewCalled 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 IActiveViewAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void draw(int hdc,
ITrackCancel trackCancel)
throws java.io.IOException,
AutomationException
IActiveView
draw in interface IActiveViewhdc - The hdc (A COM typedef) (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
java.io.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 java.io.IOException,
AutomationException
IActiveViewThis 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 IActiveViewhdc - The hdc (A COM typedef) (in)dpi - The dpi (in)pixelBounds - A Structure: com.esri.arcgis.display.tagRECT (in)visibleBounds - A reference to a com.esri.arcgis.geometry.IEnvelope (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refresh()
throws java.io.IOException,
AutomationException
IActiveViewIActiveView::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 IActiveViewjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void partialRefresh(int phase,
java.lang.Object data,
IEnvelope envelope)
throws java.io.IOException,
AutomationException
IActiveViewThe 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 IActiveViewphase - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void clear()
throws java.io.IOException,
AutomationException
IActiveViewThe 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 IActiveViewjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void printerChanged(IPrinter printer)
throws java.io.IOException,
AutomationException
IActiveView
printerChanged in interface IActiveViewprinter - A reference to a com.esri.arcgis.output.IPrinter (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void contentsChanged()
throws java.io.IOException,
AutomationException
IActiveViewAfter 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 IActiveViewjava.io.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 java.io.IOException,
AutomationException
IActiveView
onMessage in interface IActiveViewmsg - The msg (in)wParam - The wParam (A COM typedef) (in)lParam - The lParam (A COM typedef) (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void getContextMenu(double x,
double y,
IUID[] clsidMenu)
throws java.io.IOException,
AutomationException
IActiveView
getContextMenu in interface IActiveViewx - The x (in)y - The y (in)clsidMenu - A reference to a com.esri.arcgis.system.IUID (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addLayer(ILayer pLayer)
throws java.io.IOException,
AutomationException
IBasicMap
addLayer in interface IBasicMappLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void selectionChanged(ISelectionEventsSelectionChangedEvent theEvent)
throws java.io.IOException,
AutomationException
ISelectionEvents
selectionChanged in interface ISelectionEventstheEvent - The event
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getTableCount()
throws java.io.IOException,
AutomationException
ITableCollection
getTableCount in interface ITableCollectionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ITable getTable(int index)
throws java.io.IOException,
AutomationException
ITableCollection
getTable in interface ITableCollectionindex - The index (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addTable(ITable table)
throws java.io.IOException,
AutomationException
ITableCollection
addTable in interface ITableCollectiontable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeTable(ITable table)
throws java.io.IOException,
AutomationException
ITableCollection
removeTable in interface ITableCollectiontable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAllTables()
throws java.io.IOException,
AutomationException
ITableCollection
removeAllTables in interface ITableCollectionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getStandaloneTableCount()
throws java.io.IOException,
AutomationException
IStandaloneTableCollection
getStandaloneTableCount in interface IStandaloneTableCollectionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStandaloneTable getStandaloneTable(int index)
throws java.io.IOException,
AutomationException
IStandaloneTableCollection
getStandaloneTable in interface IStandaloneTableCollectionindex - The index (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addStandaloneTable(IStandaloneTable table)
throws java.io.IOException,
AutomationException
IStandaloneTableCollection
addStandaloneTable in interface IStandaloneTableCollectiontable - A reference to a com.esri.arcgis.carto.IStandaloneTable (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void removeStandaloneTable(IStandaloneTable table)
throws java.io.IOException,
AutomationException
IStandaloneTableCollection
removeStandaloneTable in interface IStandaloneTableCollectiontable - A reference to a com.esri.arcgis.carto.IStandaloneTable (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAllStandaloneTables()
throws java.io.IOException,
AutomationException
IStandaloneTableCollection
removeAllStandaloneTables in interface IStandaloneTableCollectionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumRelationshipClass getRelationshipClasses()
throws java.io.IOException,
AutomationException
IRelationshipClassCollection
getRelationshipClasses in interface IRelationshipClassCollectionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumRelationshipClass findRelationshipClasses(IObjectClass objectClass,
int role)
throws java.io.IOException,
AutomationException
IRelationshipClassCollection
findRelationshipClasses in interface IRelationshipClassCollectionobjectClass - A reference to a com.esri.arcgis.geodatabase.IObjectClass (in)role - A com.esri.arcgis.geodatabase.esriRelRole constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IArray getBookmarks()
throws java.io.IOException,
AutomationException
ISceneBookmarks
getBookmarks in interface ISceneBookmarksjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addBookmark(IBookmark3D pBookmark)
throws java.io.IOException,
AutomationException
ISceneBookmarks
addBookmark in interface ISceneBookmarkspBookmark - A reference to a com.esri.arcgis.analyst3d.IBookmark3D (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void findBookmark(java.lang.String name,
IBookmark3D[] ppBookmark)
throws java.io.IOException,
AutomationException
ISceneBookmarks
findBookmark in interface ISceneBookmarksname - The name (in)ppBookmark - A reference to a com.esri.arcgis.analyst3d.IBookmark3D (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeBookmark(IBookmark3D bookmark)
throws java.io.IOException,
AutomationException
ISceneBookmarks
removeBookmark in interface ISceneBookmarksbookmark - A reference to a com.esri.arcgis.analyst3d.IBookmark3D (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAllBookmarks()
throws java.io.IOException,
AutomationException
ISceneBookmarks
removeAllBookmarks in interface ISceneBookmarksjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBookmarkCount()
throws java.io.IOException,
AutomationException
ISceneBookmarks
getBookmarkCount in interface ISceneBookmarksAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void saveBookmarks(IStream pStm)
throws java.io.IOException,
AutomationException
ISceneBookmarks
saveBookmarks in interface ISceneBookmarkspStm - A reference to a com.esri.arcgis.system.IStream (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void loadBookmarks(IStream pStm)
throws java.io.IOException,
AutomationException
ISceneBookmarks
loadBookmarks in interface ISceneBookmarkspStm - A reference to a com.esri.arcgis.system.IStream (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getAnimationTypes()
throws java.io.IOException,
AutomationException
IAnimationTracks
getAnimationTypes in interface IAnimationTracksjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTrackCount()
throws java.io.IOException,
AutomationException
IAnimationTracks
getTrackCount in interface IAnimationTracksjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getTracks()
throws java.io.IOException,
AutomationException
IAnimationTracks
getTracks in interface IAnimationTracksjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getTracksOfType(IAnimationType pType)
throws java.io.IOException,
AutomationException
IAnimationTracks
getTracksOfType in interface IAnimationTrackspType - A reference to a com.esri.arcgis.analyst3d.IAnimationType (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addTrack(IAnimationTrack pTrack)
throws java.io.IOException,
AutomationException
IAnimationTracks
addTrack in interface IAnimationTrackspTrack - A reference to a com.esri.arcgis.analyst3d.IAnimationTrack (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void findTrack(java.lang.String name,
IAnimationTrack[] ppTrack)
throws java.io.IOException,
AutomationException
IAnimationTracks
findTrack in interface IAnimationTracksname - The name (in)ppTrack - A reference to a com.esri.arcgis.analyst3d.IAnimationTrack (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void removeTrack(IAnimationTrack pTrack)
throws java.io.IOException,
AutomationException
IAnimationTracks
removeTrack in interface IAnimationTrackspTrack - A reference to a com.esri.arcgis.analyst3d.IAnimationTrack (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void removeAllTracks()
throws java.io.IOException,
AutomationException
IAnimationTracks
removeAllTracks in interface IAnimationTracksAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void saveTracks(IStream pStm)
throws java.io.IOException,
AutomationException
IAnimationTracks
saveTracks in interface IAnimationTrackspStm - A reference to a com.esri.arcgis.system.IStream (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadTracks(IStream pStm)
throws java.io.IOException,
AutomationException
IAnimationTracks
loadTracks in interface IAnimationTrackspStm - A reference to a com.esri.arcgis.system.IStream (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void detachObject(java.lang.Object pObject)
throws java.io.IOException,
AutomationException
IAnimationTracks
detachObject in interface IAnimationTrackspObject - A reference to another Object (IUnknown) (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void refreshAttachedObjects()
throws java.io.IOException,
AutomationException
IAnimationTracks
refreshAttachedObjects in interface IAnimationTracksjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void applyTracks(ISceneViewer pViewer,
double time,
double duration)
throws java.io.IOException,
AutomationException
IAnimationTracks
applyTracks in interface IAnimationTrackspViewer - A reference to a com.esri.arcgis.analyst3d.ISceneViewer (in)time - The time (in)duration - The duration (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void changePriority(IAnimationTrack pTrack,
boolean bAbsolute,
boolean bInSameType,
int changeInIndex)
throws java.io.IOException,
AutomationException
IAnimationTracks
changePriority in interface IAnimationTrackspTrack - A reference to a com.esri.arcgis.analyst3d.IAnimationTrack (in)bAbsolute - The bAbsolute (in)bInSameType - The bInSameType (in)changeInIndex - The changeInIndex (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IAGAnimationContainer getAnimationObjectContainer()
throws java.io.IOException,
AutomationException
IAGAnimationTracks
getAnimationObjectContainer in interface IAGAnimationTracksjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAnimationObjectContainerByRef(IAGAnimationContainer ppContainer)
throws java.io.IOException,
AutomationException
IAGAnimationTracks
setAnimationObjectContainerByRef in interface IAGAnimationTracksppContainer - A reference to a com.esri.arcgis.animation.IAGAnimationContainer (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getAGTracks()
throws java.io.IOException,
AutomationException
IAGAnimationTracksThis property returns the animation tracks in the animation track container, which is an IArray object.
getAGTracks in interface IAGAnimationTracksjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray getTracksOfType(IAGAnimationType pType)
throws java.io.IOException,
AutomationException
IAGAnimationTracksThis property returns all the tracks of a given type in the animation track container, which is an IArray object.
getTracksOfType in interface IAGAnimationTrackspType - A reference to a com.esri.arcgis.animation.IAGAnimationType (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IAGAnimationTrack createTrack(IAGAnimationType pType)
throws java.io.IOException,
AutomationException
IAGAnimationTracks
createTrack in interface IAGAnimationTrackspType - A reference to a com.esri.arcgis.animation.IAGAnimationType (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addTrack(IAGAnimationTrack pTrack)
throws java.io.IOException,
AutomationException
IAGAnimationTracks
addTrack in interface IAGAnimationTrackspTrack - A reference to a com.esri.arcgis.animation.IAGAnimationTrack (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findTrack(java.lang.String name,
IAGAnimationTrack[] ppTrack)
throws java.io.IOException,
AutomationException
IAGAnimationTracks
findTrack in interface IAGAnimationTracksname - The name (in)ppTrack - A reference to a com.esri.arcgis.animation.IAGAnimationTrack (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeTrack(IAGAnimationTrack pTrack)
throws java.io.IOException,
AutomationException
IAGAnimationTracks
removeTrack in interface IAGAnimationTrackspTrack - A reference to a com.esri.arcgis.animation.IAGAnimationTrack (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void applyTracks(boolean bApplyToAllViewers,
double time)
throws java.io.IOException,
AutomationException
IAGAnimationTracks
applyTracks in interface IAGAnimationTracksbApplyToAllViewers - The bApplyToAllViewers (in)time - The time (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void changePriority(IAGAnimationTrack pTrack,
boolean bAbsolute,
boolean bInSameType,
int changeInIndex)
throws java.io.IOException,
AutomationException
IAGAnimationTracks
changePriority in interface IAGAnimationTrackspTrack - A reference to a com.esri.arcgis.animation.IAGAnimationTrack (in)bAbsolute - The bAbsolute (in)bInSameType - The bInSameType (in)changeInIndex - The changeInIndex (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.Object getCurrentView()
throws java.io.IOException,
AutomationException
IAGAnimationContainer
getCurrentView in interface IAGAnimationContainerAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IArray getAllViews()
throws java.io.IOException,
AutomationException
IAGAnimationContainer
getAllViews in interface IAGAnimationContainerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.Object getViewController(java.lang.Object pViewer)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
getViewController in interface IAGAnimationContainerpViewer - A reference to another Object (IUnknown) (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void refreshViews(boolean bRefreshAllViewers)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
refreshViews in interface IAGAnimationContainerbRefreshAllViewers - The bRefreshAllViewers (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refreshObject(java.lang.Object pObject)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
refreshObject in interface IAGAnimationContainerpObject - A reference to another Object (IUnknown) (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void saveViewerStates()
throws java.io.IOException,
AutomationException
IAGAnimationContainer
saveViewerStates in interface IAGAnimationContainerAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void restoreViewerStates(boolean bApplyRestored)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
restoreViewerStates in interface IAGAnimationContainerbApplyRestored - The bApplyRestored (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void putIsAnimating(boolean bAnimating,
boolean bFullQuality)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
putIsAnimating in interface IAGAnimationContainerbAnimating - The bAnimating (in)bFullQuality - The bFullQuality (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isGestureEnabled()
throws java.io.IOException,
AutomationException
IAGAnimationContainer
isGestureEnabled in interface IAGAnimationContainerAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setIsGestureEnabled(boolean pbGestureEnabled)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
setIsGestureEnabled in interface IAGAnimationContainerpbGestureEnabled - The pbGestureEnabled (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getWindowHandle(java.lang.Object pView)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
getWindowHandle in interface IAGAnimationContainerpView - A reference to another Object (IUnknown) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getAnimationFileExtension()
throws java.io.IOException,
AutomationException
IAGAnimationContainer
getAnimationFileExtension in interface IAGAnimationContainerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getAnimationFileFilter(boolean bAllVersions)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
getAnimationFileFilter in interface IAGAnimationContainerbAllVersions - The bAllVersions (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IArray getSpatialBookmarks()
throws java.io.IOException,
AutomationException
IAGAnimationContainer
getSpatialBookmarks in interface IAGAnimationContainerAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void removeAllAnimationTimeStrings(IAGAnimationTracks pTracks)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
removeAllAnimationTimeStrings in interface IAGAnimationContainerpTracks - A reference to a com.esri.arcgis.animation.IAGAnimationTracks (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void removeTrackTimeDisplay(IAGAnimationTrack pTrack)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
removeTrackTimeDisplay in interface IAGAnimationContainerpTrack - A reference to a com.esri.arcgis.animation.IAGAnimationTrack (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setAnimationTime(IStringArray rhs1)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
setAnimationTime in interface IAGAnimationContainerrhs1 - A reference to a com.esri.arcgis.system.IStringArray (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void drawGraphsToDC(int hDC)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
drawGraphsToDC in interface IAGAnimationContainerhDC - The hDC (A COM typedef) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void drawPageLayoutToDC(int hDC)
throws java.io.IOException,
AutomationException
IAGAnimationContainer
drawPageLayoutToDC in interface IAGAnimationContainerhDC - The hDC (A COM typedef) (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void interfaceSupportsErrorInfo(GUID riid)
throws java.io.IOException,
AutomationException
ISupportErrorInfoIndicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws java.io.IOException,
AutomationException
IConnectionPointContainerIConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws java.io.IOException,
AutomationException
IConnectionPointContainerIConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface IConnectionPointContainerriid - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void isDirty()
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void save(IStream pstm,
int fClearDirty)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws java.io.IOException,
AutomationException
IPersistStreamIPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void getClassID(GUID[] pClassID)
throws java.io.IOException,
AutomationException
IPersistIPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IGeoTransformationOperationSet getGeographicTransformations()
throws java.io.IOException,
AutomationException
IMapGeographicTransformationsEach Map has a set of active geographic transformations. The active GeoTransformations are stored in a GeoTransformationOperationSet. If the geographic coordinate systems of a layer and the data frame match a GeoTransformation and its direction in the GeoTransformationOperationSet, the transformation is applied automatically while displaying the layer in the data frame.
getGeographicTransformations in interface IMapGeographicTransformationsjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||