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

The HalfZooming renderer lets you control the way your graphic objects will grow or shrink when you zoom in or out. You can specify the following parameters:

You can also specify an initial zoom factor by which the minimum and maximum zoom levels will be multiplied.

Table 4.10 lists the properties of the HalfZooming renderer.

Table 4.10 Global Properties of the HalfZooming Renderer 
Property 
Type 
Default 
Description 
grayedWhenUnzoomed 
boolean 
true 
If true, the nodes are drawn as gray boxes when the zoom level is below the minimum zoom, and the gray boxes zoom out normally. If false, the nodes simply stop zooming out and keep the same size. 
initialZoom 
double 
1.0 
Specifies the initial zoom globally for all objects. 
maxZoom 
double 
1.0 
Specifies the maximum zoom globally for all objects. 
minZoom 
double 
1.0 
Specifies the minimum zoom globally for all objects. 
unzoomedBackground 
Color 
grey 
The background (the fill color) of the boxes displayed instead of zoomed out objects. 
unzoomedForeground 
Color 
black 
The foreground (the border color) of the boxes displayed instead of zoomed out objects. 

Table 4.11 lists the per-object rendering properties of the HalfZooming renderer.

Table 4.11 Per-Object Properties of the HalfZooming Renderer 
Property 
Type 
Default 
Description 
InitialZoom 
double 

 
Overrides initialZoom for a given object. 
MaxZoom 
double 

 
Overrides maxZoom for a given object. 
MinZoom 
double 

 
Overrides minZoom for a given object. 
UnzoomedBackground 
Color 

 
Overrides unzoomedBackground for a given object. 
UnzoomedForeground 
Color 

 
Overrides unzoomedForeground for a given object. 

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