skip to main content
Defense > Getting started > Introducing JViews Diagrammer > Creating diagramming applications > Controlling the diagram in an application
 
Controlling the diagram in an application
JViews Diagrammer comes with a set of classes designed to ease the development of Swing GUIs. These classes allow users to control one or more diagrams in an application.
Actions
More than sixty predefined Swing actions call the main methods of JViews Diagrammer. They include actions like select, zoom, pan, undo, redo, save, paste, print, print preview, and many more.
Toolbars and menus
JViews Diagrammer provides Swing JToolbars and Swing JMenus that contain buttons linked to JViews Diagrammer actions. A few predefined toolbars and menus such as the Edit toolbar ( EditBar class) and the Edit menu ( EditMenu class) are provided to accelerate your development.
Overview
The overview displays the entire diagram within a small area. It has a movable and resizable rectangle which indicates the area of the diagram that is visible. The user can move and resize the rectangle to pan the main view or to change its zoom level.
Tree and table
JViews Diagrammer proposes an alternative way to view and select nodes and links through a Swing JTree. This view complements the diagram view.
The data model and the data properties of the model objects can be viewed and modified with a Swing JTable.
Property sheets
When double-clicked, a graphic object can display its data properties in a property sheet provided by JViews Diagrammer. Through this property sheet, the user can edit the data properties of the graphic object. When a style rule is selected, it can display the styling properties in a property sheet as well as in the tabbed panes of the Styling Customizer.
Application
If you need to prototype or to develop fast, you can use the prebuilt JViews Diagrammer application, which already contains toolbars and menus, palettes, property sheet, overview, and more.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.