public interface INodeCreationCallback
GraphEditorInputMode for the creation of nodes.
This callback can be used to conveniently provide a hook to the GraphEditorInputMode using its NodeCreator
property.
| Modifier and Type | Method and Description |
|---|---|
INode |
createNode(IInputModeContext context,
IGraph graph,
PointD location,
INode parent)
A callback that is used by
GraphEditorInputMode for the creation of nodes. |
INode createNode(IInputModeContext context, IGraph graph, PointD location, INode parent)
GraphEditorInputMode for the creation of nodes.
This callback can be used to conveniently provide a hook to the GraphEditorInputMode
using its NodeCreator property.
context - The context for which the node should be created.graph - The graph to create the node for.location - The location where the node shall be created.parent - A group node at the click location which can be used as parent node for the newly-created node. null if the new
node should be created at root level.null.