Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 184.108.40.206
public class EdgeLabelOrientationSupport
Public Class EdgeLabelOrientationSupport
To calculate the position and orientation of edge labels, whose placements are defined with the PreferredPlacementDescriptor , the OrientationLayouter would need the direction of the associated edge. Since this direction is not available for the OrientationLayouter, because it is a wrapper, the calculation must be done in the core layouter itself with the help of the EdgeLabelOrientationSupport.
Important: Since all layouters with integrated edge labeling could not deal with ambiguous preferred placement descriptors (combinations of the same setting e.g. source or target for the PlaceAlongEdge ), PreProcessLabel(Graph, LabelLayoutData, Direction) removes combinations and replaces the original descriptor with a "non-ambiguous" one during the layout calculation.