Packagecom.yworks.yfiles.base
Classpublic class EdgeList
InheritanceEdgeList Inheritance YList Inheritance YObject Inheritance Object

Specialized list implementation for instances of type com.yworks.yfiles.base.Edge.

See also

com.yworks.yfiles.base.Edge


Public Properties
 PropertyDefined By
 Inheritedempty : Boolean
[read-only] Checks whether this list contains elements.
YList
 Inheritedlength : int
[read-only] Returns the number of elements in this list.
YList
Public Methods
 MethodDefined By
  
EdgeList(init:Boolean = true)
Creates an empty edge list.
EdgeList
 Inherited
addAll(collection:Collection):Boolean
Appends all elements provided by the given collection to this list.
YList
 Inherited
addAllAt(index:int, c:Collection):Boolean
YList
 Inherited
Appends all elements provided by the given cursor to this list.
YList
 Inherited
addFirst(o:Object):ListCell
Inserts the given object at the head of this list.
YList
 Inherited
Adds a formerly removed ListCell object at the head of this list.
YList
 Inherited
addItem(o:Object):Boolean
Same as addLast().
YList
 Inherited
addItemAt(index:int, element:Object):void
YList
 Inherited
addLast(o:Object):ListCell
Inserts the given object at the tail of this list.
YList
 Inherited
Adds a formerly removed ListCell object at the tail of this list.
YList
 Inherited
clear():void
Removes all elements from this list.
YList
 Inherited
containsAll(collection:Collection):Boolean
Whether or not this list contains all the elements in the given collection.
YList
 Inherited
containsItem(o:Object):Boolean
Whether or not this list contains the given element.
YList
 Inherited
Returns a cursor for this list.
YList
 Inherited
Returns the cyclic predecessor cell of the given list cell.
YList
 Inherited
Returns the cyclic successor cell of the given list cell.
YList
  
Returns an edge cursor for this edge list.
EdgeList
 Inherited
elementAt(i:int):Object
Returns the i-th element of this list.
YList
 Inherited
equals(other:Object):Boolean
[override]
YList
 Inherited
findCell(o:Object):ListCell
Returns the com.yworks.yfiles.base.ListCell where object o is stored.
YList
 Inherited
first():Object
Returns the first element of this list.
YList
 Inherited
Returns the first cell of this list.
YList
  
Returns the first edge in this list, or null when the list is empty.
EdgeList
 Inherited
getCell(index:int):ListCell
Gets the cell at the given index.
YList
  
getClass():Class
[override]
EdgeList
 Inherited
getInfo(c:ListCell):Object
Returns the element stored in the given list cell.
YList
 Inherited
getItemAt(index:int):Object
YList
 Inherited
hashCode():int
[override]
YList
 Inherited
indexOf(obj:Object):int
Returns the zero-based index of the given element in this list.
YList
 Inherited
insertAfter(o:Object, refCell:ListCell):ListCell
Inserts the given object into this list with respect to a given reference list cell.
YList
 Inherited
insertBefore(o:Object, refCell:ListCell):ListCell
Inserts the given object into this list with respect to a given reference list cell.
YList
 Inherited
insertCellAfter(cellToInsert:ListCell, refCell:ListCell):void
Inserts a formerly removed ListCell object into this list with respect to a given reference list cell.
YList
 Inherited
insertCellBefore(cellToInsert:ListCell, refCell:ListCell):void
Inserts a formerly removed ListCell object into this list with respect to a given reference list cell.
YList
 Inherited
Returns an iterator for that list.
YList
 Inherited
last():Object
Returns the last element of this list.
YList
 Inherited
Returns the last cell of this list.
YList
  
Returns the last edge in this list, or null when the list is empty.
EdgeList
 Inherited
lastIndexOf(o:Object):int
YList
 Inherited
YList
 Inherited
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
 Inherited
[static] Creates an empty doubly linked list.
YList
 Inherited
newYList2(a:Vector.<Object>):YList
[static] Creates a list that is initialized with the elements provided by the given array of objects.
YList
 Inherited
[static] Creates a list that is initialized with the elements provided by the given Collection object.
YList
 Inherited
[static] Creates a list that is initialized with the elements provided by the given Iterator object.
YList
 Inherited
[static] Creates a list that is initialized with the elements provided by the given YCursor object.
YList
 Inherited
[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
 Inherited
peek():Object
Equivalent to first().
YList
 Inherited
pop():Object
Removes the first element from this list and returns it.
YList
  
Removes the first edge from this list and returns it.
EdgeList
 Inherited
popLast():Object
Removes the last element from this list and returns it.
YList
 Inherited
Returns the predecessor cell of the given list cell.
YList
 Inherited
push(o:Object):ListCell
Equivalent to addFirst().
YList
 Inherited
removeAll(collection:Collection):Boolean
Removes the given collection of objects from this list.
YList
 Inherited
removeAt(c:YCursor):Object
Removes the element pointed to by the given YCursor object.
YList
 Inherited
Removes the given list cell, and hence the element stored in it, from this list.
YList
 Inherited
removeItem(o:Object):Boolean
Removes the given object from this list.
YList
 Inherited
removeItemAt(index:int):Object
YList
 Inherited
retainAll(collection:Collection):Boolean
Retains only those elements in this list which are contained in the given collection.
YList
 Inherited
reverse():void
Reverses the sequence of elements in this list.
YList
 Inherited
setInfo(c:ListCell, value:Object):void
Updates the element stored in the given list cell with the given object.
YList
 Inherited
setItemAt(index:int, element:Object):Object
YList
 Inherited
sort(comp:Comparator):void
Sorts the elements in this list according to the given comparator.
YList
 Inherited
sort2():void
Sorts the elements in this list into ascending order, according to their natural ordering.
YList
 Inherited
splice(list:YList):void
Transfers the contents of the given list to the end of this list.
YList
 Inherited
subList(fromIndex:int, toIndex:int):List
YList
 Inherited
Returns the successor cell of the given list cell.
YList
 Inherited
toArray():Vector.<Object>
Returns an array representation of this list.
YList
 Inherited
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
 Inherited
toString():String
Returns a string representation of this List.
YList
Protected Methods
 MethodDefined By
  
Initializes this object.
EdgeList
  
Initializes this object.
EdgeList
  
Initializes this object.
EdgeList
  
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
 Inherited
initYList1():void
Initializes this object.
YList
 Inherited
initYList2(a:Vector.<Object>):void
Initializes this object.
YList
 Inherited
Initializes this object.
YList
 Inherited
Initializes this object.
YList
 Inherited
Initializes this object.
YList
 Inherited
initYList6(c:YCursor, predicate:DataProvider):void
Initializes this object.
YList
Constructor Detail
EdgeList()Constructor
public function EdgeList(init:Boolean = true)

Creates an empty edge list.

Parameters
init: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.
Method Detail
edges()method
public function edges():EdgeCursor

Returns an edge cursor for this edge list.

Returns
EdgeCursor — 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.

Returns
Edge — The first edge in the list.
getClass()method 
override public function getClass():Class

Returns
Class
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.

Returns
Edge — The last edge in the list.
newEdgeList1()method 
public static function newEdgeList1():EdgeList

Creates an empty edge list.

Returns
EdgeList
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

Returns
EdgeList
newEdgeList3()method 
public static function newEdgeList3(e:Edge):EdgeList

Creates a list that is initialized with a single edge provided.

Parameters

e:Edge

Returns
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

Returns
EdgeList
newEdgeList5()method 
public static function newEdgeList5(edgeList:EdgeList):EdgeList

Creates a list that is initialized with an EdgeList.

Parameters

edgeList:EdgeList

Returns
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>

Returns
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.

Returns
EdgeList

See also

popEdge()method 
public function popEdge():Edge

Removes the first edge from this list and returns it.

Returns
Edge — 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.

Returns
Vector.<Object>