Package | com.yworks.yfiles.util |
Class | public class Cursors |
Inheritance | Cursors YObject Object |
See also
Method | Defined By | ||
---|---|---|---|
Cursors(init:Boolean = true) | Cursors | ||
[static]
Creates a new cursor that provides a logical view on the concatenation of the two given cursors. | Cursors | ||
[static]
Creates a YCursor view of the given collection. | Cursors | ||
[static]
Creates a cursor view of the given collection. | Cursors | ||
[static]
Creates a first-to-last Iterator view of the given cursor. | Cursors | ||
[static]
Creates a cursor view of the given collection. | Cursors | ||
[static]
Creates a last-to-first Iterator view of the given cursor. | Cursors | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | Cursors | ||
hashCode():int | YObject | ||
[static]
Creates or fills an array with the values provided by the cursor
| Cursors |
Cursors | () | Constructor |
public function Cursors(init:Boolean = true)
init:Boolean (default = true )
|
concatenate | () | method |
public static function concatenate(c1:YCursor, c2:YCursor):YCursor
Creates a new cursor that provides a logical view on the concatenation of the two given cursors.
Parameters
c1:YCursor — - first concatenation argument
| |
c2:YCursor — - second concatenation argument
|
YCursor |
createCursor | () | method |
public static function createCursor(c:Collection):YCursor
Creates a YCursor view of the given collection.
Note that the returned cursor does not support the prev (com.yworks.yfiles.base.YCursor.prev()) and toLast (com.yworks.yfiles.base.YCursor.toLast()) operations.Parameters
c:Collection — The collection.
|
YCursor — The cursor view of the given collection.
|
See also
createEdgeCursor | () | method |
public static function createEdgeCursor(c:Collection):EdgeCursor
Creates a cursor view of the given collection.
Note that the returned cursor does not support the operations prev (com.yworks.yfiles.base.YCursor.prev()), toLast (com.yworks.yfiles.base.YCursor.toLast()), and com.yworks.yfiles.base.EdgeCursor.cyclicPrev().
Parameters
c:Collection — The collection.
|
EdgeCursor — an com.yworks.yfiles.base.EdgeCursor view of the given collection.
|
See also
createIterator | () | method |
public static function createIterator(cursor:YCursor):Iterator
Creates a first-to-last Iterator
view of the given cursor.
Note that the returned iterator does not support the remove (com.yworks.bridge.util.Iterator.removeItem()) operation.
Parameters
cursor:YCursor — The cursor.
|
Iterator — The iterator view of the given cursor.
|
See also
createNodeCursor | () | method |
public static function createNodeCursor(c:Collection):NodeCursor
Creates a cursor view of the given collection.
Note that the returned cursor does not support the operations prev (com.yworks.yfiles.base.YCursor.prev()), toLast (com.yworks.yfiles.base.YCursor.toLast()), and com.yworks.yfiles.base.NodeCursor.cyclicPrev().
Parameters
c:Collection — The collection.
|
NodeCursor — an com.yworks.yfiles.base.NodeCursor view of the given collection.
|
See also
createReverseIterator | () | method |
public static function createReverseIterator(cursor:YCursor):Iterator
Creates a last-to-first Iterator
view of the given cursor.
Note that the returned iterator does not support the remove (com.yworks.bridge.util.Iterator.removeItem()) operation.
Parameters
cursor:YCursor — The cursor.
|
Iterator — The iterator view of the given cursor.
|
See also
getClass | () | method |
override public function getClass():Class
ReturnsClass |
toArray | () | method |
public static function toArray(cursor:YCursor, dest:Vector.<Object>):Vector.<Object>
Creates or fills an array with the values provided by the cursor
Parameters
cursor:YCursor — the cursor
| |
dest:Vector.<Object> — the array to fill with the values or null if the method should create the array itself
|
Vector.<Object> — dest or a newly created array filled with the values from cursor
|