edgebundles.tree
Class TreeNode
- public class TreeNode
Title: Tree Node
Description: A class to store properties of a given node in the visual tree
Copyright: Copyright (c) 2007
Company: TU Wien
- Version:
- 1.0
- Author:
- not attributable
TreeNode
public TreeNode(edgebundles.tree.TreeNode parentNode,
java.lang.String caption,
int id)
- constructs a node which parent is parentNode and caption is String
getCenter
public java.awt.Point getCenter()
- gets the position of the node on the screen (valid only after applying a tree layouting and visualisation algorithm)
setCenter
public void setCenter(int x,
int y)
- assigns the location of of the node on the screen
getParent
public edgebundles.tree.TreeNode getParent()
- returns the parent node of this node.
getChildrenCount
public int getChildrenCount()
- returns the number of children of this node
getChild
public edgebundles.tree.TreeNode getChild(int i)
- returns the ith child of this node
getAdjacentNodesCount
public int getAdjacentNodesCount()
- returns the number of adjacent nodes of this node
getAdjacentNode
public edgebundles.tree.TreeNode getAdjacentNode(int i)
- returns the ith adjacent node of this node
getId
public int getId()
- returns the id of this node (unique number assigned at creation)