The Network JSF component allows developers
to specify the area that will be displayed on the client. For
example, this enables developers to set the initial visible area or
possibly to change at runtime the clipping rectangle so that it
centers or focuses on a given network element.
This can be done by means of the
boundingBox
property as follows:
<jvtf:networkView [...] boundingBox="0,0,100,200"/>
The value provided corresponds to the
x
,
y
,
height
and
width
of the area of interest in manager coordinates separated by commas.
Programmatically, this property can be used during a JSF action to
reset or modify the visible area by providing an instance of
IlvRect
as illustrated below.
public class ActionProvider {
[...]
public void changeAreaDisplayed() {
IltFacesNetworkView facesNetworkView = …;
facesNetworkView.setBoundingBox(new IlvRect(0,0,100,100));
}
}