Packagecom.yworks.graph.model
Interfacepublic interface IBendList extends Iterable
Implementors BendList

A strongly typed readonly list-like collection of IBends used in IGraph implementations.

Normally, instances of this interface are obtained through the bends property of IEdge.



Public Properties
 PropertyDefined By
  controlPoints : IControlPoints
[read-only] Provides a live IControlPointList view over the bends in this list.
IBendList
Public Methods
 MethodDefined By
  
bendAt(index:int):IBend
Returns the IBend at position index in this list.
IBendList
 Inherited
Returns an iterator over a set of elements.
Iterable
  
length():uint
Returns The number of bends in the list.
IBendList
Property Detail
controlPointsproperty
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
Method Detail
bendAt()method
public function bendAt(index:int):IBend

Returns the IBend at position index in this list.

Parameters

index:int — The index of the bend

Returns
IBend — The bend at the given index.
length()method 
public function length():uint

Returns The number of bends in the list.

Returns
uint — The number of bends in the List.