Packagecom.yworks.graph.model
Interfacepublic interface IBendSelectionTester

Interface that can be used to find bends at specific locations in the canvas.

This interface is mostly provided through the lookup of IEdge implementations.



Public Methods
 MethodDefined By
  
getBend(x:Number, y:Number, ctx:ICanvasContext):IBend
Returns the bend at the given world coordinate position or null if there is no such bend.
IBendSelectionTester
  
Returns the bends for the given marquee rectangle.
IBendSelectionTester
Method Detail
getBend()method
public function getBend(x:Number, y:Number, ctx:ICanvasContext):IBend

Returns the bend at the given world coordinate position or null if there is no such bend.

Parameters

x:Number — The x coordinate of the position in the world coordinate system.
 
y:Number — The y coordinate of the position in the world coordinate system.
 
ctx:ICanvasContext — The canvas context to use for querying the position.

Returns
IBend — The bend at the position or null.
getBends()method 
public function getBends(box:IRectangle, ctx:ICanvasContext):Iterable

Returns the bends for the given marquee rectangle.

Parameters

box:IRectangle — The marquee selection box in the world coordinate system.
 
ctx:ICanvasContext — he canvas context to use for querying the position.

Returns
Iterable — An Iterable over the bends inside the marquee selection box.