|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.embl.ebi.escience.baclava.iterator.LockStepIteratorNode
public class LockStepIteratorNode
A DefaultMutableTreeNode implementing ResumableIterator which wraps a LockStepIterator.
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
EMPTY_ENUMERATION |
| Constructor Summary | |
|---|---|
LockStepIteratorNode()
Create a new LockStepIteratorNode, calls to insert(...) will add iterators to the dot product. |
|
| Method Summary | |
|---|---|
boolean |
getAllowsChildren()
LockStepIteratorNode objects pull iterators from their children, therefore always allow them. |
int[] |
getCurrentLocation()
Get the current location |
boolean |
hasNext()
Delegates to contained LockStepIterator |
void |
insert(javax.swing.tree.MutableTreeNode node,
int index)
Trap any calls to add children and forcibly reset everything |
boolean |
isLeaf()
A LockStepIteratorNode requires children to be functional and is therefore never a leaf. |
java.lang.Object |
next()
Return a Map of named objects derived from any iterator nodes attached to this one as children, the iteration strategy is derived from the underlying LockStepIterator which performs a cross product of all available sub-iterators |
void |
remove()
Calls to the remove operation are not allowed from this iterator |
void |
reset()
Delegates to contained LockStepIterator |
int |
size()
Delegates to contained LockStepIterator |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LockStepIteratorNode()
| Method Detail |
|---|
public java.lang.Object next()
next in interface java.util.Iteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic void reset()
reset in interface ResumableIteratorpublic int size()
size in interface ResumableIterator
public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException
public void insert(javax.swing.tree.MutableTreeNode node,
int index)
insert in interface javax.swing.tree.MutableTreeNodeinsert in class javax.swing.tree.DefaultMutableTreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class javax.swing.tree.DefaultMutableTreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class javax.swing.tree.DefaultMutableTreeNodepublic int[] getCurrentLocation()
getCurrentLocation in interface ResumableIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||