TIBCO EBX®
Data Model and Data Visualization Add-on Documentation > Developer Guide > Customizing graph nodes
Navigation modeData Model and Data Visualization Add-on Documentation > Developer Guide > Customizing graph nodes

Node templates

You can use the add-on's API to customize data value graph nodes. The API uses a NodeTemplate to define customization options. NodePanels 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.

Note

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: