| Programming with JViews Maps > Creating a Map Application Using the API > Using the GUI Beans > Map Overview |
Map Overview |
INDEX
PREVIOUS
NEXT
|
The Map Overview Bean is represented by the IlvJOverview class. The Map Overview Bean displays a representation of a target manager view and enables users to navigate to an area of the view that is of particular interest.
An example of the Map Overview panel is shown in Figure 3.2.
To include the Map Overview Bean in your application, write the following lines of code:
IlvJOverview overview = new IlvJOverview(); overview.setView(view);
Then add it into a swing component:
panel.add(overview, BorderLayout.CENTER);
You should also make sure that the size of your overview remains the same regardless of any Swing layout constraints applied. To do this, use lines such as the following:
overview.setSize(200, 100); overview.setPreferredSize(overview.getSize()); overview.setMinimumSize(overview.getSize());
You can customize the way users interact with the overview, and with the capabilities of the control rectangle as follows:
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |