A layout stage that improves the placement of edge labels.

Namespace: yWorks.yFiles.Layout
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
public class LabelLayoutDataRefinement : AbstractLayoutStage
Visual Basic
Public Class LabelLayoutDataRefinement _ Inherits AbstractLayoutStage

Remarks

A layout stage that improves the placement of edge labels. This layout stage expects that its core layouter calculates initial edge label layout data bound to the data provider key EdgeLabelLayoutDpKey . Next, this stage tries to improve the position of the labels with respect to the preferred placement specifier of the labels.
Most commonly, this layout stage is used in conjunction with the integrated edge labeling functionality of class HierarchicLayouter . The following code snippet shows how this layout stage can be set up:
CopyC#
// 'hierarchic' is of type yWorks.yFiles.Layout.HierarchicLayouter.
// String together a label layout process.
CompositeLayoutStage ll = new CompositeLayoutStage();
ll.AppendStage(new LabelLayoutTranslator());
ll.AppendStage(new LabelLayoutDataRefinement());
// Set the compound label layout process as the label layouter for
// HierarchicLayouter.
hierarchic.LabelLayouter = ll;
hierarchic.LabelLayouterEnabled = true;

Inheritance Hierarchy

System..::..Object
  yWorks.yFiles.Layout..::..AbstractLayoutStage
    yWorks.yFiles.Layout..::..LabelLayoutDataRefinement

See Also