org.bdgp.cv.datamodel
Interface MutableDAGNode

All Superinterfaces:
java.lang.Cloneable, Comparable, java.lang.Comparable, ComparisonConstants, DAGNode, javax.swing.tree.MutableTreeNode, javax.swing.undo.StateEditable, javax.swing.tree.TreeNode
All Known Implementing Classes:
DefaultMutableDAGNode

public interface MutableDAGNode
extends javax.swing.tree.MutableTreeNode, DAGNode, javax.swing.undo.StateEditable

Defines the requirements for a DAG node object that can change -- by adding or removing parent or child nodes, or by changing the contents of a user object stored in the node.


Fields inherited from interface org.bdgp.util.ComparisonConstants
EQUAL_TO, GREATER_THAN, LESS_THAN
 
Fields inherited from interface javax.swing.undo.StateEditable
RCSID
 
Method Summary
 void insertParent(MutableDAGNode parent, int index)
          Adds parent to the receiver at index.
 void removeAllChildren()
          Removes all children from the receiver, and deletes receiver from the child nodes' parent lists
 void removeAllParents()
          Removes all parents from the receiver
 void removeParent(int index)
          Removes the parent at index from the receiver.
 void removeParent(MutableDAGNode parent)
          Removes parent node from the receiver.
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 
Methods inherited from interface org.bdgp.cv.datamodel.DAGNode
clone, getDAGChildAt, getParentAt, getParentCount, parents
 
Methods inherited from interface org.bdgp.util.Comparable
compareTo
 
Methods inherited from interface javax.swing.undo.StateEditable
restoreState, storeState
 

Method Detail

insertParent

public void insertParent(MutableDAGNode parent,
                         int index)
Adds parent to the receiver at index.

removeParent

public void removeParent(int index)
Removes the parent at index from the receiver.

removeParent

public void removeParent(MutableDAGNode parent)
Removes parent node from the receiver.

removeAllParents

public void removeAllParents()
Removes all parents from the receiver

removeAllChildren

public void removeAllChildren()
Removes all children from the receiver, and deletes receiver from the child nodes' parent lists