freemind.view.mindmapview
Class NodeViewLayoutAdapter

java.lang.Object
  extended by freemind.view.mindmapview.NodeViewLayoutAdapter
All Implemented Interfaces:
NodeViewLayout, java.awt.LayoutManager
Direct Known Subclasses:
LeftNodeViewLayout, RightNodeViewLayout, VerticalRootNodeViewLayout

public abstract class NodeViewLayoutAdapter
extends java.lang.Object
implements NodeViewLayout


Field Summary
protected  int LISTENER_VIEW_WIDTH
           
protected  java.awt.Point location
           
 
Constructor Summary
NodeViewLayoutAdapter()
           
 
Method Summary
 void addLayoutComponent(java.lang.String arg0, java.awt.Component arg1)
           
protected  int getChildContentHeight(boolean isLeft)
           
protected  int getChildCount()
           
protected  int getChildHorizontalShift()
           
protected  int getChildVerticalShift(boolean isLeft)
           
protected  javax.swing.JComponent getContent()
           
protected  MindMapNode getModel()
           
protected  NodeView getView()
           
protected abstract  void layout()
           
 void layoutContainer(java.awt.Container c)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container arg0)
           
protected  void placeLeftChildren(int childVerticalShift)
           
protected  void placeRightChildren(int childVerticalShift)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container c)
           
 void removeLayoutComponent(java.awt.Component arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface freemind.view.mindmapview.NodeViewLayout
getMainViewInPoint, getMainViewOutPoint, layoutNodeMotionListenerView
 

Field Detail

LISTENER_VIEW_WIDTH

protected final int LISTENER_VIEW_WIDTH
See Also:
Constant Field Values

location

protected java.awt.Point location
Constructor Detail

NodeViewLayoutAdapter

public NodeViewLayoutAdapter()
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String arg0,
                               java.awt.Component arg1)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component arg0)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container arg0)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container c)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container c)
Specified by:
layoutContainer in interface java.awt.LayoutManager

layout

protected abstract void layout()

getView

protected NodeView getView()
Returns:
Returns the view.

getModel

protected MindMapNode getModel()
Returns:
Returns the model.

getChildCount

protected int getChildCount()
Returns:
Returns the childCount.

getContent

protected javax.swing.JComponent getContent()
Returns:
Returns the content.

getChildContentHeight

protected int getChildContentHeight(boolean isLeft)

getChildVerticalShift

protected int getChildVerticalShift(boolean isLeft)

getChildHorizontalShift

protected int getChildHorizontalShift()

placeRightChildren

protected void placeRightChildren(int childVerticalShift)

placeLeftChildren

protected void placeLeftChildren(int childVerticalShift)