Interface NodeBuilder<T>

All Known Implementing Classes:
AddBuilder, ConstantBuilder, MultiplyBuilder

public interface NodeBuilder<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    Compute the node's output value from its inputs.
    default String
    Optional display name (used in title bar).
    Return the pins this node should have (input invalid input: '&' output).
    boolean
    Render custom UI inside the node.
    default void
    setNode(Node<T> node)
    Called after the node is created to give the builder its owning node.
  • Method Details

    • getPins

      List<NodePin<T>> getPins()
      Return the pins this node should have (input invalid input: '&' output).
    • render

      boolean render()
      Render custom UI inside the node. Returns true if the value changed.
    • evaluate

      T evaluate()
      Compute the node's output value from its inputs.
    • getDisplayName

      default String getDisplayName()
      Optional display name (used in title bar).
    • setNode

      default void setNode(Node<T> node)
      Called after the node is created to give the builder its owning node.