Package org.eclipse.draw2d.graph
Class EdgeList
- All Implemented Interfaces:
- Serializable,- Cloneable,- Iterable<Edge>,- Collection<Edge>,- List<Edge>,- RandomAccess,- SequencedCollection<Edge>
A list of 
Edges.- Since:
- 2.1.2
- See Also:
- 
Field SummaryFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetEdge(int index) Deprecated, for removal: This API element is subject to removal in a future version.intgetSlack()For internal use only.intgetSourceIndex(int i) For intrenal use only.intgetTargetIndex(int i) For internal use only.intFor internal use only.booleanFor internal use onlyvoidresetFlags(boolean resetTree) For internal use only.voidsetFlags(boolean value) For internal use only.Methods inherited from class java.util.ArrayListadd, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollectioncontainsAll, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, stream, toArrayMethods inherited from interface java.util.ListcontainsAll, reversed
- 
Constructor Details- 
EdgeListpublic EdgeList()
 
- 
- 
Method Details- 
getEdgeDeprecated, for removal: This API element is subject to removal in a future version.use UseArrayList.get(int)instead.Returns the edge for the given index.- Parameters:
- index- the index of the requested edge
- Returns:
- the edge at the given index
 
- 
getSourceIndexpublic int getSourceIndex(int i) For intrenal use only.- Parameters:
- i- and index
- Returns:
- a value
 
- 
getTargetIndexpublic int getTargetIndex(int i) For internal use only.- Parameters:
- i- an index
- Returns:
- a value
 
- 
getSlackpublic int getSlack()For internal use only.- Returns:
- the minimum slack for this edge list
 
- 
getWeightpublic int getWeight()For internal use only.- Returns:
- the total weight of all edges
 
- 
isCompletelyFlaggedpublic boolean isCompletelyFlagged()For internal use only- Returns:
- trueif completely flagged
 
- 
resetFlagspublic void resetFlags(boolean resetTree) For internal use only. Resets all flags.- Parameters:
- resetTree- internal
 
- 
setFlagspublic void setFlags(boolean value) For internal use only.- Parameters:
- value- value
 
 
- 
ArrayList.get(int)instead.