Package | com.yworks.yfiles.base |
Class | public class EdgeList |
Inheritance | EdgeList YList YObject Object |
See also
Method | Defined By | ||
---|---|---|---|
EdgeList(init:Boolean = true)
Creates an empty edge list. | EdgeList | ||
addAll(collection:Collection):Boolean
Appends all elements provided by the given collection to this list. | YList | ||
addAllAt(index:int, c:Collection):Boolean | YList | ||
addAllFromCursor(c:YCursor):void
Appends all elements provided by the given cursor to this list. | YList | ||
Inserts the given object at the head of this list. | YList | ||
addFirstCell(cell:ListCell):void
Adds a formerly removed ListCell object at the head of this list. | YList | ||
addItem(o:Object):Boolean
Same as addLast(). | YList | ||
addItemAt(index:int, element:Object):void | YList | ||
Inserts the given object at the tail of this list. | YList | ||
addLastCell(cell:ListCell):void
Adds a formerly removed ListCell object at the tail of this list. | YList | ||
clear():void
Removes all elements from this list. | YList | ||
containsAll(collection:Collection):Boolean
Whether or not this list contains all the elements in the given collection. | YList | ||
containsItem(o:Object):Boolean
Whether or not this list contains the given element. | YList | ||
Returns a cursor for this list. | YList | ||
Returns the cyclic predecessor cell of the given list cell. | YList | ||
Returns the cyclic successor cell of the given list cell. | YList | ||
Returns an edge cursor for this edge list. | EdgeList | ||
elementAt(i:int):Object
Returns the i-th element of this list. | YList | ||
equals(other:Object):Boolean [override] | YList | ||
Returns the com.yworks.yfiles.base.ListCell where object o is stored. | YList | ||
first():Object
Returns the first element of this list. | YList | ||
Returns the first cell of this list. | YList | ||
Returns the first edge in this list, or null when the list is empty. | EdgeList | ||
Gets the cell at the given index. | YList | ||
getClass():Class [override] | EdgeList | ||
Returns the element stored in the given list cell. | YList | ||
getItemAt(index:int):Object | YList | ||
hashCode():int [override] | YList | ||
indexOf(obj:Object):int
Returns the zero-based index of the given element in this list. | YList | ||
Inserts the given object into this list with respect to a given reference list cell. | YList | ||
Inserts the given object into this list with respect to a given reference list cell. | YList | ||
Inserts a formerly removed ListCell object into this list with respect to a given reference list cell. | YList | ||
Inserts a formerly removed ListCell object into this list with respect to a given reference list cell. | YList | ||
Returns an iterator for that list. | YList | ||
last():Object
Returns the last element of this list. | YList | ||
Returns the last cell of this list. | YList | ||
Returns the last edge in this list, or null when the list is empty. | EdgeList | ||
lastIndexOf(o:Object):int | YList | ||
YList | |||
listIterator2(index:int):ListIterator | YList | ||
[static]
Creates an empty edge list. | EdgeList | ||
[static]
Creates a list that is initialized with the elements provided by the given Iterator object. | EdgeList | ||
[static]
Creates a list that is initialized with a single edge provided. | EdgeList | ||
[static]
Creates a list that is initialized with the edges provided by the given EdgeCursor object. | EdgeList | ||
[static]
Creates a list that is initialized with an EdgeList. | EdgeList | ||
newEdgeList6(a:Vector.<Object>):EdgeList [static]
Creates a list that is initialized with the edges provided by the given array of edges. | EdgeList | ||
[static]
Creates a list that is initialized with those edges from the given EdgeCursor object for which the given data provider returns true upon calling its getBool (com.yworks.yfiles.base.DataProvider.getBool()) method. | EdgeList | ||
[static]
Creates an empty doubly linked list. | YList | ||
[static]
Creates a list that is initialized with the elements provided by the given array of objects. | YList | ||
[static]
Creates a list that is initialized with the elements provided by the given Collection object. | YList | ||
[static]
Creates a list that is initialized with the elements provided by the given Iterator object. | YList | ||
[static]
Creates a list that is initialized with the elements provided by the given YCursor object. | YList | ||
[static]
Creates a list that is initialized with those elements from the given YCursor object for which the given data provider returns true upon calling its getBool (com.yworks.yfiles.base.DataProvider.getBool()) method. | YList | ||
peek():Object
Equivalent to first(). | YList | ||
pop():Object
Removes the first element from this list and returns it. | YList | ||
Removes the first edge from this list and returns it. | EdgeList | ||
popLast():Object
Removes the last element from this list and returns it. | YList | ||
Returns the predecessor cell of the given list cell. | YList | ||
Equivalent to addFirst(). | YList | ||
removeAll(collection:Collection):Boolean
Removes the given collection of objects from this list. | YList | ||
Removes the element pointed to by the given YCursor object. | YList | ||
removeCell(c:ListCell):Object
Removes the given list cell, and hence the element stored in it, from this list. | YList | ||
removeItem(o:Object):Boolean
Removes the given object from this list. | YList | ||
removeItemAt(index:int):Object | YList | ||
retainAll(collection:Collection):Boolean
Retains only those elements in this list which are contained in the given collection. | YList | ||
reverse():void
Reverses the sequence of elements in this list. | YList | ||
Updates the element stored in the given list cell with the given object. | YList | ||
setItemAt(index:int, element:Object):Object | YList | ||
sort(comp:Comparator):void
Sorts the elements in this list according to the given comparator. | YList | ||
sort2():void
Sorts the elements in this list into ascending order, according to their natural ordering. | YList | ||
Transfers the contents of the given list to the end of this list. | YList | ||
YList | |||
Returns the successor cell of the given list cell. | YList | ||
toArray():Vector.<Object>
Returns an array representation of this list. | YList | ||
toArray2(a:Vector.<Object>):Vector.<Object>
Returns an array containing all list elements in the correct order. | YList | ||
toEdgeArray():Vector.<Object>
Returns an edge array containing all elements of this list in the canonical order. | EdgeList | ||
toString():String
Returns a string representation of this List. | YList |
Method | Defined By | ||
---|---|---|---|
initEdgeList1():void
Initializes this object. | EdgeList | ||
initEdgeList2(it:Iterator):void
Initializes this object. | EdgeList | ||
initEdgeList3(e:Edge):void
Initializes this object. | EdgeList | ||
initEdgeList4(c:EdgeCursor):void
Initializes this object. | EdgeList | ||
initEdgeList5(edgeList:EdgeList):void
Initializes this object. | EdgeList | ||
initEdgeList6(a:Vector.<Object>):void
Initializes this object. | EdgeList | ||
Initializes this object. | EdgeList | ||
initYList1():void
Initializes this object. | YList | ||
initYList2(a:Vector.<Object>):void
Initializes this object. | YList | ||
initYList3(c:Collection):void
Initializes this object. | YList | ||
initYList4(it:Iterator):void
Initializes this object. | YList | ||
initYList5(c:YCursor):void
Initializes this object. | YList | ||
Initializes this object. | YList |
EdgeList | () | Constructor |
public function EdgeList(init:Boolean = true)
Creates an empty edge list.
Parametersinit:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
edges | () | method |
public function edges():EdgeCursor
Returns an edge cursor for this edge list.
ReturnsEdgeCursor — An edge cursor granting access to the edges within this list.
|
firstEdge | () | method |
public function firstEdge():Edge
Returns the first edge in this list, or null
when the list is empty.
Edge — The first edge in the list.
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initEdgeList1 | () | method |
protected final function initEdgeList1():void
Initializes this object. See the documentation of the corresponding factory method newEdgeList1()
for details.
See also
initEdgeList2 | () | method |
protected final function initEdgeList2(it:Iterator):void
Initializes this object. See the documentation of the corresponding factory method newEdgeList2()
for details.
Parameters
it:Iterator |
See also
initEdgeList3 | () | method |
protected final function initEdgeList3(e:Edge):void
Initializes this object. See the documentation of the corresponding factory method newEdgeList3()
for details.
Parameters
e:Edge |
See also
initEdgeList4 | () | method |
protected final function initEdgeList4(c:EdgeCursor):void
Initializes this object. See the documentation of the corresponding factory method newEdgeList4()
for details.
Parameters
c:EdgeCursor |
See also
initEdgeList5 | () | method |
protected final function initEdgeList5(edgeList:EdgeList):void
Initializes this object. See the documentation of the corresponding factory method newEdgeList5()
for details.
Parameters
edgeList:EdgeList |
See also
initEdgeList6 | () | method |
protected final function initEdgeList6(a:Vector.<Object>):void
Initializes this object. See the documentation of the corresponding factory method newEdgeList6()
for details.
Parameters
a:Vector.<Object> |
See also
initEdgeList7 | () | method |
protected final function initEdgeList7(ec:EdgeCursor, predicate:DataProvider):void
Initializes this object. See the documentation of the corresponding factory method newEdgeList7()
for details.
Parameters
ec:EdgeCursor | |
predicate:DataProvider |
See also
lastEdge | () | method |
public function lastEdge():Edge
Returns the last edge in this list, or null
when the list is empty.
Edge — The last edge in the list.
|
newEdgeList1 | () | method |
newEdgeList2 | () | method |
public static function newEdgeList2(it:Iterator):EdgeList
Creates a list that is initialized with the elements provided by the given Iterator object.
Parameters
it:Iterator |
EdgeList |
newEdgeList3 | () | method |
public static function newEdgeList3(e:Edge):EdgeList
Creates a list that is initialized with a single edge provided.
Parameters
e:Edge |
EdgeList |
newEdgeList4 | () | method |
public static function newEdgeList4(c:EdgeCursor):EdgeList
Creates a list that is initialized with the edges provided by the given EdgeCursor object.
Parameters
c:EdgeCursor |
EdgeList |
newEdgeList5 | () | method |
public static function newEdgeList5(edgeList:EdgeList):EdgeList
Creates a list that is initialized with an EdgeList.
Parameters
edgeList:EdgeList |
EdgeList |
newEdgeList6 | () | method |
public static function newEdgeList6(a:Vector.<Object>):EdgeList
Creates a list that is initialized with the edges provided by the given array of edges.
Parameters
a:Vector.<Object> |
EdgeList |
newEdgeList7 | () | method |
public static function newEdgeList7(ec:EdgeCursor, predicate:DataProvider):EdgeList
Creates a list that is initialized with those edges from the given EdgeCursor object for which the given data provider returns true
upon calling its getBool (com.yworks.yfiles.base.DataProvider.getBool()) method.
Parameters
ec:EdgeCursor — An edge cursor providing edges that should be added to this list.
| |
predicate:DataProvider — A data provider that acts as a inclusion predicate for each edge accessible by the given edge cursor.
|
EdgeList |
See also
popEdge | () | method |
public function popEdge():Edge
Removes the first edge from this list and returns it.
ReturnsEdge — The first edge from the list.
|
toEdgeArray | () | method |
public function toEdgeArray():Vector.<Object>
Returns an edge array containing all elements of this list in the canonical order.
ReturnsVector.<Object> |