MOLE leader stacker


Purpose
This sample demonstrates how to declutter MOLE graphics on a Map control using leadering and stacking. Leadering is a decluttering method whereby the MOLE graphics are drawn as a vertical group, offset at a specified distance from a specified point. Stacking is a decluttering method whereby the MOLE graphics are drawn as a condensed cluster of slightly-offset graphics.

How to use

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

Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/mole/mole_base.mxd.
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.

  1. Run the application. As the application initializes, it loads a map from the MOLE sample data in the ArcObjects software development kit (SDK) for the Java platform.
  2. Click the Add MOLE Graphics button to display MOLE graphics on the map. Click the button again to add more MOLE graphics to the map.
  3. Click the Apply Leadering button. The last batch of graphics that were added to the map are grouped using the leadering method.
  4. Click the Apply Stacking button. The last batch of graphics that were added to the map are grouped using the stacking method.
  5. Click the Undo button. The last batch of graphics that were leadered or stacked are restored to their original locations on the map.
  6. Click the Clear button to remove all the graphics from the map.

Additional information

Many of the ArcGIS Military Analyst and MOLE extension application programming interface (API) objects you have used in the past have equivalent or near equivalent objects in the ArcGIS 10 ArcObjects API. These new objects should now be used and do not require a Military Analyst extension or MOLE extension license. See Migrating from Military Analyst and MOLE for information on how to accomplish tasks in ArcGIS 10 that previously required the Military Analyst and MOLE APIs.


Download the files for Java
defensesolutions/MoleLeaderStacker.java Contains the main class implementation.




Development licensing Deployment licensing
Engine Developer Kit: Military Overlay Editor Engine Runtime: Military Overlay Editor