documentationfor yFiles for HTML 2.6

Properties

edgeLabelModelsin LabelingDataGets or sets the mapping from edge labels to an IEdgeLabelLayoutModel used by the labeling algorithm instead of the original label model.
labelModelin IEdgeLabelLayoutGets the label model that describes the valid locations for this label.

Method Parameters

LabelingData ()in LabelingDataCreates a new instance of LabelingData which helps configuring GenericLabeling.
createLabelLayout (Edge, YOrientedRectangle, IEdgeLabelLayoutModel, PreferredPlacementDescriptor)in ILabelLayoutFactoryCreates a new ILabelLayout for the given edge.
getLabelPlacement (IEdgeLabelLayoutModel, YDimension, IEdgeLayout, INodeLayout, INodeLayout, Object)in LayoutGraphUtilitiesReturns the upper-left corner of the paraxial bounding box of the given edge label as encoded by the specified model parameter.

Implementing Types

DiscreteEdgeLabelLayoutModelDiscreteEdgeLabelLayoutModel describes the placement of rotated labels at some predefined positions along the edge.
FreeEdgeLabelLayoutModelFreeEdgeLabelLayoutModel allows placing edge labels at any location.
SliderEdgeLabelLayoutModelSliderEdgeLabelLayoutModel allows placement of labels at a set of continuous rotated positions along both sides of an edge or directly on the edge path.