Class DefaultSelectionIterator
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.emf.common.util.AbstractEList<E>
org.eclipse.emf.common.util.BasicEList<Iterator<? extends E>>
org.eclipse.emf.common.util.AbstractTreeIterator<KGraphElement>
de.cau.cs.kieler.klighd.kgraph.util.SelectionIterator
de.cau.cs.kieler.klighd.kgraph.util.DefaultSelectionIterator
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Iterator<? extends KGraphElement>>,Collection<Iterator<? extends KGraphElement>>,Iterator<KGraphElement>,List<Iterator<? extends KGraphElement>>,RandomAccess,org.eclipse.emf.common.util.EList<Iterator<? extends KGraphElement>>,org.eclipse.emf.common.util.TreeIterator<KGraphElement>
The default
SelectionIterator for usage in
KGraphUtil.getConnectedElements(...).
The iterator follows all edges transitively connected to the initial edge. Optionally the
iterator can also include the corresponding ports in the selection.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList
org.eclipse.emf.common.util.BasicEList.BasicIndexOutOfBoundsException, org.eclipse.emf.common.util.BasicEList.EIterator<E1 extends Object>, org.eclipse.emf.common.util.BasicEList.EListIterator<E1 extends Object>, org.eclipse.emf.common.util.BasicEList.FastCompare<E extends Object>, org.eclipse.emf.common.util.BasicEList.NonResolvingEIterator<E1 extends Object>, org.eclipse.emf.common.util.BasicEList.NonResolvingEListIterator<E1 extends Object>, org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E extends Object> -
Field Summary
Fields inherited from class de.cau.cs.kieler.klighd.kgraph.util.SelectionIterator
visitedFields inherited from class org.eclipse.emf.common.util.AbstractTreeIterator
includeRoot, nextPruneIterator, nextRemoveIterator, objectFields inherited from class org.eclipse.emf.common.util.BasicEList
data, sizeFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSelectionIterator(KEdge edge, boolean addPorts, boolean followEdgeDirection) Creates a new iterator which can optionally include ports in its selection and can be configured to either iterate towards the tail or the head of the selectedKEdge. -
Method Summary
Modifier and TypeMethodDescriptionprotected Iterator<? extends KGraphElement>getChildren(Object object) Methods inherited from class de.cau.cs.kieler.klighd.kgraph.util.SelectionIterator
attachVisitedSetMethods inherited from class org.eclipse.emf.common.util.AbstractTreeIterator
hasNext, next, prune, removeMethods inherited from class org.eclipse.emf.common.util.BasicEList
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clear, clone, contains, data, get, grow, indexOf, isEmpty, lastIndexOf, move, newData, primitiveGet, remove, setData, setUnique, shrink, size, toArray, toArrayMethods inherited from class org.eclipse.emf.common.util.AbstractEList
add, add, addAll, addAll, basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, iterator, listIterator, listIterator, move, remove, removeAll, resolve, retainAll, set, toString, useEquals, validateMethods inherited from class java.util.AbstractList
removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface java.util.List
containsAll, replaceAll, sort, spliterator, subList
-
Constructor Details
-
DefaultSelectionIterator
Creates a new iterator which can optionally include ports in its selection and can be configured to either iterate towards the tail or the head of the selectedKEdge.- Parameters:
edge- the edge to start withaddPorts- flag to determine whether ports should be included in the selectionfollowEdgeDirection- flag whether the iterator should iterate towards the head or the tail of the edge
-
-
Method Details
-
getChildren
- Specified by:
getChildrenin classorg.eclipse.emf.common.util.AbstractTreeIterator<KGraphElement>
-