Perforce JViews Maps Sample: Air traffic control
Description
This sample shows how to use JViews Framework objects on top of JViews Maps.
How to Use the Sample
- Press the Play button in the simulation toolbar to run the simulation.
- You can press Pause at any time to pause the simulation. Click the Play button again to resume the simulation.
- You can click the target icon (in the simulation toolbar), then click one of the mobiles in the view to start tracking this mobile. In tracking mode, the selected mobile is always in the center of the view, and the view rotates so that the top of the view indicates the direction in which it is going.
- You can click a different mobile to track that instead. To exit tracking mode, simply click an empty zone in the map or click the target icon in the toolbar.
- Pause the simulation and resume it by clicking the same button.
- Double-click one of the areas of interest to select that part of the map.
- Click the map layers tab to access and modify the styling and visibility of layers.
- Change the coordinate system to see the symbols reprojected.
- Choose the number of mobiles you want to see in the field.
- Choose the simulation acceleration factor from the speed list in the toolbar.
- Choose a desired refresh rate from the fps list. Note that depending on the number of mobiles to display, it might not be attainable.
How to Run the Sample as an Application
This sample can
be run as an application.
The installation directory contains
an executable JAR file,
atc.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 Perforce JViews.
Then, go to the installation directory
of the sample and type:
ant run
Topics Covered
- Reading Shape files.
- Using JViews Maps Beans.
- Creating areas of interest.
Detailed Description
This sample application creates a basic world map and simulates the animation of framework-based symbols.
Installation Directory
The Air traffic control sample is installed here.
Classes Involved
- ilog.views.maps.IlvCoordinateSystemProperty
- ilog.views.maps.IlvAreasOfInterestProperty
- ilog.views.maps.IlvCoordinate
- ilog.views.maps.IlvCoordinateSystemProperty
- ilog.views.maps.IlvDisplayPreferencesProperty
- ilog.views.maps.IlvMapInputStream
- ilog.views.maps.beans.IlvJAreaOfInterestPanel
- ilog.views.maps.beans.IlvJCompass
- ilog.views.maps.beans.IlvJCoordinateSystemEditorPanel
- ilog.views.maps.beans.IlvJMouseCoordinateViewer
- ilog.views.maps.beans.editor.IlvCoordinatePanelFactory
- ilog.views.maps.format.IlvDefaultDataPathResolver
- ilog.views.maps.format.IlvMapDataPathManager
- ilog.views.maps.raster.IlvRasterMappedBuffer
- ilog.views.maps.srs.coordsys.IlvCoordinateSystem
- ilog.views.maps.srs.coordsys.IlvGeographicCoordinateSystem
- ilog.views.maps.srs.coordtrans.IlvCoordinateTransformation
- ilog.views.maps.srs.coordtrans.IlvCoordinateTransformationException
- ilog.views.maps.theme.IlvMapStyleController
- ilog.views.maps.theme.IlvMapStyleControllerProperty
- ilog.views.maps.IlvGeodeticComputation