diva.graph.tutorial
Class NodeRendererTutorial
java.lang.Object
diva.graph.tutorial.NodeRendererTutorial
public class NodeRendererTutorial
- extends java.lang.Object
This tutorial shows how to customize the look of
the nodes based on the semantic properties of the
nodes. It creates a graph which has a bunch of
nodes with user objects of different types, and
renders these nodes according to their types.
The rendering looks like this:
- String => a blue circle
- Set => a red circle
- Integer => an orange square
- Default => a grey circle
- Version:
- $Id: NodeRendererTutorial.java 47480 2007-12-06 18:25:06Z cxh $
- Author:
- Michael Shilman
- Accepted Rating:
Method Summary |
static void |
main(java.lang.String[] argv)
Instantiate a new tutorial window and
display it. |
MutableGraphModel |
makeTypedModel()
Construct an interesting graph model with nodes that
have user objects of type {String, Set, Integer} |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeRendererTutorial
private NodeRendererTutorial(AppContext context)
main
public static void main(java.lang.String[] argv)
- Instantiate a new tutorial window and
display it.
makeTypedModel
public MutableGraphModel makeTypedModel()
- Construct an interesting graph model with nodes that
have user objects of type {String, Set, Integer}