| Developing with the SDK > Using and Adding Renderers > Predefined Renderers > The Decoration Renderer |
The Decoration Renderer |
INDEX
PREVIOUS
NEXT
|
The Decoration renderer lets you add graphic objects in addition to the objects that represent the nodes and links, and change the background color or texture. You can use the Decoration renderer to display additional information such as titles or annotation labels. The objects you add are static: they cannot change in response to model object states.
You can load decoration objects from a .ivl file or define them in the style sheet, as follows:
decorationNames property of the Decoration renderer to all the names collected at step 1.
Code Sample 4.9 shows style rules that add a title and an image to the diagram.
Table 4.2 lists the properties of the Decoration renderer.
Property |
Type |
Default |
Description |
|---|---|---|---|
background |
Color |
white |
The view background color, as defined in ilog.views.IlvManagerView. |
backgroundFile |
URL |
Sets a URL that points to a .ivl, .svg, .svgz, or .dxf file. The file contains graphic objects that are added to the diagram. | |
backgroundPatternLocation |
URL |
The view background pattern, as defined in ilog.views.IlvManagerView. | |
decorationNames |
String[] | null |
The names of the style rules that define the decoration objects. |
The Decoration renderer does not define any per-object rendering properties.
See the class ilog.views.sdm.renderer.IlvDecorationRenderer for more details.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |