|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode cytoscape.dialogs.plugins.TreeNode
public class TreeNode
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
TreeNode(DownloadableInfo obj)
Creates a TreeNode with given PluginInfo object, no parent and does not allow children. |
|
TreeNode(DownloadableInfo 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(DownloadableInfo 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. |
DownloadableInfo |
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. |
boolean |
isVisible()
|
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. |
void |
setVisible(boolean vis)
|
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(DownloadableInfo obj)
obj
- public TreeNode(DownloadableInfo obj, boolean allowsChildren)
obj
- allowsChildren
- Method Detail |
---|
public void setVisible(boolean vis)
public boolean isVisible()
public boolean isLeaf()
isLeaf
in interface TreeNode
isLeaf
in class DefaultMutableTreeNode
public boolean isNodeAncestor(TreeNode otherNode)
otherNode
-
public void setParent(TreeNode newParent)
newParent
- public TreeNode getParent()
getParent
in interface TreeNode
getParent
in class DefaultMutableTreeNode
public void addObject(DownloadableInfo 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()
getChildCount
in interface TreeNode
getChildCount
in class DefaultMutableTreeNode
public TreeNode getChildAt(int index)
getChildAt
in interface TreeNode
getChildAt
in class DefaultMutableTreeNode
index
-
public int getIndexOfChild(TreeNode child)
child
-
public int getTreeCount()
public int getLeafCount()
getLeafCount
in class DefaultMutableTreeNode
public String getTitle()
public DownloadableInfo getObject()
public String toString()
toString
in class DefaultMutableTreeNode
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |