How to use
See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
- Start the sample application. The ushigh.shp shapefile from the sample data is loaded into the Map control.
- Start an edit session using the Editor menu on the toolbar.
- Click the Snapping Dialog command to start the Snapping Dialog.
- Use the controls on the Snapping Dialog to modify the snapping environment. The changes made by the Snapping Dialog are reflected in the Snapping control on the Editor menu.
Download the files for Java
editing/EditingApplication.java | Entry point for the sample. It initializes the interop, sets up the user interface (UI), and ensures licensing is valid. |
editing/SnappingDialog.java | Represents the dialog used to manage snap agents. Contains the code to build the UI and respond to user actions. |
editing/ShowDialogCommand.java | Contains the code to implement a custom command. The command displays the SnappingDialog. |
editing/SnappingTableModel.java | Represents the model used by the JTable on the SnappingDialog. Contains the code to implement the actions defined on the SnappingDialog. The SnappingDialog delegates to this class for all the actions. |
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime |
ArcEditor | |
ArcInfo |