ilog.views.graphlayout.labellayout
Interface IlvLabelMovementPolicy

All Known Implementing Classes:
IlvOverlappingLabelMovementPolicy

public interface IlvLabelMovementPolicy

An interface used to define the policies when a label is allowed to be moved by the label layout algorithm.

For instance, you can use it to allow only labels to be moved that overlap with obstacles, or labels to be moved that belong to certain obstacles (nodes, links, cities in a map, and so forth). A label that is not moved is still respected during layout, in the sense that the other labels may try to avoid overlaps with the label. So, the label is not completely filtered away.

Since:
JViews 5.5
See Also:
IlvAnnealingLabelLayout.setLabelMovementPolicy(ilog.views.graphlayout.labellayout.IlvLabelMovementPolicy)

Method Summary
 boolean allowMove(IlvLabelingModel labelingModel, Object label)
          Allows or prohibits the movement of a label.
 

Method Detail

allowMove

boolean allowMove(IlvLabelingModel labelingModel,
                  Object label)
Allows or prohibits the movement of a label.

Parameters:
labelingModel - The labeling model to which the label belongs.
label - The label.
Returns:
true if it is allowed to move the label, and false otherwise.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.