Packagecom.yworks.graph.model
Classpublic class ListLabelCollection
InheritanceListLabelCollection Inheritance Object
Implements ILabelCollection

A simple implementation of the ILabelCollection interface that is backed by a list



Public Properties
 PropertyDefined By
  count : uint
[read-only] Returns the number of elements in this collection.
ListLabelCollection
Public Methods
 MethodDefined By
  
add(label:ILabel):void
Adds a label to the list.
ListLabelCollection
  
getLabelAt(index:uint):ILabel
Returns the label at position index in the collection.
ListLabelCollection
  
Returns an iterator over a set of elements.
ListLabelCollection
  
remove(label:ILabel):void
Removes a label from the list.
ListLabelCollection
Property Detail
countproperty
count:uint  [read-only]

Returns the number of elements in this collection.


Implementation
    public function get count():uint
Method Detail
add()method
public function add(label:ILabel):void

Adds a label to the list.

Parameters

label:ILabel — The label to add.

getLabelAt()method 
public function getLabelAt(index:uint):ILabel

Returns the label at position index in the collection.

Parameters

index:uint — The zero-based index of the item in this collection

Returns
ILabel — The item for the given index
iterator()method 
public function iterator():Iterator

Returns an iterator over a set of elements.

Returns
Iterator — an Iterator.
remove()method 
public function remove(label:ILabel):void

Removes a label from the list.

Parameters

label:ILabel — The label to be removed.