Chapter 3. Hello Node

Table of Contents

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

This tutorial provides Java Application Programmers with their first exposure to the Tensegrity Graph Framework. It is designed with simplicity in mind, so that you may quickly learn about the basic features of the framework as well as the most important terms in the software framework domain space.

We therefore recommend that you read this tutorial and run the tutorial example before moving on to any other tutorials in this manual.

Tutorial At A Glance

The table below gives you some important information about this tutorial.

Table 3.1. Tutorial Aspects

Tutorial AspectTutorial Description
Approximate Duration20 Minutes
Expected Outcome An application displaying a view with two nodes connected to each each other. This example gives the Java Application Programmer an initial exposure to the following classes:
  • GraphModelFactory

  • GraphViewFactory

  • GraphObjectContainer

  • VisualGraphObjectContainer

  • Graph

  • VisualGraphView

  • Node

  • VisualNode

  • Edge

  • VisualEdge

Source FilesThe tutorial examples come with two source packages containing the java and configuration files needed to compile and run them. These are “com.tensegrity.firststeps.hellonode” and “com.tensegrity.firststeps.swt.hellonode” respectively for the AWT/Swing-based and SWT-based examples.
Creating FilesNot applicable in this tutorial
Modifying FilesNot applicable in this tutorial