How to set SymbologyControl properties


Summary This article demonstrates how the various properties of SymbologyControl can be set by click of a button. The Java Property Editor of SymbologyControl lets you set the visual properties as well as the style files during design time.

Getting started with the SymbologyControl property editor

 
  1. To get started, create a new ArcGIS Engine Project in Eclipse IDE with ArcGIS plug-in and build a simple visual application using SymbologyControl

 
  1. Right-click on SymbologyControl and choose Customize Java Bean from the context menu. The Java Property Editor appears. The visual Properties of the SymbologyControl such as Border Style, Appearance, BackGround Color, Mouse Pointer, Display Style can be set using the Java Property Editor.

The consequences of the other checkbox widgets in the Java Property Editor are explained as follows:
 
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 will popup when the user right clicks on 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
 
  1. To set the Style Files of the SymbologyControl:
 
  • Select Styles Tab.
  • Click the Open folder icon and, onClick event an Open dialog box appears.
  • In the Open dialog box, navigate to the folder containing the style files.
  • Select the style file of your choice and click the Open button. You could see that the name and location of the Style File appears on the text box.
  • Click Add button to add it to the list of style files in the SymbologyControl.
  • Repeat the above steps as many times your business logic may require.
To remove the already added files, Select the specific style file and click Remove button.
 
 
  1. Alternatively, the properties of the SymbologyControl can also be modified using the properties window in Eclipse IDE.
 
Thus the SymbologyControl property editor avoids the redundant code that a developer might need to write time and again. It presents a convenient interface for the developers to initialize a simple ArcGIS Engine Application.
 
 


See Also:

SymbologyControl class




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView
ArcEditor
ArcInfo