instead of overriding LineFormsGraphNode.createLineNode, pass a factory function to LineFormsGraphNode constructor