freemind.view.mindmapview
Class NodeViewLayoutAdapter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LISTENER_VIEW_WIDTH
protected final int LISTENER_VIEW_WIDTH
- See Also:
- Constant Field Values
location
protected java.awt.Point location
NodeViewLayoutAdapter
public NodeViewLayoutAdapter()
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)