Setting SymbologyControl properties
Do the following to set SymbologyControl properties:
- Create an ArcGIS Engine Project in the Eclipse integrated development environment (IDE) with an ArcGIS plug-in, then build a simple visual application using the SymbologyControl. See the following screen shot:
- Right-click the SymbologyControl and choose Customize Java Bean. The Java Property Editor dialog box appears. The visual properties of the SymbologyControl, such as border style, appearance, background color, mouse pointer, and display style can be set using the Java Property Editor. See the following screen shot:
The following table explains the other areas that can be selected under the General tab:
Label
|
SymbologyControl methods
|
Description
|
Default value
|
Enabled
|
Indicates whether the SymbologyControl can respond to user generated events.
|
True
|
|
Show Context Menu
|
Determines whether the Style Class context menu appears when the user right clicks the control.
|
False
|
|
Arrow Key Intercept
|
A property that specifies interception of key strokes that are normally handled by the container. When intercepted, the OnKeyDown and OnKeyUp events will be called.
|
0
|
- Do the following to set the style files of the SymbologyControl:
- Click the Styles tab.
- Click the Open folder icon. The Open dialog box appears.
- On the Open dialog box, navigate to the folder containing the style files.
- Select the applicable style file and click the Open button. The name and location of the style file appears on the text box.
- Click Add to add it to the list of style files in the SymbologyControl.
- Repeat the previous steps as many times your business logic requires.
- To remove the added files, select the applicable style file and click Remove.
See the following screen shot:
- Alternatively, the properties of the SymbologyControl can also be modified using the properties window in Eclipse IDE. See the following screen shot:
The SymbologyControl 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:
SymbologyControl classDevelopment licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine |
ArcGIS for Desktop Basic | |
ArcGIS for Desktop Standard | |
ArcGIS for Desktop Advanced |