You can use the add-on's API to customize data value graph nodes. The API uses a NodeTemplate
to define customization options. NodePanel
s act as containers for the elements that comprise a node. These editable elements include: text, images, color, buttons, and indicators. When adding these elements to a NodePanel
, you can determine orientation, color, size, etc.
Once you implement a NodeTemplate
, an administrator must add the fully qualified class name to a data value and relationship graph configuration. See Sample node template and configuration for a sample implementation and configuration instructions.
As shown below, a node template must implement the NodeTemplateFactory
interface. Calling this interface's build()
method draws the custom node template.
public class NodeTemplateForEmployee implements NodeTemplateFactory { public NodeTemplate build() { // build a node template instance return null; } }
See the following sections for information on adding elements to a NodeTemplate:
Node template elements describes the elements that comprise a node.
Sample node template and configuration provides a sample implementation and configuration instructions.
Using a node value renderer provides information on the NodeValueRenderer
class, which allows you to retrieve and pass custom data to nodes.