documentationfor yFiles for HTML 2.6

Properties

nodeLabelModelsin LabelingDataGets or sets the mapping from node labels to an INodeLabelLayoutModel used by the labeling algorithm instead of the original label model.
labelModelin INodeLabelLayoutGets 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 (YNode, YOrientedRectangle, INodeLabelLayoutModel)in ILabelLayoutFactoryCreates a new ILabelLayout for the given node.
getLabelPlacement (INodeLabelLayoutModel, YDimension, INodeLayout, Object)in LayoutGraphUtilitiesReturns the upper-left corner of the paraxial bounding box of the given node label as encoded by the specified model parameter.

Implementing Types

DiscreteNodeLabelLayoutModelDiscreteNodeLabelLayoutModel allows placing labels at eight positions around a node and at nine positions inside the node.
FreeNodeLabelLayoutModelFreeNodeLabelLayoutModel allows placing node labels at any desired position.