beowulf.gui
Class JNodeFactory

java.lang.Object
  extended bybeowulf.gui.JNodeFactory

public class JNodeFactory
extends Object

This class is a simple factory class that simply produces JNodes for a node in a graph. It is used in conjunction with a JGraph and allows for customization of which type of JNode to use. In order to tell a JGraph to use a certain type of JNode, a subclass of JNodeFactory must be made and the .produceJNode(Object) method must be overridden. Finally, this factory must then be associated to the JGraph.

Version:
1.0 - Feb 20, 2004
Author:
Andy Scukanec - (ags at cs dot cornell dot edu)

Constructor Summary
JNodeFactory()
           
 
Method Summary
 JNode produceJNode(Object node)
          Creates and returns a JNode that represents the incoming parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNodeFactory

public JNodeFactory()
Method Detail

produceJNode

public JNode produceJNode(Object node)
Creates and returns a JNode that represents the incoming parameter.

Parameters:
node - The node in the graph that will be represented by a JNode.
Returns:
The JNode representing the node in the graph.