How to use
See How to use ArcGIS samples for help running the sample.
- Navigate to this sample's lib folder (simpledispersalrenderer/lib) and copy SimpleDispersalRendererPropertyPage.jar and SimpleDispersalRendererExt.jar into the <ArcGIS Desktop Install Dir>/java/lib/ext folder to deploy property page and the custom extension. The sample's functionality will become available to you when you start ArcMap.
- Start ArcMap and add the GOLF.shp point layer from the <DevKitHome Install Dir>/java/samples/data/AirportsAndGolf folder. Notice that some of the rendered point features are cluttered on the map.
- Right-click the golf layer in ArcMap and select Properties.
- In the Layer Properties dialog, select the Symbology tab. The Custom Renderer category is listed in the Table of Contents (TOC) for this layer.
- Select Custom Renderer from the TOC. To the right a dialog box opens for you to provide details that are used to define your custom renderer.
- Type in a dispersal ratio of 0.79 and click OK. The custom renderer is applied to the Golf layer and the points are dispersed.
- Once the renderer is applied to the layer, you can save the map document by clicking the Save icon (don't forget to provide a meaningful name for your .mxd file when saving). The map document is saved now with the custom renderer applied to the Golf layer.
- Close ArcMap.
- Open ArcMap using the map document you just saved. Notice that the golf layer's custom symbology has been persisted and restored in ArcMap.
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit |