How to use
See How to use ArcGIS samples for help on running the sample.
- 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.
If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.
|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 renderers
Consuming custom feature renderers
|Development licensing||Deployment licensing|
|Engine Developer Kit||Engine|