Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

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.

Methods

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

Method details

createComponent

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