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.
Scale Renderer
- Navigate to this sample's lib folder (scalerenderer/lib) and copy ScaleRendererExt.jar 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 (scalerenderer/bin) and execute the SscaleRenderer.jar to start the application. The JFrame is loaded with and empty MapBean and 3 buttons: Open File …, Zoom In, and Zoom Out.
- Click 'Open File …' and add the states shapefile from <DevKitHome Install Dir>/java/samples/data/usa folder to populate your MapBean.
- Click the 'Zoom Out' button. Notice the symbology change to envelopes for each polygon in the states layer.
- You can continue to click the 'Zoom Out' button. Eventually the polygon features are symbolized with simple marker symbols located at each polygons centroid.
Download the files for Java
cartography/ScaleRendererMain.java | Main class that consumes the custom renderer in an Engine application. |
cartography/ScaleRenderer.java | Renderer that implements IFeatureRenderer and contains the draw method. |
See Also:
How to implement custom feature renderersConsuming custom feature renderers
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit | Engine Runtime |