Graphic representations of telecom objects make intensive use of
labels and icons. Therefore, some graphic objects cannot be
resized without deteriorating their aspect when the physical zoom
mechanism is used. This effect is even more visible when
unzooming. While some JViews
TGO objects, like groups, can be resized, other objects, such as
network elements, have been intentionally designed to have an
optimal size depending on the quantity of information they hold.
Resizing these objects impairs the readability and compactness of
their graphic representation.
For these reasons, the physical zoom mode was implemented to hide
the decorations of telecom objects according to a certain
configurable zoom factor. This factor is called the visibility threshold and represents the
absolute value of the determinant of the view transformer. When
the value of this determinant is lower than the decoration
visibility threshold, decorations of the affected type are no
longer displayed.
The visibility threshold for each
decoration type can be configured locally to a network component
through the methods:
or through the CSS properties:
decorationNames
visibilityThresholds
How to set the visibility threshold for
decorations in a specific network component
The following example describes a network component
configuration that sets a physical zoom policy to the
component, and defines visibility thresholds for the
decorations
Name
,
AlarmBalloon
,
AlarmCount
and
Plinth
. Refer to
Configuring a network component through a
CSS file for more information.
Zooming {
type: "Physical";
decorationNames[0]: Name;
decorationNames[1]: AlarmBalloon;
decorationNames[2]: AlarmCount;
decorationNames[3]: Plinth;
visibilityThresholds[0]: 0.5;
visibilityThresholds[1]: 0.8;
visibilityThresholds[2]: 0.5;
visibilityThresholds[3]: 0.5;
}
Visibility thresholds can also be
configured globally for all network components through the
methods:
IltrZoom. SetVisibilityThreshold. This method
sets the value of the visibility threshold for the specified
element name. This method defines, for a specific type of
decoration, the threshold above which the decoration will
disappear when the view is zoomed.
How to set the visibility threshold of
decorations for all network components
The following example shows how you can
customize the visibility threshold of specific decorations
globally, so that all network components created in the
application have the same configuration:
IltrZoom.SetVisibilityThreshold (IltGraphicElementName.Name, 0.5);
IltrZoom.SetVisibilityThreshold (IltGraphicElementName.AlarmBalloon, 0.8);
IltrZoom.SetVisibilityThreshold (IltGraphicElementName.AlarmCount, 0.5);
IltrZoom.SetVisibilityThreshold (IltGraphicElementName.Plinth, 0.5);