public interface IlvLabelMovementPolicy
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.
IlvAnnealingLabelLayout.setLabelMovementPolicy(IlvLabelMovementPolicy)
Modifier and Type | Method and Description |
---|---|
boolean |
allowMove(IlvLabelingModel labelingModel,
Object label)
Allows or prohibits the movement of a
label . |
boolean allowMove(IlvLabelingModel labelingModel, Object label)
label
.
labelingModel
- The labeling model to which the label belongs.label
- The label.true
if it is allowed to move the label, and
false
otherwise.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.