freemind.view.mindmapview

Class MindMapLayout

Implemented Interfaces:
LayoutManager

public class MindMapLayout
extends java.lang.Object
implements LayoutManager

This class will Layout the Nodes and Edges of an MapView.

Constructor Summary

MindMapLayout(MapView map)

Method Summary

void
addLayoutComponent(String name, Component comp)
void
layout()
Make abolute positioning for all nodes providing that relative and heights are up to date.
void
layoutContainer(Container parent)
Dimension
minimumLayoutSize(Container parent)
Dimension
preferredLayoutSize(Container parent)
void
removeLayoutComponent(Component comp)
void
resizeMap(int outmostX)
protected void
updateTreeHeightFromChildren(NodeView node)

Constructor Details

MindMapLayout

public MindMapLayout(MapView map)

Method Details

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)