Package | com.yworks.graph.model |
Class | public class DefaultBendCreator |
Inheritance | DefaultBendCreator Object |
Implements | IBendCreator |
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.
Property | Defined By | ||
---|---|---|---|
NO_BENDS : IBendCreator [static] [read-only]
A static instance that does not create any bends. | DefaultBendCreator |
Method | Defined By | ||
---|---|---|---|
DefaultBendCreator(edge:IEdge)
Initializes a new instance of the DefaultBendCreator class for the given edge. | DefaultBendCreator | ||
Creates a bend at the given graph for the given edge at the position supplied. | DefaultBendCreator |
NO_BENDS | property |
NO_BENDS:IBendCreator
[read-only] A static instance that does not create any bends.
public static function get NO_BENDS():IBendCreator
DefaultBendCreator | () | Constructor |
public function DefaultBendCreator(edge:IEdge)
Initializes a new instance of the DefaultBendCreator
class for the given edge.
edge:IEdge — The edge.
|
createBend | () | method |
public function createBend(context:IInputModeContext, 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
context:IInputModeContext — The context for which the bend should be created.
| |
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.
|
int — The index of the bend in the edges' IBendList or -1 if no bend has been created.
|