Rendering

Rendering allows a user to specify special colors, fonts, and other visual effects to terms in a ontology editor panel that match a particular filter.

To enable rendering, click "Rendering controls" in the "Advanced" tab of the search panel. When rendering is enabled, the search panel looks like this:

There are two new controls, the "Render options" pane and the "Render" button.

To create a new renderer, first design a filter in the filter designer to the left. Then, specify one or more visual effects to apply to matching terms. To apply the new renderer to the primary ontology editor panel, press the "Render" button.

With the settings shown in the screenshot above, 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:

Choosing which ontology editor panel to Render

When the "Render" button is pressed, the renderer is applied to the primary ontology editor panel. To apply a renderer to a ontology editor panel other than the primary ontology editor panel, drag and drop the render button onto the desired ontology editor panel. The renderer will be applied to the target panel.

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 filter, click the filter menu button  beneath the ontology editor panel from which you would like to remove the filter. The filter menu will appear:

 

To remove all renderers, choose the "Remove all renderers" or "Remove all renderers and filters" item.

To remove a specific renderer, select "Remove specific renderer". A list of the current renderers will appear in a flyout menu. Select a renderer from the menu to remove it.