Smart jGraph is a popular web based rich graph generation and viewing software written completely in Java. It is very rich looking, simple to create, easy to deploy and works in all platform.
Does it require any other third-party software?
Download WAR file
Visit our website and download "xml jgraph for browser" WAR archive from "XmlJGraph" section.
INSTALL WAR (Estimated time: 30 minutes)
This WAR archive is a self sufficient web application archive ready to be deployed under
any web container.
If the download is saved as a different file name, no worry. Even though a WAR file can be of any name,
rename the file to
xml_jgraph_for_browser.war in a local folder.
Here are some examples of how to deploy the WAR archive:
Step-1: Install War
These are not the only web servers to deploy. You can deploy it to any other web server of your choice. These are just examples.
JBoss: Copy to
Tomcat: Copy it to the
BEA WebLogic/IBM WebSphere: Logon to admin console and choose to deploy an existing WAR file which will let you select this WAR file located in any folder.
When web server deploy it will create a directory (called context path) that is the name of
the WAR file (excluding the
Step-2: Open the demo page
Now run the demo start page (NOTE: replace PROTOCOL, HOST and PORT)
Example: When deployed in a locally running Tomcat environment.
http://localhost:8080/xml_jgraph_for_browser/ it load the demo_main.jsp page located under
installation context directory name/demo/ location.
Step-3: Try demo samples
Start page has a lot of demo sample to run. Perhaps you will have to select from the drop down
(i) a display format; e.g. Image (PNG, BMP, GIF, JPEG), Applet, Flash and AJAAX, and a
(ii) sample metafile (plug-in to the viewer).
In order to refer a metafile for the viewer (when XML file is used instead of a DOM model) one require to construct URL out of a file location. XML metafile can be location anywhere; local file system or in remote server accessible through protocols such as HTTP(S), FTP etc.
Examples of typing a local file URL:
Examples of typing remote URL:
Dynamic metadata URL
Metadata XML model may be an static document existing somewhere or may be generated dynamically calling an web URL; i.e. a JSP/Servlet or other CGI programs.
Parameters to the viewers
XML metafile and a display choice are the two primary parameters to the viewers for its visual display.
Powerful graph layout and rich viewing feature can be easily achieved by simply choosing a display plug-in for the browser (or application). Almost all common image display formats such as PNG, GIF, JPEG, and BMP are supported. One can add user interaction with this graph by simply displaying in popular viewer such as Applets, Flash and AJAX viewer.
An applet viewer is released.
Flash viewer plug-in is not yet released.
AJAX viewer is not yet released.
How to develop
Download the standalone sample archive that has Java examples and some scripts files to execute the samples. Looking at the Java source samples will help understanding how simple it is to create meta file or write DOC models and then plug that into a viewer for graph display or creating images.
Tel: +1 408-791-8036 Fax: +1 408 716 8450