Getting Started

Table of Contents

Preface
1. Introduction
2. Installation
Installation
Configuration
Eclipse
3. Hello Node
Tutorial At A Glance
Running The Tutorial Example
Graph Creation
Graph Concepts
VisualGraphView Concepts
Node and VisualNode Creation
Node Creation
VisualNode Creation
Node and VisualNode Insertion
Node Insertion
VisualNode Insertion
Edge and VisualEdge Creation
Edge Creation
VisualEdge Creation
Edge and VisualEdge Insertion
Edge Insertion
VisualEdge Insertion
Summary
4. MVC
Tutorial At A Glance
Running The Tutorial Example
MVC in the Tensegrity Graph API
Graph Controllers
ClientServerGraphController
ModelBasedGraphController
GraphController Creation
GraphController Association
Visual Element Creation
Summary
5. Repository
Tutorial At A Glance
Running The Tutorial Example
Geometry Definition
Geometry XML
GeometryItem
GeometryDescriptorItem
GeometryDescriptor
Geometry Pool
Geometry Association
Style Definition
Style Pool
Style Association
Repository Element Definition
Element Pool
Summary
6. Modeling Rules
Tutorial At A Glance
Running The Tutorial Example
Graph Rule Definition
NodeRule Definition
EdgeRule Definition
RuleRegistry Population
Rule Association
Summary
7. Layout
Tutorial At A Glance
Running The Tutorial Example
LayoutController
Layout Context (Type Configuration)
Summary
8. Event Handling
Tutorial At A Glance
Running The Tutorial Example
Event Registration
GraphEvent Concepts
GraphListener Concepts
Listener Registration
Event Veto
Big BrotherRegistration
Event Logging
Summary
9. Skeleton
Tutorial At A Glance
Running The Tutorial Example
Application Frame
The Menubar Component
The Toolbar Component
The Statusbar Component
Containers
Commands
Preferences
Launch Tasks
Loading Preferences
Setting Up Commands
Menu and Toolbar
Element Definitions
Populating the Repository Container
Modeling Our Example
Summary
Bibliography
Index

List of Figures

1.1. Example Business Case (Conceptual Diagram)
3.1. Screenshot HelloNode
4.1. Screenshot MVC Example
4.2. MVC Roles
4.3. MVC in the Tensegrity Framework
5.1. Repository Elements in a Document
6.1. Screenshot RulesExample
7.1. Screenshot LayoutExample
8.1. Events Example Screenshot
9.1. Skeleton Example Screenshot
9.2. User Administration Graph

List of Tables

3.1. Tutorial Aspects
4.1. Tutorial Aspects
5.1. Tutorial Aspects
6.1. Tutorial Aspects
7.1. Tutorial Aspects
8.1. Tutorial Aspects
9.1. Tutorial Aspects

List of Examples

3.1. Creating a Graph instance
3.2. Creating a VisualGraphView instance
3.3. Creating two Node instances
3.4. Adding two Node instances to a Graph
3.5. Creating an Edge instance
3.6. Inserting an Edge instance
4.1. GraphController Creation
4.2. VisualGraphView Creation
4.3. Creating a VisualNode programmatically
4.4. Adding VisualNode objects to a VisualGraphView
4.5. Creating a VisualEdge instance
4.6. Adding a VisualEdge to a VisualGraphView
5.1. Geometry Definition Fragment
5.2. Minimal GeometryItem
5.3. Minimal GeometryDescriptorItem
5.4. Minimal GeometryDescriptor
5.5. Loading configured geometries into the GeometryPool
5.6. Applying a user-defined geometry
5.7. Style definition fragment
5.8. Loading configured styles into the StylePool
5.9. Applying a user-defined style
5.10. Element definition
5.11. ElementPool Loading
6.1. Graph Rule XML Fragment
6.2. NodeRule XML Fragment
6.3. EdgeRule XML Fragment
6.4. Load and apply rules from file
6.5. A rule for resizeable nodes
6.6. Assigning a rule to a node
7.1. Apply a Circular Layout to a VisualGraphView
7.2. Method that creates a GraphLayoutController
7.3. Assign a GraphLayoutController to a VisualGraphView
8.1. GraphListener Registration
8.2. Event Veto Source Listing
8.3. GraphEventMediatorListener Source Listing
8.4. Event Logging Source Listing
9.1. The ToggleAssignEdgeModeCommand
9.2. Accessing a created Command
9.3. An example preferences.xml file
9.4. Overridden Methods for Files
9.5. Overridden postCreate() Method
9.6. Adding Commands to the Toolbar
9.7. Loading Element Definitions
9.8.