GLG Map Display Demo
This demo demonstrates some of the GLG
Toolkit's features often used in the monitoring applications:
Vector or image map display (see the GIS Demo
for more map-related features)
Dynamic node and link creation and
positioning
based on lat/lon information
Layering and selective display of
layering
information
Dynamic shape of node icon based
on
the node state
Dynamic data display associated
with
nodes and edges
Tooltips and hot spots, showing
node
or link name on moving the mouse over them
Zooming and panning to selected
region
Displaying maps for different regions
Node and link selection feeeback and
drill
down - pops up a dialog with more information for the selected
node,
link or state
This demo reads node information (node
name and position) from a file or URL and creates nodes on the map
dynamically,
based on the information received. It also reads connectivity
information
and connects nodes with dynamic links. All objects in the drawing
(nodes,
links, display labels, map polygons, etc.) may be dynamically updated
by
changing any of the objects' attributes. They can also be selected with
the mouse. The demo uses similated data. However, provided with a data
source, it can also display live data.
Refer to the
User
Interface instructions below to turn on data display and other
demo options.
Source Code
User
Interface
The demo toolbar contains the following
buttons
(move the mouse over a button to show its tooltip):
Toggle Color Scheme
Changes the color scheme used to display the drawing
Toggle Links Layer
Toggles link layer visibility
Toggle Value Display Layer
Toggles visibility of the data display layer
Toggle Map Layer
Toggles map visibility
Toggle Update
Starts or stops updating data
ZoomIn, ZoomOut, ZoomReset, Zoom
and Pan
sliders and scrollbars
Zoom controls
ZoomTo
Zooming to a rectangular area selected with the mouse (click on ZoomTo,
then select a rectangular area on the map by clicking and dragging)
Mouse selection
Select node to display node
information
Select link to display link
information
Select US state to display state
name
Select anywhere to display lat./lon.
position
of the mouse click
Running the Demo as a stand-alone
Java
application
To run the demo in stand-alone mode,
use
the supplied run_s (Unix) and run_s.bat (Windows) scripts that invoke
the
demo with the required parameters.