Rogue Wave JViews Maps for Defense Sample: Expanding Symbol Groups
Description
This sample shows how to automatically expand or collapse groups of symbols.
How to Use the Sample
- Zoom in and out of the main view to see groups expanded or collapsed.
- Zoom out, move a group, and zoom in to see how the corresponding children are moved.
- Zoom in, move a child, and then zoom out to see how the parent groups are moved.
How to Run the Sample as an Application
This sample can
be run as an application.
The installation directory contains
an executable JAR file,
collapse-symbols.jar
,
that allows you to execute the sample with a double click from a
file browser. Note that if you are using Internet Explorer, you can
open the installation directory
and execute the JAR file from the browser. This
technique may not work in other Web browsers.
Alternatively, you
can run the sample application from the command line.
First check that the Ant utility is properly configured. If not, see the
instructions on how to configure Ant for Rogue Wave JViews.
Then, go to the installation directory
of the sample and type:
ant run
Topics Covered
- Collapse/Expand groups
Detailed Description
Displays automatic collapse/expand of symbol groups and synchronises the movement of children.
Installation Directory
The Expanding Symbol Groups sample is installed here.
Classes Involved
- ilog.views.maps.IlvCoordinateSystemProperty
- ilog.views.maps.IlvMapLayerTreeProperty
- ilog.views.maps.IlvSDMHierarchyExpandManager
- ilog.views.maps.beans.IlvJAdvancedZoomControl
- ilog.views.maps.beans.IlvJMapScaleControl
- ilog.views.maps.beans.IlvJMouseCoordinateViewer
- ilog.views.maps.beans.IlvMapLayerTreeModel
- ilog.views.maps.datasource.IlvMapDataSourceModel
- ilog.views.maps.datasource.IlvMapDataSourceProperty
- ilog.views.maps.datasource.IlvShapeDataSource