| Package | com.yworks.graph.model |
| Class | public class BendList |
| Implements | Collection, IBendList, IControlPoints |
IBends.
This implementation is backed by a com.yworks.support.List.
| Property | Defined by | ||
|---|---|---|---|
| controlPoints : IControlPoints
[read-only]
Provides a live
IControlPointList view over the bends in this list. | BendList | ||
| count : uint [read-only]
Returns the number of elements in this collection.
| BendList | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new
BendList. | BendList | ||
|
Inserts a new bend into the list.
| BendList | ||
|
addAll(collection:Collection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| BendList | ||
|
addItem(item:Object):Boolean
Adds the specified item to this collection.
| BendList | ||
|
Returns the
IBend at position index in this list. | BendList | ||
|
clear():void
Removes all of the elements from this collection.
| BendList | ||
|
contains(item:Object):Boolean
Returns true if this collection contains the specified element.
| BendList | ||
|
getItemAt(index:int):Object
Returns the element at the specified position in this collection.
| BendList | ||
|
getPointAt(index:uint):IPoint
Returns the i-th point in the list.
| BendList | ||
|
isEmpty():Boolean
Returns true if this collection contains no elements.
| BendList | ||
|
Returns an iterator over a set of elements.
| BendList | ||
|
length():uint
Returns the number of elements in this collection.
| BendList | ||
|
Removes a bend from the list.
| BendList | ||
|
removeAt(index:uint):void
Removes a bend at the given index from the list.
| BendList | ||
|
removeItem(item:Object):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation).
| BendList | ||
|
toArray():Array
Returns an array containing all of the elements in this collection.
| BendList | ||
| controlPoints | property |
controlPoints:IControlPoints [read-only]
Provides a live IControlPointList view over the bends in this list.
This is especially convenient for geometric operations, that don't necessarily know how to deal with bends.
Implementation public function get controlPoints():IControlPoints
| count | property |
count:uint [read-only]Returns the number of elements in this collection.
Implementation public function get count():uint
| BendList | () | constructor |
public function BendList(bends:List = null)
Creates a new BendList.
bends:List (default = null) — A List to create the BendList from.
|
| add | () | method |
public function add(index:uint, bend:IBend):voidInserts a new bend into the list.
Parametersindex:uint — The index to insert the bend at.
|
|
bend:IBend — The bend to insert.
|
| addAll | () | method |
public function addAll(collection:Collection):voidAdds all of the elements in the specified collection to this collection (optional operation).
Parameterscollection:Collection — the collection containing elements to be added to this collection
|
| addItem | () | method |
public function addItem(item:Object):BooleanAdds the specified item to this collection. Returns true if this collection changed as a result of the call. (Returns false if this collection does not permit duplicates and already contains the specified element.)
Parametersitem:Object — element whose presence in this collection is to be ensured
|
Boolean — true if this collection changed as a result of the call
|
| bendAt | () | method |
public function bendAt(index:int):IBend
Returns the IBend at position index in this list.
index:int — The index of the bend
|
IBend |
| clear | () | method |
public function clear():voidRemoves all of the elements from this collection. The collection will be empty after this method returns.
| contains | () | method |
public function contains(item:Object):BooleanReturns true if this collection contains the specified element.
Parametersitem:Object — element whose presence in this collection is to be tested
|
Boolean — true if this collection contains the specified element
|
| getItemAt | () | method |
public function getItemAt(index:int):ObjectReturns the element at the specified position in this collection.
Parametersindex:int — the index of the element to return
|
Object — the element at the specified position in this list
|
| getPointAt | () | method |
public function getPointAt(index:uint):IPointReturns the i-th point in the list.
Parametersindex:uint — The zero-based index of the item in this list
|
IPoint —
The item for the given index
|
| isEmpty | () | method |
public function isEmpty():BooleanReturns true if this collection contains no elements.
ReturnsBoolean — true if this collection contains no elements
|
| iterator | () | method |
public function iterator():IteratorReturns an iterator over a set of elements.
ReturnsIterator —
an Iterator.
|
| length | () | method |
public function length():uintReturns the number of elements in this collection.
Returnsuint — the number of elements in this collection
|
| remove | () | method |
public function remove(bend:IBend):voidRemoves a bend from the list.
Parametersbend:IBend — The bend to remove.
|
| removeAt | () | method |
public function removeAt(index:uint):voidRemoves a bend at the given index from the list.
Parametersindex:uint — The index of the bend to remove.
|
| removeItem | () | method |
public function removeItem(item:Object):BooleanRemoves a single instance of the specified element from this collection, if it is present (optional operation).
Parametersitem:Object — element to be removed from this collection, if present
|
Boolean — true if an element was removed as a result of this call
|
| toArray | () | method |
public function toArray():ArrayReturns an array containing all of the elements in this collection.
ReturnsArray — an array containing all of the elements in this collection
|