|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Canvas com.esri.arcgis.interop.Ocx com.esri.arcgis.controls.ArcReaderGlobeControl
public class ArcReaderGlobeControl
ESRI ArcReaderGlobeControl
The ArcReaderGlobeControl displays the 'globe' view and Table of Contents of the ArcReader desktop application. It provides all of the functionality in the ArcReader desktop application except for a toolbar and status bar.
The ArcReaderGlobeControl CoClass provides properties, methods and events for managing the general appearance of the control, checking and loading Published Map Files and checking document permissions. The IARGlobeControl::ShowARGlobeWindow method can be used to display the built in Identify, Printer and Animation windows and the IARGlobeControl::CurrentARGlobeTool property can be used to set the current tool to one of the built in navigation, identify or hyperlink tools.
To perform a spatial or attribute search on a ARGlobe or ARLayer use the ArcReaderSearchDef object in conjunction the SearchARFeatures or QueryARFeatures methods on the IARGlobe or IARLayer interfaces.
The ArcReaderConfiguration object can be used to customize the appearance and behavior of the ArcReaderGlobeControl and its built in windows.
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 | |
---|---|
ArcReaderGlobeControl()
Constructs a ArcReaderGlobeControl using ArcGIS Engine. |
|
ArcReaderGlobeControl(Object o)
Constructs a ArcReaderGlobeControl. |
Method Summary | |
---|---|
void |
aboutBox()
Displays a dialog of information about the control. |
void |
addIARGlobeControlEventsListener(IARGlobeControlEvents theListener)
addIARGlobeControlEventsListener. |
void |
addNotify()
|
boolean |
checkDocument(String sFilename)
Checks the document filename to determine if its a valid Published Map File (*.PMF), published with permission to load into the control. |
void |
copyViewToClipboard()
Copies the current map or page layout view to the clipboard. |
boolean |
equals(Object o)
Compare this object with another |
boolean |
esri_isEnabled()
Indicates whether the control can respond to user generated events. |
void |
esri_setEnabled(boolean pbool)
Indicates whether the control can respond to user generated events. |
void |
exportView(int format,
String sFilename)
Exports the current view to a file. |
int |
getAppearance()
The appearance of the control. |
IARConfiguration |
getARConfiguration()
The ARConfiguration used by the control. |
IARGlobe |
getARGlobe()
The ARGlobe container for the display of globe data. |
IARUnitConverter |
getARUnitConverter()
The ARUnitConverter contained by the control. |
int |
getBorderStyle()
The border style of the control. |
static String |
getClsid()
getClsid. |
int |
getCurrentARGlobeTool()
Current active tool for the control. |
int |
getCurrentGlobeViewType()
The type of current globe view. |
Object |
getCustomProperty()
A property to associate data with a control. |
String |
getDocumentComment()
A comment about the currently loaded Published Map File (*.PMF). |
String |
getDocumentFilename()
The file name of the currently loaded Published Map File (*.PMF). |
int |
getHWnd()
Handle to the window associated with the control. |
int |
getMousePointer()
The mouse cursor displayed over the GlobeControl. |
Object |
getObject()
A property that returns the underlying Control. |
IARLayer |
getSelectedARLayer()
The selected ARLayer in the TOC. |
int |
getShowGlobeTips()
Indicates the type of tooltips shown on the Globe. |
IARLayer |
getSwipeLayer()
The swipe layer used by the control. |
int |
getTOCWidth()
The width of the Table of Contents (TOC) in pixels. |
int |
getViewHeight()
The height of the Globe View in pixels. |
int |
getViewLeft()
The number of pixels between the top of the control and the top of the Globe View. |
int |
getViewTop()
The number of pixels between the left edge of the control and the left side of the Globe View. |
int |
getViewWidth()
The width of the Globe View in pixels. |
int |
getViewWindow()
Handle to the view window associated with the control. |
boolean |
hasDocumentPermission(int docPermission)
Indicates if the currently loaded Published Map File (*.PMF) was published with the specified permission. |
boolean |
isARGlobeWindowVisible(int win)
Indicates if the specified control window is visible. |
boolean |
isEnableFileDrop()
Indicates whether Published Map Files can be dropped onto the control. |
boolean |
isHasCustomARConfiguration()
Indicates whether the current PMF is using settings stored in the PMF. |
boolean |
isTOCVisible()
Indicates if the Table of Contents (TOC) is visible. |
void |
loadDocument(String sFilename,
String sPassword)
Loads the Published Map File (*.PMF) into the control. |
void |
printView()
Send the current map or page layout view to the printer. |
void |
refresh()
Redraws the globe display area. |
void |
reloadDocument(String sPassword)
Reloads the currently loaded Published Map File (*.PMF) back into the control. |
void |
removeIARGlobeControlEventsListener(IARGlobeControlEvents theListener)
removeIARGlobeControlEventsListener. |
void |
setAppearance(int pappearance)
The appearance of the control. |
void |
setARConfigurationByRef(IARConfiguration ppARConfiguration)
The ARConfiguration used by the control. |
void |
setBorderStyle(int pstyle)
The border style of the control. |
void |
setCurrentARGlobeTool(int pVal)
Current active tool for the control. |
void |
setCustomProperty(Object pVal)
A property to associate data with a control. |
void |
setDocumentFilename(String bsFilename)
The file name of the currently loaded Published Map File (*.PMF). |
void |
setEnableFileDrop(boolean pvbValue)
Indicates whether Published Map Files can be dropped onto the control. |
void |
setMousePointer(int pcursor)
The mouse cursor displayed over the GlobeControl. |
void |
setShowGlobeTips(int esriARGlobeTips)
Indicates the type of tooltips shown on the Globe. |
void |
setSwipeLayerByRef(IARLayer ppLayer)
The swipe layer used by the control. |
void |
setTOCVisible(boolean visible)
Indicates if the Table of Contents (TOC) is visible. |
void |
setTOCWidth(int lWidth)
The width of the Table of Contents (TOC) in pixels. |
void |
showARGlobeWindow(int win,
boolean show,
Object data)
Shows or hides the specified control window. |
void |
unloadDocument()
Unloads the currently loaded Published Map File (*.PMF) from the control. |
Methods inherited from class com.esri.arcgis.interop.Ocx |
---|
checkIfVisible, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public ArcReaderGlobeControl()
public ArcReaderGlobeControl(Object o)
Method Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public void addIARGlobeControlEventsListener(IARGlobeControlEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.controls.IARGlobeControlEvents interface.
IOException
- If there are communications problems.public void removeIARGlobeControlEventsListener(IARGlobeControlEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.controls.IARGlobeControlEvents interface.
IOException
- If there are communications problems.public void addNotify()
addNotify
in class com.esri.arcgis.interop.Ocx
public void setBorderStyle(int pstyle) throws IOException, AutomationException
setBorderStyle
in interface IARGlobeControl
setBorderStyle
in interface IARGlobeControlDefault
pstyle
- A com.esri.arcgis.controls.esriARBorderStyle 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 an ArcReaderGlobeControl. By default a border is drawn.
getBorderStyle
in interface IARGlobeControl
getBorderStyle
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void esri_setEnabled(boolean pbool) throws IOException, AutomationException
esri_setEnabled
in interface IARGlobeControl
esri_setEnabled
in interface IARGlobeControlDefault
pbool
- The pbool (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 IARGlobeControl
esri_isEnabled
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAppearance(int pappearance) throws IOException, AutomationException
setAppearance
in interface IARGlobeControl
setAppearance
in interface IARGlobeControlDefault
pappearance
- A com.esri.arcgis.controls.esriARAppearance 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 the ArcReaderGlobeControl to either Flat or 3D. By default the appearance is flat.
getAppearance
in interface IARGlobeControl
getAppearance
in interface IARGlobeControlDefault
IOException
- 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 ArcReaderGlobeControl, containing information about the version and creation date of the ArcReaderGlobeControl as well as listing relevant legal and copyright information from ESRI.
aboutBox
in interface IARGlobeControl
aboutBox
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void loadDocument(String sFilename, String sPassword) throws IOException, AutomationException
Loads the specified Published Map File (*.pmf) into the ArcReaderGlobeControl. Use the CheckDocument method to determine if the specified Published Map File can be loaded successfully.
If a document was password protected when it was published and the password is not passed within the LoadDocument method, the user will be prompted automatically for a password. If an incorrect password is supplied twice in succession a custom error will be returned.
If a document is successfully loaded the CurrentARGlobeTool will be set. The default CurrentARGlobeTool is specified by the ‘DefaultGlobeTool’ setting in the ARConfiguration. The DocumentFilename property will update itself with the path and filename of the currently loaded document, and the DocumentComment property to update itself with any comments that were supplied by the publisher of the document.
The LoadDocument method triggers the following events:
OnDocumentLoad
loadDocument
in interface IARGlobeControl
loadDocument
in interface IARGlobeControlDefault
sFilename
- The sFilename (in)sPassword
- The sPassword (in, optional, pass if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void unloadDocument() throws IOException, AutomationException
The UnloadDocument method removes the currently loaded PMF document from the ArcReaderGlobeControl and causes the DocumentFilename property to update itself with an empty string. At this point the ArcReaderGlobeControl is empty.
The UnloadDocument method triggers the following events:
OnDocumentUnloaded
unloadDocument
in interface IARGlobeControl
unloadDocument
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void reloadDocument(String sPassword) throws IOException, AutomationException
The ReloadDocument method loads the currently loaded Published Map File back into the ArcReaderGlobeControl. This resets the ArcReaderGlobeControl to the state of the Published Map File on disk, resetting the view, the extent of the view and layer visibility.
If a document was password protected when it was published and the password is not passed within the LoadDocument method, the user will be prompted automatically for a password. If an incorrect password is supplied twice in succession a custom error will be returned.
The ReloadDocument method triggers the following events:
OnDocumentUnloaded
OnDocumentLoaded
reloadDocument
in interface IARGlobeControl
reloadDocument
in interface IARGlobeControlDefault
sPassword
- The sPassword (in, optional, pass if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDocumentComment() throws IOException, AutomationException
Returns any comments that were specified when the currently loaded document was published.
getDocumentComment
in interface IARGlobeControl
getDocumentComment
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDocumentFilename() throws IOException, AutomationException
Returns the file name of the currently loaded document.
getDocumentFilename
in interface IARGlobeControl
getDocumentFilename
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDocumentFilename(String bsFilename) throws IOException, AutomationException
setDocumentFilename
in interface IARGlobeControl
setDocumentFilename
in interface IARGlobeControlDefault
bsFilename
- The bsFilename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean checkDocument(String sFilename) throws IOException, AutomationException
Determines whether the specified Published Map File (*.pmf) is a valid file and was published with permission to load into the ArcReaderGlobeControl.
checkDocument
in interface IARGlobeControl
checkDocument
in interface IARGlobeControlDefault
sFilename
- The sFilename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTOCWidth(int lWidth) throws IOException, AutomationException
setTOCWidth
in interface IARGlobeControl
setTOCWidth
in interface IARGlobeControlDefault
lWidth
- The lWidth (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTOCWidth() throws IOException, AutomationException
The width of the Table of Contents (TOC) in pixels. By default the TOCWidth property is set to 180. The minimum value that can be set to the TOCWidth property is 4.
getTOCWidth
in interface IARGlobeControl
getTOCWidth
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void printView() throws IOException, AutomationException
Sends the view to either the system default printer or the last printer selected in either the esriARGlobeWindowsPageSetup or esriARGlobeWindowsPrinter window.
The PrintView method will return an error if the currently loaded document was not published with permission to Print. Use the IARGlobeControl::HasDocumentPermission method to determine this.
printView
in interface IARGlobeControl
printView
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void copyViewToClipboard() throws IOException, AutomationException
Copies a bitmap of the view to the system clipboard so that it can be copied into other applications. The output will exactly reflect the state of the view as seen on the screen.
copyViewToClipboard
in interface IARGlobeControl
copyViewToClipboard
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void exportView(int format, String sFilename) throws IOException, AutomationException
Export the current view of the globe to a bitmap file.
exportView
in interface IARGlobeControl
exportView
in interface IARGlobeControlDefault
format
- A com.esri.arcgis.controls.esriARExportFormat constant (in)sFilename
- The sFilename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTOCVisible(boolean visible) throws IOException, AutomationException
setTOCVisible
in interface IARGlobeControl
setTOCVisible
in interface IARGlobeControlDefault
visible
- The visible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTOCVisible() throws IOException, AutomationException
Indicates if the Table of Contents (TOC) is visible.
isTOCVisible
in interface IARGlobeControl
isTOCVisible
in interface IARGlobeControlDefault
IOException
- 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.
getHWnd
in interface IARGlobeControl
getHWnd
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowGlobeTips(int esriARGlobeTips) throws IOException, AutomationException
setShowGlobeTips
in interface IARGlobeControl
setShowGlobeTips
in interface IARGlobeControlDefault
esriARGlobeTips
- A com.esri.arcgis.controls.esriARGlobeTips constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getShowGlobeTips() throws IOException, AutomationException
Determines whether globe tips are displayed (if they exist) as the mouse moves over layer features. Globe tips will be present if they were present in the ArcGlobe document at the time of publishing. By default the ShowGlobeTips property is set to true.
getShowGlobeTips
in interface IARGlobeControl
getShowGlobeTips
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setEnableFileDrop(boolean pvbValue) throws IOException, AutomationException
setEnableFileDrop
in interface IARGlobeControl
setEnableFileDrop
in interface IARGlobeControlDefault
pvbValue
- The pvbValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEnableFileDrop() throws IOException, AutomationException
Indicates if the ArcReaderGlobeControl will load Published Map Files (*.pmf) by the user interactively dropping files onto the ArcReaderGlobeControl from other applications such as ArcCatalog or Windows Explorer. The ArcReaderGlobeControl itself will determine if the file that has been dropped is a PMF document that can be loaded into the ArcReaderGlobeControl.
By default dragging a file over the ArcReaderGlobeControl will cause the mouse cursor to change to an ‘add data’ cursor. Setting the EnableFileDrop property to False, will cause the mouse cursor to change to a ‘no entry’ cursor when files are dragged over the ArcReaderGlobeControl.
If a document is successfully loaded the CurrentARGlobeTool will be set. The default CurrentARGlobeTool is specified by the ‘DefaultGlobeTool’ setting in the ARConfiguration. The DocumentFilename property will update itself with the path and filename of the currently loaded document, and the DocumentComment property to update itself with any comments that were supplied by the publisher of the document.
isEnableFileDrop
in interface IARGlobeControl
isEnableFileDrop
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCurrentARGlobeTool() throws IOException, AutomationException
The CurrentTool used to interact with the ARGlobe. Setting the CurrentARGlobeTool will change the mouse cursor and may popup a modeless dialog. For example, setting the current tool to the built in identify tool will cause the identify dialog to open. The CurrentARGlobeTool cannot be set to Nothing, instead set the CurrentARGlobeTool to the NoneSelected tool.
Tool | Description |
---|---|
esriARGlobeToolNoneSelected | Use this tool if you want nothing to happen when the user interacts with the ARGlobe. |
esriARGlobeToolNavigate | Use this tool to navigate the ARGlobe. Activating the tool will set ARGlobe::Pitch = 0. Using the left mouse button the tool allows the user to rotate the globe about its center. Using the right mouse button the tool allows the user to zoom in and out along an imaginary straight line from the observer location to the ARGlobe center. |
esriARGlobeToolTarget | Use this tool to center a location, on the ARGlobe surface, in the view. |
esriARGlobeToolZoomInOut | Use this tool to Zoom In and Zoom Out along an imaginary straight line between the observer location and the target on the ARGlobe surface. |
esriARGlobeToolPan | Use this tool to pan the ARGlobe surface. Depress the mouse and drag the view in a particular direction, before releasing the mouse, to pan. |
esriARGlobeToolPivot | Use this tool to view the point on the ARGlobe surface that is centered in the view. Using the left mouse button the tool allows the user to pivot about a point on the ARGlobe surface that is located at the center of the view. Using the right mouse button the tool allows the user to Zoom In and Zoom Out along an imaginary straight line between the observer location and the center of the view. Activating this tool will set the ARGlobe::Pitch to a none zero value. |
esriARGlobeToolIdentify, esriARGlobeToolIdentifyUsingLayer | Use these tools to identify features in the ARGlobe. Click on a single feature to view its attribute information. The window has its own context menus; incorporates a raster viewer; and can display hyperlinks. |
esriARGlobeToolMeasure | Use this tool to measure distances on the ARGlobe. Measurements are given in IARGlobe::GlobeUnits. |
esriARGlobeToolSwipe | Use this tool to view the layer beneath the ArcReaderGlobeControl::SwipeLayer. |
esriARGlobeToolHyperlink | Use this tool to access any hyperlinks present in the data. |
esriARGlobeToolOrbitalFly |
Use this tool to fly over the ARGlobe surface at a fixed elevation. Activating this tool will display a dialog with buttons that allow a user to control flight. The dialog will be displayed within the ArcReaderGlobeControl, as specified by the window position property, accessed via the ArcReaderGlobeControl property pages. |
getCurrentARGlobeTool
in interface IARGlobeControl
getCurrentARGlobeTool
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCurrentARGlobeTool(int pVal) throws IOException, AutomationException
setCurrentARGlobeTool
in interface IARGlobeControl
setCurrentARGlobeTool
in interface IARGlobeControlDefault
pVal
- A com.esri.arcgis.controls.esriARGlobeTool constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setARConfigurationByRef(IARConfiguration ppARConfiguration) throws IOException, AutomationException
setARConfigurationByRef
in interface IARGlobeControl
setARConfigurationByRef
in interface IARGlobeControlDefault
ppARConfiguration
- A reference to a com.esri.arcgis.controls.IARConfiguration (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARConfiguration getARConfiguration() throws IOException, AutomationException
This is the ARConfiguration object contained within the ArcReaderGlobeControl. It is a helper object for customising the appearance and behaviour of the ArcReaderGlobeControl. It consists of many property and value settings that are stored in a template file (.art), known as an ‘ArcReader Template’.
There are various ways to manage these property and value settings:
In order for the ArcReaderGlobeControl to update itself to match any updated settings the ARConfiguration object must be set back into the ArcReaderGlobeControl.
The ArcReaderGlobeControl will initially look for an template
file in a users local profile. If no template file is
found a default configuration file will be created containing
default settings. The contents of the ARConfiguration can be stored
in a template file in the current user profile and used as an
initialization or "INI" file. The ArcReader desktop application
does this using a
file called ArcReader.art. It is recommended not to reuse this file
as it may break the ArcReader desktop application.
Instead, use a location such as:
User profile\Application Data\CompanyName\ProductName\Templates\FileName.art
Once a template has been saved it can be loaded into the ArcReaderGlobeControl to suit a particular user or application. For example, a user may have a preference about the window position of the magnifier window and whether the table of contents is displayed. When the ArcReaderGlobeControl exits (typically when the form or container is closed) the value of these settings is updated back into the ARConfiguration. Additional custom settings can be added to the ARConfiguration, to store user preferences specific to the custom application.
getARConfiguration
in interface IARGlobeControl
getARConfiguration
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void showARGlobeWindow(int win, boolean show, Object data) throws IOException, AutomationException
The ShowARGlobeWindow shows or hides the specified built in window. By default all of the esriARGlobeWindows are closed. Before using the ShowARGlobeWindow method make one or all of the following checks:
A modal window requires a response from the user, before they can interact with another part of the application. A modeless window will stay on the screen, available for use, but allow the user to interact with other parts of the application. When the LoadDocument or ReloadDocument methods are used, any modeless windows will be automatically closed.
showARGlobeWindow
in interface IARGlobeControl
showARGlobeWindow
in interface IARGlobeControlDefault
win
- A com.esri.arcgis.controls.esriARGlobeWindows constant (in)show
- The show (in, optional, pass true if not required)data
- A Variant (in, optional, pass null if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isARGlobeWindowVisible(int win) throws IOException, AutomationException
isARGlobeWindowVisible
in interface IARGlobeControl
isARGlobeWindowVisible
in interface IARGlobeControlDefault
win
- A com.esri.arcgis.controls.esriARGlobeWindows constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean hasDocumentPermission(int docPermission) throws IOException, AutomationException
The HasDocumentPermission method determines whether the currently loaded document was published with the specified functionality permission.
When a document is published the publisher can set a variety of permissions to limit the functionality that a user has access to when viewing the document in the ArcReaderGlobeControl. These permissions should be checked and the behavior of an application modified appropriately. For example, if permission to access hyperlinks does not exist an application should be modified so that a user can not set the current tool to the hyperlink tool.
esriARDocumentPermissionsPrint: Indicates whether permission exists to use the PrintView method and the ShowARWindow method to open the PageSetup and Printer windows.
esriARDocumentPermissionsExport: Indicates whether permission exists to use the IARGlobeControl::ExportView method.
esriARDocumentPermissionsIdentify: Indicates whether permission exists to set the CurrentARTool property to the Identify tool to use the ShowARWindow method to open the Identify window.
esriARDocumentPermissionsFind: Indicates whether permission exists to use the ShowARWindow method to open the Find window.
esriARDocumentPermissionsChangeView: This does not apply to the ArcReaderGlobeControl.
esriARDocumentPermissionsChangeLayerVisibility: Indicates whether permission exists to set the IARLayer::Visible property.
esriARDocumentPermissionsHyperlink: Indicates whether permission exists to set the CurrentARTool property to the Hyperlinks tool.
esriARDocumentPermissionsMeasure: Indicates whether permission exists to set the CurrentARTool property to the Measure tool.
esriARDocumentPermissionsViewTOC: Indicates whether permission exists to set the TOCVisible property.
esriARDocumentPermissionsOnlyInArcReader: This does not apply to the ArcReaderGlobeControl.
esriARDocumentPermissionsQueryFeatures: Indicates whether permission exists to use the IARGlobe::SearchARFeatures, IARGlobe::QueryARFeatures, IARLayer::SearchARFeatures, and IARLayer::QueryARFeatures methods.
esriARDocumentPermissionsQueryValues: Indicates whether permission exists to use the IARFeature::Value property.
esriARDocumentPermissionsCopyViewToClipboard: Indicates whether permission exists to use the CopyViewToClipboard method.
esriARDocumentPermissionsInternalObjects: This does not apply to the ArcReaderGlobeControl.
hasDocumentPermission
in interface IARGlobeControl
hasDocumentPermission
in interface IARGlobeControlDefault
docPermission
- A com.esri.arcgis.controls.esriARDocumentPermissions constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARUnitConverter getARUnitConverter() throws IOException, AutomationException
The ARUnitConverter object is a helper object for firstly converting values between different esriARUnits and secondly for converting values and esriARUnits constants to strings.
Caution should be exercised, when converting units of measurement, that the conversion is sensible. For example, the ARUnitConverter will allow one to convert a distance measured in Kilometers to a distance in Decimal Degrees. However, because the meridians converge towards the poles, a degree of longitude varies in size. One degree of longitude is approximately 111km at the equator but only 79km at a latitude of 45 degrees. The ARUnitConverter has no in-built intelligence to handle such conversions but does allow such conversions to be undertaken. If the ARUnitConverter is used to convert a distance of 1 decimal degree to kilometres, it assumes the distance is a measure of latitude, or a measure of longitude at the equator.
getARUnitConverter
in interface IARGlobeControl
getARUnitConverter
in interface IARGlobeControlDefault
IOException
- 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.
When querying interface to IARGlobeControl in Visual Basic 6.0 the Object property must be used. This is because Visual Basic 6.0 contains the real control inside a wrapper object known as an extender object.
getObject
in interface IARGlobeControl
getObject
in interface IARGlobeControlDefault
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 ArcReaderGlobeControl. This is similar to a 'Tag' property, and can be use to store strings, numbers and objects.
getCustomProperty
in interface IARGlobeControl
getCustomProperty
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomProperty(Object pVal) throws IOException, AutomationException
setCustomProperty
in interface IARGlobeControl
setCustomProperty
in interface IARGlobeControlDefault
pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refresh() throws IOException, AutomationException
The Refresh method causes screen display area of the current view to be redrawn by sending a windows paint event.
refresh
in interface IARGlobeControl
refresh
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARGlobe getARGlobe() throws IOException, AutomationException
Returns the ARGlobe. The ARGlobe represents the globe contained within the Published Map document. A document can contain only one ARGlobe.
getARGlobe
in interface IARGlobeControl
getARGlobe
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getViewTop() throws IOException, AutomationException
The top of the current view display area in pixels. This will always return 0.
getViewTop
in interface IARGlobeControl
getViewTop
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getViewLeft() throws IOException, AutomationException
The left side of the current view display area in pixels. The ViewLeft is equal to the TOCWidth + 4 (the width of the splitter that separates the TOC from the current view display area).
getViewLeft
in interface IARGlobeControl
getViewLeft
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getViewHeight() throws IOException, AutomationException
The height of the current view display area in pixels.
getViewHeight
in interface IARGlobeControl
getViewHeight
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getViewWidth() throws IOException, AutomationException
The width of the current view display area in pixels. The ViewWidth is equal to the width of the ArcReaderGlobeControl - TOCWidth - 4 (the width of the splitter that separates the TOC from the current view display area).
getViewWidth
in interface IARGlobeControl
getViewWidth
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasCustomARConfiguration() throws IOException, AutomationException
This property can be used to determine if the currently loaded document has been published with an embedded ArcReader Template File (ART).
isHasCustomARConfiguration
in interface IARGlobeControl
isHasCustomARConfiguration
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSwipeLayerByRef(IARLayer ppLayer) throws IOException, AutomationException
setSwipeLayerByRef
in interface IARGlobeControl
setSwipeLayerByRef
in interface IARGlobeControlDefault
ppLayer
- A reference to a com.esri.arcgis.controls.IARLayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARLayer getSwipeLayer() throws IOException, AutomationException
This property can be used to specify the ARLayer which is used by the esriARToolGlobeSwipe. Layers beneath the ArcReaderGlobeControl::SwipeLayer will be revealed when the esriARToolGlobeSwipe tool is used.
getSwipeLayer
in interface IARGlobeControl
getSwipeLayer
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getViewWindow() throws IOException, AutomationException
The operating environment identifies each window, form and control in an application by assigning it a handle, or hWnd. The ArcReaderGlobeControl is composed of several windows, this property returns the hWnd of the window containing the current view.
getViewWindow
in interface IARGlobeControl
getViewWindow
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCurrentGlobeViewType() throws IOException, AutomationException
Returns the type of current view. If no document has been loaded esriARGlobeViewTypeNone will be returned. If a document has been loaded esriARGlobeViewTypeGlobe will be returned.
getCurrentGlobeViewType
in interface IARGlobeControl
getCurrentGlobeViewType
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMousePointer(int pcursor) throws IOException, AutomationException
setMousePointer
in interface IARGlobeControl
setMousePointer
in interface IARGlobeControlDefault
pcursor
- A com.esri.arcgis.controls.esriARMousePointer constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMousePointer() throws IOException, AutomationException
You can use MousePointer property to set the ARGlobe mouse pointer to be one of the built-in esriARMousePointers. This is useful if you want to display a wait cursor while you code performs a large process. The specified esriARMousePointer is displayed provided the ArcReaderGlobeControl::CurrentARTool is set to esriARToolNoneSelected.
getMousePointer
in interface IARGlobeControl
getMousePointer
in interface IARGlobeControlDefault
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IARLayer getSelectedARLayer() throws IOException, AutomationException
Returns the ARLayer that has been selected in the Table Of Contents (TOC). If no layer has been selected in the TOC, this method will return nothing. For example, this property could be used to restrict a spatial search to the extent of the selected layer in the TOC.
getSelectedARLayer
in interface IARGlobeControl
getSelectedARLayer
in interface IARGlobeControlDefault
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 |