Customizing a renderer

To customize one of the renderers, you write a style rule with a selector that is the renderer name and declarations that set properties of the renderer. Each renderer is implemented by a JavaBean™ , and you can set any property of the bean in the style rule.
For example, the LinkLayout renderer is implemented by the class IlvLinkLayoutRenderer. This class defines a property called performingLayoutOnZoom which requires the layout algorithm to be reapplied each time the view is zoomed in or out. The following code example shows a style rule that customizes the LinkLayout renderer to reapply the layout algorithm in this way.
Customizing a renderer in the style sheet
LinkLayout {
   performingLayoutOnZoom : true;
}
Some renderers have a “default” property that you can set directly in the SDM rule instead of setting it in the renderer’s customization rule. For example, the default parameter of the GraphLayout renderer is the name of the layout algorithm to apply. The following code example shows how to customize this renderer directly in the SDM rule.
Customizing a renderer directly
SDM {
   GraphLayout : "Hierarchical";
}
Direct customization in the SDM rule is a shortcut for the longer way, which is shown in the following code example.
Customizing a renderer the longer way
SDM {
   GraphLayout : true;
}
GraphLayout {
   graphLayout : "Hierarchical";
}