N - The node class for the graphE - The edge class for the graphpublic interface GraphDisplay<N,E>
extends java.awt.ItemSelectable
| Modifier and Type | Method and Description |
|---|---|
Graph<N,E> |
getGraph()
Get the graph assigned to this display
|
E |
getSelectedEdge()
Gets the current selected edge.
|
N |
getSelectedNode()
Gets the current selected node.
|
void |
selectEdge(E edge)
Programatically sets the currently selected edge
|
void |
selectNode(N node)
Programatically sets the currently selected node
|
void |
setGraph(Graph<N,E> graph)
Set the graph to be displayed
|
void |
updateGraph()
Update the currently displayed graph.
|
E getSelectedEdge()
N getSelectedNode()
void selectEdge(E edge)
edge - the currently selected edge, or null if no edge is selectedvoid selectNode(N node)
node - the node to be selectedvoid setGraph(Graph<N,E> graph)
graph - the graph to be displayedvoid updateGraph()