Developing with the SDK > Using and Adding Renderers > Predefined Renderers > The Composite Renderer

The Composite renderer provides support for symbols and composite graphics to represent nodes and links. In particular, it allows you to:

The following code extract illustrates how to enable the Composite renderer:

SDM {
  Composite: "true";
}

Code Sample 4.18 Enabling the Composite Renderer

Table 4.14 lists the per-object properties of the Composite renderer.

Table 4.14 Per-Object Properties of the Composite Renderer 
Property 
Type 
Default 
Description 
LinkConnectionRectangle 
int 
-1 
Specifies the index used with the indexed property children of composite graphics. The links connect to the nearest edge of the bounding box of the child at the position defined by this property. This property is defined on the objects of type node. 
FromCompositePin 
String 
null 
Specifies the name of a decoration in a composite graphic, which is used to connect the origin of a link. This property is defined on the objects of type link.  
FromCompositePinPosition 
String 
Center 
Connects the origin to this position of the decoration. This property is defined on the objects of type link.  
ToCompositePin 
String 
null 
Specifies the name of a decoration in a composite graphic, which is used to connect the destination of a link. This property is defined on the objects of type link.  
ToCompositePinPosition 
String 
Center 
Connects the destination to this position of the decoration. This property is defined on the objects of type link.  

The following code extract illustrates how to configure the link connection rectangle:

node {
  LinkConnectionRectangle: 0;
}

Code Sample 4.19 Configuring the Link Connection Rectangle

The following code extract illustrates how to specify the decoration to be used to connect links:

link {
  FromCompositePin:"decoration";       // use the name defined above
  FromCompositePinPosition:"Center";
  ToCompositePin:"decoration";         // use the name defined above
  ToCompositePinPosition:"Center";
}

Code Sample 4.20 Specifying the Decoration for the Connection of Links

See the class ilog.views.sdm.renderer.IlvCompositeRenderer for more details.