Simple default implementations of the
IBendCreator
interface used during the creation of bends
in the UI.
An instance of this class can be found in the ILookup.lookup
of an edge, e.g.
NO_BENDS:IBendCreator [read-only]
A static instance that does not create any bends.
Implementation
public static function get NO_BENDS():IBendCreator
public function DefaultBendCreator(edge:IEdge)
Initializes a new instance of the DefaultBendCreator class for the given edge.
Parameters
public function createBend(graph:IGraph, edge:IEdge, x:Number, y:Number):int
Creates a bend at the given graph for the given edge at the position supplied.
Parameters
| graph:IGraph — The graph, the edge belongs to.
|
| |
| edge:IEdge — The edge.
|
| |
| x:Number — The preferred x coordinate of the bend.
|
| |
| y:Number — The preferred y coordinate of the bend.
|
Returns
| int — The index of the bend in the edges' IBendList or -1 if no bend has been created.
|