CONTENTS
The Essential JViews Framework
About this Document
What Is ILOG JViews Framework?
What Is in This Manual?
Introducing ILOG JViews Framework
The Framework Package
JavaBeans
API
JViews Framework as ILOG JViews Foundation
A Basic Graphics Application Model
The Graphic Object: IlvGraphic
The Data Structure: IlvManager
The Viewport: IlvManagerView
Getting Started with JViews Framework
Running the Example
Step 1 - The Manager
Importing the Library and Packages
Creating the Frame Class
Creating the Manager
Loading/Reading a File
Creating the View
Testing the Application
Step 2 - View Interaction
Adding the selectInteractor Field
Creating the Select Button
Step 3 - Using Events
Adding New Interactor Fields
Creating the Interactor Buttons
Listening for a Change of Interactors
Registering the Listener
Step 4 - Manipulating Graphic Objects
Adding Graphic Objects
Moving Graphic Objects
Framework JavaBeans
Installing ILOG JViews Beans into an IDE
Framework Classes Available as JavaBeans
ILOG JViews Main Data Structure Beans
ILOG JViews Main GUI Components
Predefined Interactors
GUI Convenience Components
Creating a Simple Applet Using ILOG JViews Beans
Creating the Manager View
Setting the Properties of the Manager View
Creating a Manager and Displaying its Content in a View
Loading an .ivl File into the Manager
Adding a Control Toolbar Bean
Configuring the toolbar
Testing the Result
Graphic Objects
Introducing Graphic Objects
Hierarchy of Predefined Graphic Objects
Geometric Properties
The boundingBox Method
The draw Method
Zoomable and Nonzoomable Objects
Testing Whether a Point is Part of an Object Shape
Moving and Resizing a Graphic Object
User Properties of Graphic Objects
Input/Output Operations
The Graphic Bag
Predefined Graphic Objects
Arcs
Ellipses
Lines
Rectangles
Polygons and Polylines
Labels and Text
In-place Text Editing
Markers
Groups
Scales
Icons
Paths
Component Graphics
Creating a New Graphic Object Class
Basic Steps
Testing for a Point Inside an Object
Saving and Loading the Object Description
Named Properties
Managers
Introducing Managers
Manager Views
Layers
Handling Input Events: Interactors and Accelerators
Input/Output
UML Diagram
Binding Views to a Manager
Creating a Manager and a View
Listener for the Views of a Manager
View Transformation
Scrolled Manager View
Managing Double-Buffering
The Manager View Grid
UML Diagram
Manager View Repaint Skipper
Managing Layers
Setting Up Layers
Layers and Graphic Objects
Listener for Layer Changes in a Manager
Triple Buffering Layers
Caching Layers
Managing Graphic Objects
Adding and Removing Objects
Modifying Geometric Properties of Objects
Applying Functions
Editing and Selecting Properties
Optimizing Drawing Tasks
Listener for the Content of the Manager
Selection in a Manager
Managing Selected Objects
Selection Interactor
Creating Your Own Selection Object
Listener for the Selections in a Manager
Hover Highlighting in a Manager
Managing Hover Highlighting
Creating Your Own Highlighting Effect
Managing Input Events
Object Interactors
Example: Extending the IlvObjectInteractor Class
View Interactors
Tooltips and Popup Menus On Graphic Objects
Saving and Reading
Other File Formats
Drawing Exchange Format (DXF)
Graphers
Introducing Graphers
Managing Nodes and Links
Basic Grapher Link Class
Predefined Link Classes
Node and Link Visibility
Contact Points
Using Link Connectors
Using the Class IlvPinLinkConnector
Other Link Connectors
UML Diagram
Grapher Interactor Class
Creating a New Class of Link
IlvPolylineLinkImage
Link Shape Policies
Orthogonal Links
Crossing Modes
Shape Policies
Composite Graphics
Introducing Composite Graphics
Creating a Composite Graphic
Step 1 - Starting the Composite Graphic
Step 2 - Creating the Attachment Layout
Step 3 - Creating the First Child Graphic
Step 4 - Attaching a Child Graphic
Step 5 - Using Stacker Layout
Step 6 - Using Centered Layout
Summary
Index