Purpose
This sample demonstrates how to use the feature renderer objects to display symbology for a feature layer. The renderer objects correspond to the LayerProperties Symbology dialog box in ArcMap.
This sample uses the following renderers:
SimpleRenderer
UniqueValueRenderer
ClassBreaksRenderer
ProportionalSymbolRenderer
ChartRenderer
DotDensityRenderer
This sample also uses the following:
Symbols
Color ramps
Data statistics
Table histogram
Classify objects
The ArcObjects MapControl is used as the map canvas and the USA states shapefile is loaded into it at run time.
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.
Run the sample application.
Symbolize your data using the renderers provided.
Download the files for Java
cartography/DisplayRenderersMain.java
Main class
Additional Requirements
USA states shapefile (provided in the ArcGIS\java\samples\data\usa folder)
Development licensing
Deployment licensing
Engine Developer Kit
Engine Runtime
ArcView
ArcEditor
ArcInfo