How to set GlobeControl properties

This topic shows how the various properties of GlobeControl can be set by clicking a button. The Java Property Editor of the GlobeControl lets you set the control properties and initialize the globe document during design time.

Setting GlobeControl properties

Do the following to set GlobeControl properties:
  1. 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:  

  2. 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:

  3. 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:
    GlobeControl methods
    Default value
    Indicates whether the GlobeControl can respond to user generated events.
    Indicates if the GlobeControl performs default scene navigation in response to mouse events.
    Override Document BackColor
    Indicates whether to override the background color of the globe document.
    Arrow Key Intercept
    Specifies interception of key strokes that are normally handled by the container. When intercepted, the OnKeyDown and OnKeyUp events will be called.
    Globe Document
    The file name of the last globe document loaded into the control.
  1. Do the following to set the Globe Document Property on the Java Property Editor dialog box for the GlobeControl:
    1. Click the Open folder icon. The Open dialog box appears.
    2. On the Open dialog box, browse to the folder containing the globe document.
    3. 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:

Using GlobeControl
GlobeControl class
How to build an application in Eclipse using visual beans

Development licensingDeployment licensing
Engine Developer KitEngine
ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced