Interface NodeComponentFactory


public interface NodeComponentFactory

Makes a real component for a node's body, such as a slider in a node editor. Set one with NodeGraph.setNodeComponentFactory.

Components cost far more than painted nodes, so the graph asks for one only while its node is on screen and the zoom is at least NodeGraph.getComponentZoom, keeps it while the node exists, and takes it off the form when the node scrolls away. The component is laid out over the node below its title, at the node's size on screen; its text does not scale with the zoom.

  • Method Summary

    Modifier and Type
    Method
    Description
    The component for node, or null for a node painted alone.
  • Method Details

    • createComponent

      Component createComponent(NodeGraph graph, GraphNode node)
      The component for node, or null for a node painted alone.