public class DefaultBendCreator extends 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(java.lang.Class)
of an
edge, e.g.
Constructor and Description |
---|
DefaultBendCreator() |
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.
|
public final int createBend(IInputModeContext context, IGraph graph, IEdge edge, PointD location)
IBendCreator
createBend
in interface IBendCreator
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.