User interface components

Rogue Wave® JViews Diagrammer comes with a set of classes designed to ease the development of Swing GUIs containing one or more IlvDiagrammer objects. These classes are contained in the package ilog.views.diagrammer.application.

Actions

The class IlvDiagrammerAction is a base class for Swing Actions that act on an IlvDiagrammer object. A set of predefined actions that call the main IlvDiagrammer methods is provided.

Toolbars

The class IlvDiagrammerToolBar is a Swing JToolBar that accepts a set of IlvDiagrammerAction instances. The subclasses IlvDiagrammerViewBar, IlvDiagrammerEditBar have predefined actions to control and edit the diagram.
The class IlvDiagrammerPaletteBar is designed to be used for editing diagrams. You can populate it with actions that create new nodes and links according to a set of sample objects.

Menus

The class IlvDiagrammerMenu is a Swing JMenu that accepts a set of IlvDiagrammerAction instances. The subclasses IlvDiagrammerFileMenu, IlvDiagrammerEditMenu, IlvDiagrammerOptionsMenu and IlvDiagrammerHelpMenu have predefined actions to control and edit the diagram, and to set options and give access to Help for the application. The class IlvDiagrammerMenuBar is a complete predefined menu bar containing all the predefined menus.

Overview

The class IlvDiagrammerOverview displays a reduced view of a diagram. You can use it with the zoom facility of a diagram component to control which part of a large diagram is visible.

Tree

The class IlvDiagrammerTree is a Swing JTree that displays the nodes and links contained in the diagram’s data model. The tree is an alternative way to view and select the objects in the diagram.

Property sheet

The class IlvDiagrammerPropertySheet is a Swing JTable that displays the properties of the selected object of the diagram. Use the property sheet to view and edit the properties of the objects in the data model.

Table

The class IlvDiagrammerTable is a Swing JTable that displays the properties of all the objects in the diagram. Use it to have a global view of the data model.

The Application class

The class IlvDiagrammerApplication is a complete Swing application that is built using the components in the Application package. This class lets you view (and optionally edit) one or more diagrams. The following code example shows how to launch the application by invoking the java command on this class.
Launching a JViews Diagrammer application
java ilog.views.diagrammer.application.IlvDiagrammerApplication
The CLASSPATH environment variable must contain the JAR files for the Rogue Wave JViews Diagrammer product and the JViews Framework package.
A JViews Diagrammer application can also be launched as an applet: specify IlvDiagrammerApplication as the applet class in the HTML applet tag.