public interface IBendCreator
Implementations of this interface may be found in the ILookup.lookup(java.lang.Class)
of
IEdge
instances. This interface is used by GraphEditorInputMode
to create new bends for an edge as
soon as the user performs the bend creation gesture.
Modifier and Type | Field and Description |
---|---|
static IBendCreator |
NO_BENDS
A static instance that does not create any bends.
|
Modifier and Type | Method and Description |
---|---|
int |
createBend(IInputModeContext context,
IGraph graph,
IEdge edge,
PointD location)
Creates a bend at the given graph for the given edge at the position supplied.
|
static final IBendCreator NO_BENDS
int createBend(IInputModeContext context, IGraph graph, IEdge edge, PointD location)
context
- The context for which the bend should be created.graph
- The graph, the edge belongs to.edge
- The edge.location
- The preferred coordinates of the bend.Bends
or -1
if no bend has been created.