public interface LayoutEngine
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutCompleteEventListener(LayoutCompleteEventListener e)
This method adds a LayoutCompleteEventListener to the LayoutEngine.
|
void |
fireLayoutCompleteEvent(LayoutCompleteEvent e)
This fires a LayoutCompleteEvent once a layout has been completed.
|
JPanel |
getControlPanel()
This method returns the extra controls panel for the LayoutEngine, if there
is any.
|
ArrayList<GraphNode> |
getNodes()
give access to set of graph nodes
|
JProgressBar |
getProgressBar()
This method returns the progress bar for the LayoutEngine, which shows the
progress of the layout process, if it takes a while to layout the graph
|
void |
layoutGraph()
This method lays out the graph for better visualization
|
void |
removeLayoutCompleteEventListener(LayoutCompleteEventListener e)
This method removes a LayoutCompleteEventListener from the LayoutEngine.
|
void |
setNodesEdges(ArrayList<GraphNode> nodes,
ArrayList<GraphEdge> edges)
This method sets the nodes and edges vectors of the LayoutEngine
|
void |
setNodeSize(int nodeWidth,
int nodeHeight)
This method sets the allowed size of the node
|
void layoutGraph()
void setNodesEdges(ArrayList<GraphNode> nodes, ArrayList<GraphEdge> edges)
void setNodeSize(int nodeWidth,
int nodeHeight)
JPanel getControlPanel()
JProgressBar getProgressBar()
void addLayoutCompleteEventListener(LayoutCompleteEventListener e)
e - - The LayoutCompleteEventListener to addvoid removeLayoutCompleteEventListener(LayoutCompleteEventListener e)
e - - The LayoutCompleteEventListener to remove.void fireLayoutCompleteEvent(LayoutCompleteEvent e)
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.