|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface class has been added to facilitate the addition of other layout engines to this package. Any class that wants to lay out a graph should implement this interface.
Method Summary | |
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. |
javax.swing.JPanel |
getControlPanel()
This method returns the extra controls panel for the LayoutEngine, if there is any. |
javax.swing.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(FastVector nodes,
FastVector 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 |
Method Detail |
public void layoutGraph()
public void setNodesEdges(FastVector nodes, FastVector edges)
public void setNodeSize(int nodeWidth, int nodeHeight)
public javax.swing.JPanel getControlPanel()
public javax.swing.JProgressBar getProgressBar()
public void addLayoutCompleteEventListener(LayoutCompleteEventListener e)
e
- - The LayoutCompleteEventListener to addpublic void removeLayoutCompleteEventListener(LayoutCompleteEventListener e)
e
- - The LayoutCompleteEventListener to remove.public void fireLayoutCompleteEvent(LayoutCompleteEvent e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London