A layout stage that improves the placement of edge labels.
Namespace: yWorks.yFiles.LayoutAssembly: yWorks.yFilesNET.Algorithms (in yWorks.yFilesNET.Algorithms.dll) Version: 4.1.0.1 (4.1.0.1)
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:
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:
// 'hierarchic' is of type y.layout.hierarchic.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.setLabelLayouter(ll);
hierarchic.setLabelLayouterEnabled(true);
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.Layout..::..AbstractLayoutStage
yWorks.yFiles.Layout..::..LabelLayoutDataRefinement
yWorks.yFiles.Layout..::..AbstractLayoutStage
yWorks.yFiles.Layout..::..LabelLayoutDataRefinement