org.bdgp.cv.datamodel
Interface DAGNode
- All Superinterfaces:
- java.lang.Cloneable, Comparable, java.lang.Comparable, ComparisonConstants, javax.swing.tree.TreeNode
- All Known Subinterfaces:
- MutableDAGNode
- public interface DAGNode
- extends javax.swing.tree.TreeNode, java.lang.Cloneable, Comparable
Defines the requirements for a node in a DAG. DAGNodes can also be used
as tree nodes, as long as only one parent is displayed at a time.
Method Summary |
java.lang.Object |
clone()
|
DAGNode |
getDAGChildAt(int childIndex)
Returns the child TreeNode at index
childIndex as a DAGNode. |
DAGNode |
getParentAt(int parentIndex)
Returns the parent DAGNode at index
parentIndex . |
int |
getParentCount()
Returns the number of parent DAGNode s the receiver
contains. |
java.util.Enumeration |
parents()
Returns the parents of the reciever as an Enumeration. |
Methods inherited from interface javax.swing.tree.TreeNode |
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
getDAGChildAt
public DAGNode getDAGChildAt(int childIndex)
- Returns the child
TreeNode
at index
childIndex
as a DAGNode.
parents
public java.util.Enumeration parents()
- Returns the parents of the reciever as an Enumeration.
getParentAt
public DAGNode getParentAt(int parentIndex)
- Returns the parent
DAGNode
at index
parentIndex
.
getParentCount
public int getParentCount()
- Returns the number of parent
DAGNode
s the receiver
contains.
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object