Advanced Features > Link Shape Policies

Link shape policies allow you to manipulate and to constrain the shape of a polyline link. For instance, you can use a link shape policy if you want a link to always remain orthogonal. You can set link shape policies to links of type IlvPolicyAwareLinkImage, which is a subclass of IlvPolylineLinkImage.

Important
Link shape policies affect only the shape of the link to which it is set. In other words, link shape policies are different from link layouts, which analyze and reshape all links together globally.

The class IlvEnhancedPolylineLinkImage uses some predefined link shape policies internally. The class has a simple API that offers you all the benefits of link shape policies while hiding the details of the link shape mechanism. See Link Shape Policies of The Essential JViews Framework.

This section explains the details of the link shape mechanism, which allows you to extend or to implement your own link shape policies. The package ilog.views.graphic.linkpolicy contains two predefined link shape policies:

This section is organized as follows: