Package | com.yworks.yfiles.base |
Class | public class NodeList |
Inheritance | NodeList ![]() ![]() ![]() |
See also
Method | Defined By | ||
---|---|---|---|
NodeList(init:Boolean = true)
Creates an empty node list. | NodeList | ||
![]() | 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 | |
![]() | 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 node in this list, or null when the list is empty. | NodeList | ||
![]() |
Gets the cell at the given index. | YList | |
getClass():Class [override] | NodeList | ||
![]() |
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 | |
![]() | lastIndexOf(o:Object):int | YList | |
Returns the last node in this list, or null when the list is empty. | NodeList | ||
![]() | YList | ||
![]() | listIterator2(index:int):ListIterator | YList | |
[static]
Creates an empty node list. | NodeList | ||
[static]
Creates a list that is initialized with the elements provided by the given Iterator object. | NodeList | ||
[static]
Creates a list that is initialized with a single node provided. | NodeList | ||
[static]
Creates a list that is initialized with the nodes provided by the given NodeCursor object. | NodeList | ||
[static]
Creates a list that is initialized with the entries of the given list. | NodeList | ||
newNodeList6(a:Vector.<Object>):NodeList [static]
Creates a list that is initialized with the nodes provided by the given array of nodes. | NodeList | ||
[static]
Creates a list that is initialized with those nodes from the given NodeCursor object for which the given data provider returns true upon calling its getBool (com.yworks.yfiles.base.DataProvider.getBool()) method. | NodeList | ||
![]() | [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 | |
Returns a node cursor for this node list. | NodeList | ||
![]() | peek():Object
Equivalent to first(). | YList | |
![]() | pop():Object
Removes the first element from this list and returns it. | YList | |
![]() | popLast():Object
Removes the last element from this list and returns it. | YList | |
Removes the first node from this list and returns it. | NodeList | ||
![]() |
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 | |
toNodeArray():Vector.<Object>
Returns a node array containing all elements of this list in the canonical order. | NodeList | ||
![]() | toString():String
Returns a string representation of this List. | YList |
Method | Defined By | ||
---|---|---|---|
initNodeList1():void
Initializes this object. | NodeList | ||
initNodeList2(it:Iterator):void
Initializes this object. | NodeList | ||
initNodeList3(v:Node):void
Initializes this object. | NodeList | ||
initNodeList4(c:NodeCursor):void
Initializes this object. | NodeList | ||
initNodeList5(list:NodeList):void
Initializes this object. | NodeList | ||
initNodeList6(a:Vector.<Object>):void
Initializes this object. | NodeList | ||
Initializes this object. | NodeList | ||
![]() | 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 |
NodeList | () | Constructor |
public function NodeList(init:Boolean = true)
Creates an empty node 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.
|
firstNode | () | method |
public function firstNode():Node
Returns the first node in this list, or null
when the list is empty.
Node — The first node in the list.
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initNodeList1 | () | method |
protected final function initNodeList1():void
Initializes this object. See the documentation of the corresponding factory method newNodeList1()
for details.
See also
initNodeList2 | () | method |
protected final function initNodeList2(it:Iterator):void
Initializes this object. See the documentation of the corresponding factory method newNodeList2()
for details.
Parameters
it:Iterator |
See also
initNodeList3 | () | method |
protected final function initNodeList3(v:Node):void
Initializes this object. See the documentation of the corresponding factory method newNodeList3()
for details.
Parameters
v:Node |
See also
initNodeList4 | () | method |
protected final function initNodeList4(c:NodeCursor):void
Initializes this object. See the documentation of the corresponding factory method newNodeList4()
for details.
Parameters
c:NodeCursor |
See also
initNodeList5 | () | method |
protected final function initNodeList5(list:NodeList):void
Initializes this object. See the documentation of the corresponding factory method newNodeList5()
for details.
Parameters
list:NodeList |
See also
initNodeList6 | () | method |
protected final function initNodeList6(a:Vector.<Object>):void
Initializes this object. See the documentation of the corresponding factory method newNodeList6()
for details.
Parameters
a:Vector.<Object> |
See also
initNodeList7 | () | method |
protected final function initNodeList7(nc:NodeCursor, predicate:DataProvider):void
Initializes this object. See the documentation of the corresponding factory method newNodeList7()
for details.
Parameters
nc:NodeCursor | |
predicate:DataProvider |
See also
lastNode | () | method |
public function lastNode():Node
Returns the last node in this list, or null
when the list is empty.
Node — The last node in the list.
|
newNodeList1 | () | method |
newNodeList2 | () | method |
public static function newNodeList2(it:Iterator):NodeList
Creates a list that is initialized with the elements provided by the given Iterator object.
Parameters
it:Iterator |
NodeList |
newNodeList3 | () | method |
public static function newNodeList3(v:Node):NodeList
Creates a list that is initialized with a single node provided.
Parameters
v:Node |
NodeList |
newNodeList4 | () | method |
public static function newNodeList4(c:NodeCursor):NodeList
Creates a list that is initialized with the nodes provided by the given NodeCursor object.
Parameters
c:NodeCursor |
NodeList |
newNodeList5 | () | method |
public static function newNodeList5(list:NodeList):NodeList
Creates a list that is initialized with the entries of the given list.
Parameters
list:NodeList — the values are added to the new list
|
NodeList |
newNodeList6 | () | method |
public static function newNodeList6(a:Vector.<Object>):NodeList
Creates a list that is initialized with the nodes provided by the given array of nodes.
Parameters
a:Vector.<Object> |
NodeList |
newNodeList7 | () | method |
public static function newNodeList7(nc:NodeCursor, predicate:DataProvider):NodeList
Creates a list that is initialized with those nodes from the given NodeCursor object for which the given data provider returns true
upon calling its getBool (com.yworks.yfiles.base.DataProvider.getBool()) method.
Parameters
nc:NodeCursor — A node cursor providing nodes that should be added to this list.
| |
predicate:DataProvider — A data provider that acts as a inclusion predicate for each node accessible by the given node cursor.
|
NodeList |
See also
nodes | () | method |
public function nodes():NodeCursor
Returns a node cursor for this node list.
ReturnsNodeCursor — A node cursor granting access to the nodes within this list.
|
popNode | () | method |
public function popNode():Node
Removes the first node from this list and returns it.
ReturnsNode — The first node from the list.
|
toNodeArray | () | method |
public function toNodeArray():Vector.<Object>
Returns a node array containing all elements of this list in the canonical order.
ReturnsVector.<Object> |