接口 LayoutEngine
- 所有已知实现类:
HierarchicalBCEngine
public interface LayoutEngine
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.
- 版本:
- $Revision: 1.6 $ - 24 Apr 2003 - Initial version (Ashraf M. Kibriya)
- 作者:
- Ashraf M. Kibriya (amk14@cs.waikato.ac.nz)
-
方法概要
修饰符和类型方法说明void
This method adds a LayoutCompleteEventListener to the LayoutEngine.void
This fires a LayoutCompleteEvent once a layout has been completed.This method returns the extra controls panel for the LayoutEngine, if there is any.getNodes()
give access to set of graph nodesThis method returns the progress bar for the LayoutEngine, which shows the progress of the layout process, if it takes a while to layout the graphvoid
This method lays out the graph for better visualizationvoid
This method removes a LayoutCompleteEventListener from the LayoutEngine.void
setNodesEdges
(FastVector nodes, FastVector edges) This method sets the nodes and edges vectors of the LayoutEnginevoid
setNodeSize
(int nodeWidth, int nodeHeight) This method sets the allowed size of the node
-
方法详细资料
-
layoutGraph
void layoutGraph()This method lays out the graph for better visualization -
setNodesEdges
This method sets the nodes and edges vectors of the LayoutEngine -
setNodeSize
void setNodeSize(int nodeWidth, int nodeHeight) This method sets the allowed size of the node -
getNodes
FastVector getNodes()give access to set of graph nodes -
getControlPanel
JPanel getControlPanel()This method returns the extra controls panel for the LayoutEngine, if there is any. -
getProgressBar
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 -
addLayoutCompleteEventListener
This method adds a LayoutCompleteEventListener to the LayoutEngine.- 参数:
e
- - The LayoutCompleteEventListener to add
-
removeLayoutCompleteEventListener
This method removes a LayoutCompleteEventListener from the LayoutEngine.- 参数:
e
- - The LayoutCompleteEventListener to remove.
-
fireLayoutCompleteEvent
This fires a LayoutCompleteEvent once a layout has been completed.
-