Skip navigation links

Package com.yworks.yfiles.layout.labeling

Provides algorithms for the automatic placement of node and edge labels, so called generic labeling algorithms.

See: Description

Package com.yworks.yfiles.layout.labeling Description

Provides algorithms for the automatic placement of node and edge labels, so called generic labeling algorithms.

Labeling algorithms only place the labels of a graph. Positions of nodes and edges are not changed. The algorithms are especially useful if a graph already has a good layout of nodes and edges, but labels need to be arranged in a separate step. If, for example, a layout algorithm which does not offer sufficient labeling support is used, then generic labeling algorithms can be applied in a second step.

GenericLabeling calculates high quality label positions by default. If running time matters most, its internal calculation can be switched to very fast but more simple algorithm that can result in less nice placements.

Related Documentation

See the yFiles Developer's Guide section on Automatic Label Placement.

Example Labeling Result

Label placement generated by GenericLabeling

Skip navigation links
© Copyright 2000-2017,
yWorks GmbH.
All rights reserved.