Treeviz 0.37 2010-10-17

ch.randelshofer.tree.demo
Class ManyEyesNode

java.lang.Object
  extended by ch.randelshofer.tree.demo.ManyEyesNode
All Implemented Interfaces:
TreeNode
Direct Known Subclasses:
ManyEyesCompositeNode

public class ManyEyesNode
extends java.lang.Object
implements TreeNode

ManyEyesNode.

Version:
1.0 2009-02-07 Created.
Author:
Werner Randelshofer, Staldenmattweg 2, CH-6405 Immensee

Field Summary
protected  ManyEyesCompositeNode parent
           
 
Constructor Summary
ManyEyesNode(java.lang.String[] values)
           
 
Method Summary
 java.util.List<TreeNode> children()
          Returns the children of this node in a List.
 boolean getAllowsChildren()
          Returns true, if this node can not have children.
 java.lang.String getName()
           
 ManyEyesCompositeNode getParent()
           
 java.lang.String[] getValues()
           
 long getWeight()
           
 void setName(java.lang.String newValue)
           
 void setWeight(long newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected ManyEyesCompositeNode parent
Constructor Detail

ManyEyesNode

public ManyEyesNode(java.lang.String[] values)
Method Detail

getValues

public java.lang.String[] getValues()

getParent

public ManyEyesCompositeNode getParent()

setName

public void setName(java.lang.String newValue)

getName

public java.lang.String getName()

children

public java.util.List<TreeNode> children()
Description copied from interface: TreeNode
Returns the children of this node in a List. If this object does not have children, it returns an empty List.

Specified by:
children in interface TreeNode
Returns:
the children of this node

getAllowsChildren

public boolean getAllowsChildren()
Description copied from interface: TreeNode
Returns true, if this node can not have children. This is used to make a distinction between composite nodes which have no children, and leaf nodes which can have no children.

Specified by:
getAllowsChildren in interface TreeNode

getWeight

public long getWeight()

setWeight

public void setWeight(long newValue)

Copyright 2007-2008 (c) Werner Randelshofer.
All rights reserved.