|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
com.esri.arcgis.interop.Ocx
com.esri.arcgis.controls.GlobeControl
public class GlobeControl
Esri GlobeControl
The GlobeControl encapsulates the GlobeViewer class and provides additional properties, methods and events for: managing the general appearance; loading globe documents into the control; managing the globe, globe display and globe camera properties, and setting the current tool.
There is no need to declare the GlobeControl's outbound interface as described below in most development environments, because the interface is automaticlly implemented.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Canvas |
|---|
Canvas.AccessibleAWTCanvas |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Ocx |
|---|
rootParentContainers, rootWindows |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GlobeControl()
Constructs a GlobeControl using ArcGIS Engine. |
|
GlobeControl(Object o)
Constructs a GlobeControl. |
|
| Method Summary | |
|---|---|
void |
aboutBox()
Displays a dialog of information about the GlobeControl. |
void |
addIGlobeControlEventsListener(IGlobeControlEvents theListener)
addIGlobeControlEventsListener. |
void |
addITOCBuddyEventsListener(ITOCBuddyEvents theListener)
addITOCBuddyEventsListener. |
void |
addNotify()
|
boolean |
check3dFile(String fileName)
Checks if a filename is a Globe document. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
boolean |
esri_isEnabled()
Indicates whether the GlobeControl can respond to user generated events. |
void |
esri_setEnabled(boolean rhs1)
Indicates whether the GlobeControl can respond to user generated events. |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
IActiveView |
getActiveView()
Returns the underlying object implementing basic map and ActiveView. |
int |
getAppearance()
The appearance of the GlobeControl. |
int |
getBackColor()
Background color of the GlobeControl. |
int |
getBorderStyle()
The border style of the GlobeControl. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
ITool |
getCurrentTool()
Current active tool for the GlobeControl. |
Object |
getCustomProperty()
A property to associate data with a control. |
String |
getDocumentFilename()
The filename of the last globe document loaded into the control. |
IGlobe |
getGlobe()
The Globe object associated with the GlobeControl. |
IGlobeCamera |
getGlobeCamera()
The GlobeCamera object associated with the GlobeControl. |
IGlobeDisplay |
getGlobeDisplay()
The GlobeDisplay object associated with the GlobeControl. |
IGlobeViewer |
getGlobeViewer()
The GlobeViewer associated with the GlobeControl. |
int |
getHWnd()
Handle to the window associated with the GlobeControl. |
int |
getKeyIntercept()
A property that specifies interception of key strokes that are normally handled by the container. |
Picture |
getMouseIcon()
Custom mouse icon used if MousePointer is 99. |
int |
getMousePointer()
The mouse pointer displayed over the GlobeControl. |
Object |
getObject()
A property that returns the underlying control. |
double |
getScale(IBasicMap pBasicMap)
Returns the scale of the supplied BasicMap, this allows for objects that do not support IMap. |
int |
getShowGlobeTips()
Indicates the type of globe tips that are shown. |
void |
getSizeMax(_ULARGE_INTEGER[] pCbSize)
getSizeMax |
int |
getTipDelay()
The delay before globe tips are shown. |
int |
getTipStyle()
The style of globe tips. |
void |
initNew()
initNew |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
isDirty()
isDirty |
boolean |
isLayerValid(ILayer pLayer)
The TOCControl calls this method to ask the buddy if a layer is fully cached and valid if it cannot determine this on its own. |
boolean |
isLayerVisibleAtScale(ILayer pLayer,
double scale)
The TOCControl calls this method to ask the buddy if a layer is visible at the specified scale. |
boolean |
isNavigate()
Indicates if the GlobeControl performs default scene navigation in response to mouse events. |
boolean |
isOverrideBackColor()
Indicates whether to override the background color of the globe document. |
void |
layerVisibilityChanged(IBasicMap pBasicMap,
ILayer pLayer,
boolean visibility)
The TOCControl calls this method to instruct the buddy that layer visibility has changed. |
void |
load(IStream pStm)
load |
void |
load3dFile(String fileName)
Loads a Globe document into the GlobeControl. |
void |
removeIGlobeControlEventsListener(IGlobeControlEvents theListener)
removeIGlobeControlEventsListener. |
void |
removeITOCBuddyEventsListener(ITOCBuddyEvents theListener)
removeITOCBuddyEventsListener. |
void |
save(IStream pStm,
int fClearDirty)
save |
void |
setAppearance(int rhs1)
The appearance of the GlobeControl. |
void |
setBackColor(int rhs1)
Background color of the GlobeControl. |
void |
setBorderStyle(int rhs1)
The border style of the GlobeControl. |
void |
setCurrentToolByRef(ITool rhs1)
Current active tool for the GlobeControl. |
void |
setCustomProperty(Object rhs1)
A property to associate data with a control. |
void |
setDocumentFilename(String rhs1)
The filename of the last globe document loaded into the control. |
void |
setGlobeCameraByRef(IGlobeCamera rhs1)
The GlobeCamera object associated with the GlobeControl. |
void |
setGlobeDisplayByRef(IGlobeDisplay rhs1)
The GlobeDisplay object associated with the GlobeControl. |
void |
setKeyIntercept(int rhs1)
A property that specifies interception of key strokes that are normally handled by the container. |
void |
setMouseIconByRef(Picture rhs1)
Custom mouse icon used if MousePointer is 99. |
void |
setMousePointer(int rhs1)
The mouse pointer displayed over the GlobeControl. |
void |
setNavigate(boolean rhs1)
Indicates if the GlobeControl performs default scene navigation in response to mouse events. |
void |
setOverrideBackColor(boolean rhs1)
Indicates whether to override the background color of the globe document. |
void |
setShowGlobeTips(int rhs1)
Indicates the type of globe tips that are shown. |
void |
setTipDelay(int rhs1)
The delay before globe tips are shown. |
void |
setTipStyle(int rhs1)
The style of globe tips. |
| Methods inherited from class com.esri.arcgis.interop.Ocx |
|---|
checkIfVisible, dispose, finalize, getCanvasWindowHandle, getControlWindowHandle, getMinimumSize, getObjRef, getPreferredSize, paint, removeNotify, setBounds, setBounds, setSize, setSize, zz_doQueuedSets, zz_get, zz_get, zz_get, zz_get, zz_get, zz_get, zz_get, zz_get, zz_queueSet, zz_queueSet, zz_queueSet, zz_queueSet, zz_queueSet, zz_queueSet, zz_queueSet, zz_queueSet |
| Methods inherited from class java.awt.Canvas |
|---|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public GlobeControl()
public GlobeControl(Object o)
| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Object
public void addIGlobeControlEventsListener(IGlobeControlEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.controls.IGlobeControlEvents interface.
IOException - If there are communications problems.
public void removeIGlobeControlEventsListener(IGlobeControlEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.controls.IGlobeControlEvents interface.
IOException - If there are communications problems.
public void addITOCBuddyEventsListener(ITOCBuddyEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.controls.ITOCBuddyEvents interface.
IOException - If there are communications problems.
public void removeITOCBuddyEventsListener(ITOCBuddyEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.controls.ITOCBuddyEvents interface.
IOException - If there are communications problems.public void addNotify()
addNotify in class com.esri.arcgis.interop.Ocx
public void setBackColor(int rhs1)
throws IOException,
AutomationException
setBackColor in interface IGlobeControlsetBackColor in interface IGlobeControlDefaultrhs1 - The rhs1 (A COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBackColor()
throws IOException,
AutomationException
Returns or sets the Background Color of the GlobeControl. Internally the OLE_Color is stored as a long integer where the value may be calculated for any RGB combination as follows:
OLE_Color = (Red) + (Green * 256) + (Blue * 256 * 256)
Where Red, Green and Blue are Long Integers within the range 0 - 255.
To ensure the BackColor property overrides any background color set in a globe document, set the OverrideBackColor to true.
getBackColor in interface IGlobeControlgetBackColor in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBorderStyle(int rhs1)
throws IOException,
AutomationException
setBorderStyle in interface IGlobeControlsetBorderStyle in interface IGlobeControlDefaultrhs1 - A com.esri.arcgis.controls.esriControlsBorderStyle constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getBorderStyle()
throws IOException,
AutomationException
Returns or sets the border style of a GlobeControl. By default a border is drawn.
getBorderStyle in interface IGlobeControlgetBorderStyle in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void esri_setEnabled(boolean rhs1)
throws IOException,
AutomationException
esri_setEnabled in interface IGlobeControlesri_setEnabled in interface IGlobeControlDefaultrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean esri_isEnabled()
throws IOException,
AutomationException
esri_isEnabled in interface IGlobeControlesri_isEnabled in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAppearance(int rhs1)
throws IOException,
AutomationException
setAppearance in interface IGlobeControlsetAppearance in interface IGlobeControlDefaultrhs1 - A com.esri.arcgis.controls.esriControlsAppearance constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAppearance()
throws IOException,
AutomationException
Returns or sets the paint style of a GlobeControl to either Flat or 3D. By default the appearance is flat.
getAppearance in interface IGlobeControlgetAppearance in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMousePointer(int rhs1)
throws IOException,
AutomationException
setMousePointer in interface IGlobeControlsetMousePointer in interface IGlobeControlDefaultrhs1 - A com.esri.arcgis.controls.esriControlsMousePointer constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMousePointer()
throws IOException,
AutomationException
Use this property when you want to indicate changes in functionality as the mouse pointer passes over the GlobeControl. The esriPointerArrowHourglass setting (11) is useful for indicating that the user should wait for a process or operation to finish.
getMousePointer in interface IGlobeControlgetMousePointer in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMouseIconByRef(Picture rhs1)
throws IOException,
AutomationException
setMouseIconByRef in interface IGlobeControlsetMouseIconByRef in interface IGlobeControlDefaultrhs1 - A reference to a com.esri.arcgis.support.ms.stdole.Picture (A com.esri.arcgis.support.ms.stdole.Picture COM typedef) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Picture getMouseIcon()
throws IOException,
AutomationException
The MouseIcon property provides a custom icon that is used when the MousePointer property is set to esriPointerArrowHourglass (99).
In most development evironments the control's property pages can be used to load either a cursor (.cur) or icon (.ico) file. A cursor contains a custom 'hotspot' location and can be any size. The 'hotspot' location for an icon file defaults to the center of the icon. This property cannot be used to load animated cursor (.ani) files.
To programatically create an object implementing IPictureDisp there is the win32 function OleLoadPicture or helper methods depending on the development environment.
getMouseIcon in interface IGlobeControlgetMouseIcon in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getHWnd()
throws IOException,
AutomationException
The operating environment identifies each window, form and control in an application by assigning it a handle, or hWnd. Many ArcObjects methods and Windows API calls require the hWnd as an argument.
getHWnd in interface IGlobeControlgetHWnd in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void aboutBox()
throws IOException,
AutomationException
The AboutBox method causes a modal dialog box to display on top of the GlobeControl, containing information about the version and creation date of the GlobeControl as well as listing relevant legal and copyright information from ESRI.
aboutBox in interface IGlobeControlaboutBox in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load3dFile(String fileName)
throws IOException,
AutomationException
Loads a globe document (*.3dd) into the GlobeControl. Use the Check3dFile method to determine if the specified globe document is a valid globe document.
load3dFile in interface IGlobeControlload3dFile in interface IGlobeControlDefaultfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGlobe getGlobe()
throws IOException,
AutomationException
This is a shortcut to the IGlobeDisplay::Globe property.
getGlobe in interface IGlobeControlgetGlobe in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGlobeDisplay getGlobeDisplay()
throws IOException,
AutomationException
This is a shortcut to the IGlobeViewer::GlobeDisplay property.
getGlobeDisplay in interface IGlobeControlgetGlobeDisplay in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setGlobeDisplayByRef(IGlobeDisplay rhs1)
throws IOException,
AutomationException
setGlobeDisplayByRef in interface IGlobeControlsetGlobeDisplayByRef in interface IGlobeControlDefaultrhs1 - A reference to a com.esri.arcgis.globecore.IGlobeDisplay (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGlobeViewer getGlobeViewer()
throws IOException,
AutomationException
This is the GlobeViewer contained within the GlobeControl.
getGlobeViewer in interface IGlobeControlgetGlobeViewer in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGlobeCamera getGlobeCamera()
throws IOException,
AutomationException
This is a shortcut to the ISceneViewer::Camera property.
getGlobeCamera in interface IGlobeControlgetGlobeCamera in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setGlobeCameraByRef(IGlobeCamera rhs1)
throws IOException,
AutomationException
setGlobeCameraByRef in interface IGlobeControlsetGlobeCameraByRef in interface IGlobeControlDefaultrhs1 - A reference to a com.esri.arcgis.globecore.IGlobeCamera (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITool getCurrentTool()
throws IOException,
AutomationException
The CurrentTool is the tool used to interact will the GlobeControl's display. Always check if a tool is enabled before setting it to the CurrentTool property, otherwise a user will be able to use a tool that is actually disabled.
When the CurrentTool is set the following events occur:
Within an ITool implementation it is recommended that the ITool::Deactivate event returns true. This allows a 'new' CurrentTool to be set, and allows the release of the CurrentTool when an application is shutting down.
getCurrentTool in interface IGlobeControlgetCurrentTool in interface IGlobeControlDefaultgetCurrentTool in interface IToolbarBuddyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCurrentToolByRef(ITool rhs1)
throws IOException,
AutomationException
setCurrentToolByRef in interface IGlobeControlsetCurrentToolByRef in interface IGlobeControlDefaultsetCurrentToolByRef in interface IToolbarBuddyrhs1 - A reference to a com.esri.arcgis.systemUI.ITool (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isNavigate()
throws IOException,
AutomationException
The Navigate property determines whether the default GlobeControl navigation functionality is enabled at run time. By default the Navigate property is set to false. When the Navigate property is set to true, the end user can use the left mouse button to navigate backwards and forwards and to the left and right of the display, and the right mouse button to zoom in and out on the display.
When the Navigate property is set to true, the OnMouseDown, OnMouseMove, OnMouseUp events are being intercepted. As such, care must be taken by developers to avoid the display becoming confused when:
isNavigate in interface IGlobeControlisNavigate in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setNavigate(boolean rhs1)
throws IOException,
AutomationException
setNavigate in interface IGlobeControlsetNavigate in interface IGlobeControlDefaultrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean check3dFile(String fileName)
throws IOException,
AutomationException
Determines whether the specified Globe Document (*.3dd) is a valid globe document and can be loaded into the GlobeControl. The method verifies the file exists and verifies the file internals conform to an expected storage format. The method does not read and validate the entire contents of the file; use the Load3dFile to do this.
check3dFile in interface IGlobeControlcheck3dFile in interface IGlobeControlDefaultfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getCustomProperty()
throws IOException,
AutomationException
Use the CustomProperty to associate any useful data with the GlobeControl. This is similar to a 'Tag' property, and can be use to store strings, numbers and objects.
getCustomProperty in interface IGlobeControlgetCustomProperty in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCustomProperty(Object rhs1)
throws IOException,
AutomationException
setCustomProperty in interface IGlobeControlsetCustomProperty in interface IGlobeControlDefaultrhs1 - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDocumentFilename(String rhs1)
throws IOException,
AutomationException
setDocumentFilename in interface IGlobeControlsetDocumentFilename in interface IGlobeControlDefaultrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDocumentFilename()
throws IOException,
AutomationException
Returns the DocumentFilename of the last document loaded into the GlobeControl with the Load3dFile method. An empty string will be returned if no document is loaded.
getDocumentFilename in interface IGlobeControlgetDocumentFilename in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getObject()
throws IOException,
AutomationException
In some development environments it is not possible to query interface directly on the control to other COM interfaces, beacuse the control is contained within a wrapper object. To get the real control use the Object property.
getObject in interface IGlobeControlgetObject in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOverrideBackColor(boolean rhs1)
throws IOException,
AutomationException
setOverrideBackColor in interface IGlobeControlsetOverrideBackColor in interface IGlobeControlDefaultrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isOverrideBackColor()
throws IOException,
AutomationException
The OverrideBackColor property determines whether the background color of any document loaded into the GlobeControl is overriden and replaced with the GlobeControl's BackColor. By default this property is false.
isOverrideBackColor in interface IGlobeControlisOverrideBackColor in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowGlobeTips(int rhs1)
throws IOException,
AutomationException
setShowGlobeTips in interface IGlobeControlsetShowGlobeTips in interface IGlobeControlDefaultrhs1 - A com.esri.arcgis.globecore.esriGlobeTipsType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getShowGlobeTips()
throws IOException,
AutomationException
The type of globe tips that are displayed as the mouse moves over the globe. The globe tip can display decimal degree coordinates or elevation or a combination of both. By default the ShowGlobeTips property is set to esriGlobeTipsNone.
getShowGlobeTips in interface IGlobeControlgetShowGlobeTips in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTipStyle(int rhs1)
throws IOException,
AutomationException
setTipStyle in interface IGlobeControlsetTipStyle in interface IGlobeControlDefaultrhs1 - A com.esri.arcgis.systemUI.esriTipStyle constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTipStyle()
throws IOException,
AutomationException
Returns or sets the TipStyle used by the globe tips. By default the TipStyle is solid.
getTipStyle in interface IGlobeControlgetTipStyle in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTipDelay(int rhs1)
throws IOException,
AutomationException
setTipDelay in interface IGlobeControlsetTipDelay in interface IGlobeControlDefaultrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTipDelay()
throws IOException,
AutomationException
Returns or sets the time delay in milliseconds before globe tips are displayed. By default TipDelay is 500 milliseconds.
getTipDelay in interface IGlobeControlgetTipDelay in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getKeyIntercept()
throws IOException,
AutomationException
Returns or sets keys on the keyboard that will be intercepted by the GlobeControl, triggering the OnKeyDown and OnKeyUp events when pressed. These keys are often hidden from the GlobeControl by the development environment container. By default the KeyIntercept is set to esriKeyInterceptNone .
Many development environment containers use the up, down, left and right arrow keys to change control focus on a form. These keys can also be useful for navigating around the display. To intercept the arrow keys and the Tab key combine the enum values using a logical OR operation (esriKeyInterceptArrowKeys OR esriKeyInterceptTabKey, which is 1 OR 4 = 5).
getKeyIntercept in interface IGlobeControlgetKeyIntercept in interface IGlobeControlDefaultIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setKeyIntercept(int rhs1)
throws IOException,
AutomationException
setKeyIntercept in interface IGlobeControlsetKeyIntercept in interface IGlobeControlDefaultrhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IActiveView getActiveView()
throws IOException,
AutomationException
The GetActiveView method returns the IActiveView interface of the ITOCControl::Buddy. This will either be a Map, PageLayout, Scene or Globe.
getActiveView in interface ITOCBuddyIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getScale(IBasicMap pBasicMap)
throws IOException,
AutomationException
The GetScale method returns scale of the supplied Map or Scene. If the scale is unknown the GetScale method returns 0.0.
getScale in interface ITOCBuddypBasicMap - A reference to a com.esri.arcgis.carto.IBasicMap (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void layerVisibilityChanged(IBasicMap pBasicMap,
ILayer pLayer,
boolean visibility)
throws IOException,
AutomationException
The LayerVisibilityChanged method is called when the visibility of a layer is changed interactively using the TOCControl.
If a layer (typically a raster layer) within a Globe is fully cached the original data source does not need to be present in order for the layer to display. To ensure that the TOCControl changes the visibility of a cached layer the LayerVisibilityChanged method ensures the Globe changes the GlobeLayerProperties.
layerVisibilityChanged in interface ITOCBuddy2pBasicMap - A reference to a com.esri.arcgis.carto.IBasicMap (in)pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)visibility - The visibility (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLayerValid(ILayer pLayer)
throws IOException,
AutomationException
The IsLayerValid method returns whether the specified layer is fullly cached and so valid, even if the connection to the layers data source is broken.
If a layer (typically a raster layer) within a GlobeControl is fully cached the original data source does not need to be present in order for the layer to display. To ensure that the TOCControl does not display this layer as broken (with a red exclamation symbol !), the IsLayerValid method additionally checks if layer is fully cached.
isLayerValid in interface ITOCBuddy2pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLayerVisibleAtScale(ILayer pLayer,
double scale)
throws IOException,
AutomationException
The IsLayerVisibleAtScale method, called by the TOCControl, returns whether the specified layer is visible at the specified scale.
A layer in a globe has IGlobeLayerProperties::MinimumDistance and IGlobeLayerProperties::MaximumDistance properties. The IsLayerVisibleAtScale method allows the GlobeControl to override the ILayer::MinimumScale and ILayer::MaximumScale properties with the MinimumDistance and MaximumDistance properties to correctly manage the visibility of the layer.
isLayerVisibleAtScale in interface ITOCBuddy2pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)scale - The scale (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
isDirty in interface IPersistStreamInitIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pStm)
throws IOException,
AutomationException
load in interface IPersistStreamInitpStm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pStm,
int fClearDirty)
throws IOException,
AutomationException
save in interface IPersistStreamInitpStm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pCbSize)
throws IOException,
AutomationException
getSizeMax in interface IPersistStreamInitpCbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void initNew()
throws IOException,
AutomationException
initNew in interface IPersistStreamInitIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 | ||||||||