freemind.view.mindmapview

Class MindMapLayout

public class MindMapLayout extends Object implements LayoutManager

This class will Layout the Nodes and Edges of an MapView.
Constructor Summary
MindMapLayout(MapView map)
Method Summary
voidaddLayoutComponent(String name, Component comp)
voidlayout()
Make abolute positioning for all nodes providing that relative and heights are up to date.
voidlayoutContainer(Container parent)
DimensionminimumLayoutSize(Container parent)
DimensionpreferredLayoutSize(Container parent)
voidremoveLayoutComponent(Component comp)
voidresizeMap(int outmostX)
protected voidupdateTreeHeightFromChildren(NodeView node)

Constructor Detail

MindMapLayout

public MindMapLayout(MapView map)

Method Detail

addLayoutComponent

public void addLayoutComponent(String name, Component comp)

layout

public void layout()
Make abolute positioning for all nodes providing that relative and heights are up to date.

layoutContainer

public void layoutContainer(Container parent)

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)

removeLayoutComponent

public void removeLayoutComponent(Component comp)

resizeMap

public void resizeMap(int outmostX)

updateTreeHeightFromChildren

protected void updateTreeHeightFromChildren(NodeView node)