Packagecom.yworks.graph.model
Interfacepublic interface IBendList extends Iterable
ImplementorsBendList

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
length()method 
public function length():uint

Returns The number of bends in the list.

Returns
uint — The number of bends in the List.