Skip navigation links

Package com.yworks.yfiles.layout

Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.

See: Description

Package com.yworks.yfiles.layout Description

Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.

There are many classes that provide layout information for the graph or elements of the graph, e.g., LayoutGraph, INodeLayout, IEdgeLayout or ILabelLayout. They contain sizes and locations of the elements.

This package contains the abstract base class for the major layout algorithms in yFiles: MultiStageLayout. It supports adding ILayoutStages to a layout algorithm that handle parts of the layout calculation. The ILayoutStages that are added by default as well as some other ILayoutStages are also provided by this package.

Aside from the layout information of the labels, there are some IEdgeLabelLayoutModels and INodeLabelLayoutModels that define valid locations for a label. This information can be used by generic labeling algorithms (e.g. GenericLabeling). The label placement can also be configured using a PreferredPlacementDescriptor, which is considered during integrated labeling.

To force edges to connect to specific ports, classes like PortConstraint, PortCandidate and PortCandidateSet are provided.

Related Documentation

See the yFiles Developer's Guide chapter on Automatic Graph Layout for a complete discussion of the yFiles algorithms for graph layout, edge routing, and label placement.

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