Setting GlobeControl properties
Do the following to set GlobeControl properties:
- Create an ArcGIS Engine project in the Eclipse integrated development environment (IDE) using GlobeControl. For more information, see How to build an application in Eclipse using visual beans).
See the following screen shot that shows an example JFrame in design mode: - Right-click the GlobeControl and click Customize Java Bean. The Java Property Editor dialog box appears. The visual properties of the GlobeControl, such as border style, appearance, background color, and mouse pointer can be set on the Java Property Editor. See the following screen shot:
-
On the Java Property Editor dialog box, click the General tab. The following table explains the other areas that can be selected under the General tab:LabelGlobeControl methodsDescriptionDefault valueEnabledIndicates whether the GlobeControl can respond to user generated events.TrueNavigateIndicates if the GlobeControl performs default scene navigation in response to mouse events.FalseOverride Document BackColorIndicates whether to override the background color of the globe document.FalseArrow Key InterceptSpecifies interception of key strokes that are normally handled by the container. When intercepted, the OnKeyDown and OnKeyUp events will be called.0Globe DocumentThe file name of the last globe document loaded into the control.None
-
Do the following to set the Globe Document Property on the Java Property Editor dialog box for the GlobeControl:
-
Click the Open folder icon. The Open dialog box appears.
-
On the Open dialog box, browse to the folder containing the globe document.
-
Select the applicable globe document, then click Open. The file path of your selected document shows in the Globe Document text field.
Alternatively, the properties of the GlobeControl can also be modified using the Properties window in the Eclipse IDE. See the following screen shot:
The GlobeControl property editor avoids the redundant code that a developer might need to write multiple times. It presents a convenient interface for developers to initialize a simple ArcGIS Engine application.
See Also:
IGlobeControlUsing GlobeControl
GlobeControl class
How to build an application in Eclipse using visual beans
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine |
ArcGIS for Desktop Basic | |
ArcGIS for Desktop Standard | |
ArcGIS for Desktop Advanced |