| |
|
| org.jdesktop.j3dedit.treelayout.TreeNode
All known Subclasses: org.jdesktop.j3dedit.treelayout.DefaultTreeNode,
TreeNode | public interface TreeNode (Code) | | This interface provides all the methods required to allow TreeLayout
to automatically layout the tree diagram.
author: Paul Byrne version: $Id: TreeNode.java,v 1.1 2005/04/20 22:21:33 paulby Exp $ |
addChild | public void addChild(TreeNode child)(Code) | | Add child as the last child of this node
|
getChild | public TreeNode getChild(int index)(Code) | | Return the child at the given index
|
getComputedPosition | public Point getComputedPosition()(Code) | | |
getContainer | public TreePanel getContainer()(Code) | | Return the container which currently contains this node
|
getLink | public Link getLink()(Code) | | Get the link that attaches all the children
|
getLinkEntry | public Point getLinkEntry()(Code) | | Return the point where the link line enters the node
|
getLinkExit | public Point getLinkExit()(Code) | | Return the point where the link line leaves the node
|
getMinimumSize | public Dimension getMinimumSize()(Code) | | Returns the mimimum dimension of this node, this is the
smallest enclosing area around the drawing of the node
|
getNodeCount | public int getNodeCount()(Code) | | Returns the number of nodes in the subtree starting with this node
|
getParent | public TreeNode getParent()(Code) | | Return the parent of this node
|
getPreferredSize | public Dimension getPreferredSize()(Code) | | Returns the preferred dimension of the node
This includes the padding around the edge
ie the space between this node it's sibling on the right
|
getSubtreeSize | public Rectangle getSubtreeSize()(Code) | | Return the dimension and position of the smallest rectangle
that encolses this node and all it's subtree
|
numChildren | public int numChildren()(Code) | | Return the number of children of this node
|
paint | public void paint(Graphics g)(Code) | | Draw this node and it's subgraph
|
picked | public boolean picked(int x, int y)(Code) | | Returns true if coordinates are within the area of the
node
|
removeChild | public void removeChild(TreeNode child)(Code) | | Remove the specified child from this node
|
setComputedPosition | public void setComputedPosition(Point pos)(Code) | | |
setContainer | public void setContainer(TreePanel panel)(Code) | | Tell this node which panel it is contained within
Traverse all the children on this node and set their container
|
setLink | public void setLink(Link link)(Code) | | Set the link that attaches all the children
|
setParent | public void setParent(TreeNode parent)(Code) | | Set the parent of this node
|
|
|
|