Optimized renderer


Purpose
The optimized sample renderer implements a feature renderer that is optimized for drawing speed.  This sample application can be consumed in an ArcGIS Engine application.

How to use

See How to use ArcGIS samples for help on running the sample.

  1. 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.
  2. 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.
  3. As the JFrame suggests, open the counties.shp file in the specified location.
  4. Click the 'Low Speed Method' radio button and pay attention to the draw speed of the map.
  5. Click the Clear button to clear the rendering from the counties layer in the MapBean.
  6. Click the 'High Speed Method' radio button and pay attention to the draw speed of the map.
  7. With the renderer applied to the layer, save the map document using the Save button.
  8. Close your engine application.
  9. 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.
  10. 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