|
Cytoscape 2.5.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.dialogs.plugins.TreeNode
public class TreeNode
Constructor Summary | |
---|---|
TreeNode(PluginInfo obj)
Creates a TreeNode with given PluginInfo object, no parent and does not allow children. |
|
TreeNode(PluginInfo obj,
boolean allowsChildren)
Creates a TreeNode with given PluginInfo object, no parent and allows children if specified. |
|
TreeNode(String Title)
Creates a TreeNode with given title, no parent and allows children. |
|
TreeNode(String Title,
boolean allowsChildren)
Creates a TreeNode with given title, no parent and allows children if specified. |
Method Summary | |
---|---|
void |
addChild(TreeNode newChild)
Adds newChild to this node if children are allowed. |
void |
addChildren(TreeNode[] children)
Adds all children to the child list of this node if children are allowed. |
void |
addObject(PluginInfo info)
Adds a PluginInfo object to this node. |
TreeNode |
getChildAt(int index)
Get child from this node's child list at given index. |
int |
getChildCount()
Get total number of children for this node |
Vector<TreeNode> |
getChildren()
Gets the list of children for this node |
int |
getIndexOfChild(TreeNode child)
Gets the index of child from this node's child list. |
int |
getLeafCount()
Gets the total (recursively) of all leaves under this node. |
PluginInfo |
getObject()
Gets the PluginInfo object of this node. |
TreeNode |
getParent()
Gets the parent of this node |
String |
getTitle()
Gets the title of this node. |
int |
getTreeCount()
Gets the total (recursively) of all child nodes that are not leaves. |
boolean |
isLeaf()
Returns true if this node has no children or does not allow them. |
boolean |
isNodeAncestor(TreeNode otherNode)
Returns true if otherNode is an ancestor of this node. |
void |
removeChild(TreeNode child)
Removes child from this node. |
void |
removeChildren()
Clears the list of children for this node. |
void |
setParent(TreeNode newParent)
Sets this nodes parent to newParent, child list does not change. |
String |
toString()
Gets string representation of this node as 'title: total leaves' |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TreeNode(String Title)
Title
- public TreeNode(String Title, boolean allowsChildren)
Title
- allowsChildren
- public TreeNode(PluginInfo obj)
obj
- public TreeNode(PluginInfo obj, boolean allowsChildren)
obj
- allowsChildren
- Method Detail |
---|
public boolean isLeaf()
public boolean isNodeAncestor(TreeNode otherNode)
otherNode
-
public void setParent(TreeNode newParent)
newParent
- public TreeNode getParent()
public void addObject(PluginInfo info)
info
- public void addChild(TreeNode newChild)
newChild
- public void removeChild(TreeNode child)
child
- public void removeChildren()
public void addChildren(TreeNode[] children)
children
- public Vector<TreeNode> getChildren()
public int getChildCount()
public TreeNode getChildAt(int index)
index
-
public int getIndexOfChild(TreeNode child)
child
-
public int getTreeCount()
public int getLeafCount()
public String getTitle()
public PluginInfo getObject()
public String toString()
toString
in class Object
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |