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:
- Maximum zoom level above which the objects will stop growing; their size will stay fixed past this zoom level.
- Minimum zoom level below which the objects will not be drawn any more; they will be replaced by gray boxes, or will keep a fixed size.
You can also specify an initial zoom factor
by which the minimum and maximum zoom levels will be multiplied.
The following table lists the properties of the
HalfZooming
renderer.
Global properties of the HalfZooming
renderer
Property
|
Type
|
Default
|
Description
|
---|---|---|---|
alpha
|
double
|
1.0
|
Specifies the alpha globally for all
objects.
|
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.
|
The following table lists the per-object rendering properties of
the
HalfZooming
renderer.
Per-object properties of the HalfZooming
renderer
Property
|
Type
|
Default
|
Description
|
---|---|---|---|
Alpha
|
double
|
Overrides
alpha
for a given object.
|
|
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 IlvHalfZoomingRenderer for more details.