beowulf.gui
Class JNodeFactory
java.lang.Object
beowulf.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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNodeFactory
public JNodeFactory()
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.