Layout stage that automatically translates label layout information provided by the standard
label layout classes
IEdgeLabelLayout
and
INodeLabelLayout
to layout data
of type
LabelLayoutData
that is accessible by the keys defined in class
LabelLayoutKeys
.
Namespace: yWorks.yFiles.LayoutAssembly: yWorks.yFilesWPF.Algorithms (in yWorks.yFilesWPF.Algorithms.dll) Version: 2.2.0.2 (2.2.0.2)
Syntax
| C# |
|---|
public class LabelLayoutTranslator : ILayoutStage, ILayouter |
| Visual Basic |
|---|
Public Class LabelLayoutTranslator _ Implements ILayoutStage, ILayouter |
Remarks
Layout stage that automatically translates label layout information provided by the standard
label layout classes
IEdgeLabelLayout
and
INodeLabelLayout
to layout data
of type
LabelLayoutData
that is accessible by the keys defined in class
LabelLayoutKeys
.
One can use this layout stage as label layouter of a label aware layouter like
HierarchicLayouter
. This can be done by
assigning the stage by an appropriate call to
setLabelLayouter
.
Note that care must be taken on the choice of label model that is used by the
classes
IEdgeLabelLayout
and
INodeLabelLayout
. The calculated label positions
must be consistent with the label positions allowed by the label model. The best label layout
results are achieved by choosing
FreeEdgeLabelLayoutModel
for edge layouts and
FreeNodeLabelLayoutModel
for node layouts.
Inheritance Hierarchy
System..::..Object
yWorks.yFiles.Layout..::..LabelLayoutTranslator
yWorks.yFiles.Layout..::..LabelLayoutTranslator