All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Graph.NodeFactory

java.lang.Object
   |
   +----Graph.NodeFactory

public class NodeFactory
extends Object
implements Serializable
Creates and adds new Node to the hash table of nodes (located in @see GraphDisplay), if possible.

See Also:
Node, GraphDisplay

Constructor Index

 o NodeFactory()

Method Index

 o addNode(int, int)
 o getNodePreferredSize()
 o newNode(String)
 o setGraphDisplay(GraphDisplay)
 o setNodeType(String)

Constructors

 o NodeFactory
 public NodeFactory()

Methods

 o addNode
 public boolean addNode(int x,
                        int y)
 o getNodePreferredSize
 public Dimension getNodePreferredSize()
 o newNode
 public Node newNode(String type)
 o setGraphDisplay
 public void setGraphDisplay(GraphDisplay graphDisplay)
 o setNodeType
 public void setNodeType(String type)

All Packages  Class Hierarchy  This Package  Previous  Next  Index