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.
- Navigate to this sample's lib folder (optimizedrenderer\lib) and copy the OptimizedRendererExt.jar file into the <ArcGIS Engine Install Dir>/java/lib/ext folder to deploy the custom renderer extension. The extension functionality will become available to you when you start the ArcGIS Engine application.
- Navigate to this sample's bin folder (optimizedrenderer\bin) and execute the OptimizedRenderer.jar to start the application. The JFrame is loaded with a ToolbarBean, empty MapBean, an Open File … button, two radio buttons for identifying the low and high speed methods and a Clear button.
- As the JFrame suggests, open the counties.shp file in the specified location.
- Click the 'Low Speed Method' radio button and pay attention to the draw speed of the map.
- Click the Clear button to clear the rendering from the counties layer in the MapBean.
- Click the 'High Speed Method' radio button and pay attention to the draw speed of the map.
- With the renderer applied to the layer, save the map document using the Save button.
- Close your engine application.
- Navigate to this sample's bin folder (optimizedrenderer\bin) and execute the OptimizedRenderer.jar to start the application again. Notice that the renderer applied to the counties layer is persisted in the map document.
- Close the application.
Download the files for Java
cartography/OptimizedRendererMain.java | Main class that consumes the custom renderer in an ArcGIS Engine application. |
cartography/OptimizedRenderer.java | Renderer that implements IFeatureRenderer, Externalizable, IDocumentVersionSupportGEN, and a newly defined interface, IOptimizedRenderer (see the interface below). |
cartography/IOptimizedRenderer.java | A custom interface that defines a single method for fast or slow draw rates. |
See Also:
How to implement custom feature renderersConsuming custom feature renderers
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime |