Perforce JViews Diagrammer Sample: Web Viewer
Description
This sample explores the Web to discover relationships between pages and displays the resulting diagram using Perforce JViews Diagrammer.
How to Use the Sample
- The window is split into several areas: the main Web Viewer pane showing the diagram, a toolbar, a help pane, and a message console.
- The buttons and controls in the toolbar allow you to perform actions such as opening a URL, navigating to a new center node, zoom in, zoom out, and so on. Full explanations are provided in the help panel.
How to Run the Sample as an Application
This sample can
be run as an application.
The installation directory contains
an executable JAR file,
diagrammer-webviewer.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
- Navigation in infinite diagrams.
Detailed Description
This sample explores the Web to discover relationships between pages and displays the resulting diagram using Perforce JViews Diagrammer.
Installation Directory
The Web Viewer sample is installed here.
Classes Involved
-
ilog.views.diagrammer.IlvDiagrammer
The main class of the diagram component.
Source Files
-
webviewer.WebViewer
The entry point of the sample.