Rendering

Rendering allows a user to specify special colors, fonts, and other visual effects that will be applied to terms in a ontology editor panel that match a particular filter. Renderers can be applied in any Ontology Tree Editor or Graph Editor panel, and each panel can have different renderers. See the page about coloring by namespace for an example of how to use rendering.

To create a new renderer, click the wrench icon on the panel where you want the rendering effects to appear. Choose the "Term Renderers" or "Link Renderers" tab. Click the button to bring up a filter panel, then specify the filter criteria or load a saved filter (see Building Filters for how to do this).

Next, specify one or more visual effects to apply to matching terms. To apply the new renderer to the panel, click the check mark to complete panel configuration.

With the settings shown in the screenshot below, the ontology editor panel will draw any term whose name contains "activity" in red:

A ontology editor panel can have any number of renderers at the same time.

Specifying Renderer Options

Renderers can apply several different visual effects to matching terms. The available effects are different for term filters and link filters.

In general, to apply a visual effect, select the checkbox next to it. If a visual effect is configurable, a configuration control will appear next to the checkbox once it is selected. A renderer may apply several visual effects to a matching term.

Term Renderer Effects

Term renderer effects change the way a term name is displayed in the ontology editor panel. The following renderer effects are available for term filters:

Link Renderer Effects

Link renderer effects change the way the arrow between a term and its parent () is displayed in the ontology editor panel. The following renderer effects are available:

Multiple Renderers at Once

Any number of renderers may be applied to a ontology editor panel at once. If a term matches multiple renderers, OBO-Edit will try to merge the renderer effects to display as much information as possible.

OBO-Edit can merge renderer effects of different types. If one renderer wants to make a term red, and another wants to make a term bold, OBO-Edit will show the term in red and in bold. But OBO-Edit cannot merge effects of the same type. If one renderer wants to make a term red and another wants to make the term blue, OBO-Edit will only display a single color.

When two renderers specify two different values for the same effect, OBO-Edit chooses the value from the most recently added renderer.

Therefore, if you plan to use several renderers at once, it is usually a good idea to use a different type of renderer effect for each renderer. That way it is easy to tell if a term matches multiple renderers.

Removing Renderers

To remove a renderer, click the wrench icon to open the configuration screen, and choose the "Term Renderers" or "Link Renderers" tab. Select the renderer you want to remove, and click the button to remove it. Click the check mark to finish and exit configuration.