All Packages Class Hierarchy This Package Previous Next Index
Class Graph.GraphDisplay
java.lang.Object
|
+----Graph.GraphDisplay
- public class GraphDisplay
- extends Object
- implements Serializable
This class is where all of the important information
is stored. There are two hash tables for nodes and edges.
There is also an adaptor that is used for forwarding events
from objects in the GraphPanel (and GraphPanel, itself),
to the current Collector of the events.
Needless to say, most of the action happens "in" this class.
- See Also:
- GraphPanel, GraphEventsAdaptor, GraphEventsCollector, NodeFactory, EdgeFactory
-
GraphDisplay(GraphEventsCollector)
- GraphDisplay constructor comment.
-
clear()
-
-
displayErrorStatus(String)
-
-
getEdgeFactory()
-
-
getEventsAdaptor()
-
-
getEventsCollector()
-
-
getGraphPanel()
-
-
getNodeFactory()
-
-
getScrollPane()
-
-
paintEdges()
-
Draws the edges
-
setEventsCollector(GraphEventsCollector)
-
-
setStatusLine(String)
-
-
toolSelected(String, Object)
-
Used for communication between toolbox and the graphDisplay
GraphDisplay
public GraphDisplay(GraphEventsCollector gec)
- GraphDisplay constructor comment.
clear
public void clear()
displayErrorStatus
public void displayErrorStatus(String status)
getEdgeFactory
public EdgeFactory getEdgeFactory()
getEventsAdaptor
public GraphEventsAdaptor getEventsAdaptor()
getEventsCollector
public GraphEventsCollector getEventsCollector()
getGraphPanel
public Panel getGraphPanel()
getNodeFactory
public NodeFactory getNodeFactory()
getScrollPane
public ScrollPane getScrollPane()
paintEdges
public void paintEdges()
- Draws the edges
setEventsCollector
public void setEventsCollector(GraphEventsCollector gec)
setStatusLine
public void setStatusLine(String status)
toolSelected
public void toolSelected(String toolBox,
Object tool)
- Used for communication between toolbox and the graphDisplay
All Packages Class Hierarchy This Package Previous Next Index