Release Notes
yFiles for Java (Swing)

Version 4.0 is the latest major release for yFiles for Java (Swing) in the yFiles for Java (Swing) 4.0 major release series.
See the changelog for a list of all changes in this and all other versions.

Below you will find the technical requirements and a list of all new features and improvements.

Technical Requirements

Building applications based on yFiles for Java (Swing) requires the Java SE Development Kit 8 or newer. Running the demo applications requires JRE 21 or newer.

All changes
Version 4.0

This version brings a major overhaul of many parts of the API, resulting in a lot of incompatible changes. We have designed many functions to be simpler, more intuitive and more consistent and removed technical debt. In addition, this release contains numerous new features, improvements, and bug fixes to all parts of the library.

New Features, Improvements, and Bug Fixes

Categories: General Graph GraphBuilder Components Rendering Selection, Focus, Highlight Styles Interaction Label Editing Snapping Clipboard Folding GraphML Demos View-Layout-Bridge Layout Hierarchical Layout Tree Layout Orthogonal Layout Edge Router Labeling Organic Layout Circular Layout Radial Layout Radial Tree Layout Alignment Stage Series-parallel Layout Clear Area Layout Multi-page Layout Partial Layout Tabular Layout Component Layout Algorithms Analysis Geometry

General

New Features and Improvements

  • The yFiles for Java (Swing) event handling has been refactored to be in line with the Java event handling API:
    • The IEventArgs interface that all yFiles *EventArgs classes inherited from has been removed. Instead, the *EventArgs classes now extend java.util.EventObject.
    • As EventObject takes the event source as parameter and provides it as property, all constructors now take the event source as first parameter.
    • The IEventListener interface now extends java.util.EventListener and the event source parameter has been removed from its onEvent method.
  • The lookup API has been restructured. In particular, the LookupDecorator class is now easier to use, but most use cases are covered without having to access the low-level lookup architecture.
  • Added missing information whether method return values, method parameters, or properties can or cannot be null.

Graph

New Features and Improvements

  • The new IGraph#getEdgesBetween method returns all edges between two ports or port owners.
  • CompositeLabelModel now cannot only combine label models but also individual label model parameters or a mix of both kinds. Furthermore, it supports assigning a profit value to a parameter or model that can be used when placing labels during an automatic layout.
  • The new CompositeLabelModel#addParameter method wraps a given parameter of one of the composed label models.
  • The methods of IGraph now check consistently whether given geometric arguments are neither infinite nor NaN.
  • The rotation direction of OrientedRectangle, NodeLabel, EdgeLabel and FreeEdgeLabelModel is now clockwise to be consistent with the other models.
  • The default placement for new edge labels is now on the middle of the edge path instead of on the first edge segment.
  • The label models ExteriorLabelModel, InteriorLabelModel, and InteriorStretchLabelModel have been renamed to ExteriorNodeLabelModel, InteriorNodeLabelModel, and StretchNodeLabelModel, respectively, to make it clear that only nodes are supported as label owner for these models.
  • The implementations of ILabelModelParameter and IPortLocationModelParameter used by the ILabelModel and IPortLocationModel classes are now public and provide all properties necessary to recreate them on the models. Consequently, the static LabelModelParameterSerializer and PortLocationModelParameterSerializer classes, which could be used to retrieve those properties and recreate the parameter, have been removed.
  • The ILabelModel parameter of the ILabelModelParameterFinder#findBestParameter and ILabelModelParameterProvider#getParameters methods has been removed as it was only very rarely required.
  • The GraphCopier API has been enhanced to offer improved clarity and functionality.
    • The GraphCopier has been optimized since its support for the GraphClipboard has been removed.
    • The GraphCopier#copy method now uses an IStreamIterable of items to define the subset to copy.
  • The SimpleNode, SimpleEdge, SimpleBend, SimpleLabel, and SimplePort classes now provide a convenience LookupDecorator instance through the getDecorator method.
  • The ILabelModel#createDefaultParameter method and most of its implementations have been removed as it was often unclear what β€œdefault” meant. Most label models already had a corresponding Create*Parameter method. For the remaining models, the GroupNodeLabelModel#createTabParameter method and the FreeNodeLabelModel#CENTER and FreePortLabelModel#CENTER fields have been added.
  • The structural properties on graph items now are never null. This affects IEdge#SourcePort, IEdge#TargetPort, ILabel#Owner, IPort#Owner, and IBend#Owner.
  • The IGraph#groupNodes method now has overloads with additional parameters that specify the Style and Tag of the newly created group.
  • EdgePathLabelModel and EdgeSegmentLabelModel have been improved to provide better placements with edge-cases where the path is too short for the label or degenerates completely.
  • GroupNodeLabelModel no longer triggers an IllegalArgumentException when used with / set for a node that does not use GroupNodeStyle. GroupNodeLabelModel is still not intended to be used with nodes that do not use GroupNodeStyle. This restriction has been lifted to support workflows where the node style is set to GroupNodeStyle after the label model is set to GroupNodeLabelModel.
  • Changing the height of an arc or bridge edge via its handle is now undoable.
  • The static parameter fields of FreeNodePortLocationModel have been renamed analogue to the static parameter fields in InteriorNodeLabelModel.
  • FilteredGraphWrapper now supports changing the node and edge predicates after creation.
  • The PropertyChanged event on the UndoEngine class is now also emitted if the token is changed.
  • The methods YList#addFirst and YList#addLast have been renamed to push and pushLast, so they don't conflict with the default methods
    List#addFirst and addLast that have been added with JDK 21.

Bug Fixes

  • Fixed ILabelOwner.getLabels().contains and IPortOwner.getPorts().contains implementations. Previously, these methods returned true for all labels/ports in the owner's graph instead of only for labels/ports belonging to the owner.
  • Fixed a bug in EdgeSegmentLabelModel and EdgePathLabelModel which caused a gap in supported positions close to the source and target node.
  • When using the EdgeSegmentLabelModel and SmartEdgeLabelModel classes, label placement at source and target nodes is now correct when an index is specified that is less than zero or greater than the number of bends of the edge.
  • The EdgeSegmentLabelModel class now calculates valid label locations for selfloop paths with one port at the side of the node.
  • The EdgeSegmentLabelModel class now calculates valid label locations for paths with duplicate bends, i.e., paths in which two or more consecutive bends have the same location.
  • GraphClipboard now properly respects ParentNodeDetection mode for sub trees.
  • GraphClipboard's ParentNodeDetection now can use ParentNodeDetectionModes#NONE as fallback if no valid parent is found for modes ParentNodeDetectionModes#SELECTION or ParentNodeDetectionModes#PREVIOUS_PARENT.
  • Fixed NullPointerException that occured when removing highlighted edges from their graph.
  • Fixed memory leak in HighlightIndicatorManager that occurred when removing highlighted model items from their graph.
  • Fixed a bug where labels with an initial opening brace were not correctly serialized.
  • NinePositionsEdgeLabelModel center placements above and below the edge have been improved when the angle wasn't close to one of the two coordinate axes and the distance was non-zero. Previously, labels could seem to jump around when the path changed and weren't always close to the center of the path.
  • GroupNodeLabelModel no longer stretches tab labels and tab background labels into the collapse/expand icon of the corresponding GroupNodeStyle.
  • GroupingSupport's methods enlargeGroupNode and enlargeAllGroupNodes do not create empty undo units anymore if nothing has changed.
  • The methods NavigationInputMode#expandGroup and NavigationInputMode#enterGroup, as well as the Command#EXPAND_GROUP and Command#ENTER_GROUP commands do not create empty undo units anymore if nothing has changed.
  • Method NavigationInputMode#exitGroup and the Command#EXIT_GROUP command now create undo units if the bounds of the exited group node were adjusted.

GraphBuilder

New Features and Improvements

  • The NodeCreator#getUpdatedStyle, EdgeCreator#getUpdatedStyle, and LabelCreator#getUpdatedStyle methods now uses the default style from the graph as fallback if the style provider is not set.
  • The LabelCreator#getUpdatedLayoutParameter method now uses the default layout parameter from the graph as fallback if the layout parameter provider is not set.
  • The NodeCreator, EdgeCreator, and LabelCreator classes can now be used without a GraphBuilder. This enables developers to apply styles and labels from a data object in cases where a GraphBuilder is not suitable for graph creation.
  • A NodesSource now allows for recursive definition of child nodes in a grouping hierarchy. The new methods addChildNodesSource and createChildNodesSource allow for defining a source to fetch child node items from a node data item.
  • A NodesSource now allows for implicit definition of parent nodes in a grouping hierarchy. The new methods addParentNodesSource and createParentNodesSource allow for defining a source to fetch a parent node item from a node data item.

Components

New Features and Improvements

  • The rendering order of nodes in the GraphOverviewComponent has been improved to be more in sync with the rendering order in the corresponding GraphComponent.
  • GraphOverviewComponent now uses its ContentGroup instead of the RootGroup to add the visualization of its graph content. This makes it easier to customize the overview for example by adding a background visual.
  • The GraphModelManager#LabelLayerPolicy property, which defines whether labels should be rendered at their owner or in a separate layer, has been split into three separate properties NodeLabelLayerPolicy, EdgeLabelLayerPolicy, and PortLabelLayerPolicy to support different policies for node, edge, and port labels.
  • The new SelectionModelChanged event of GraphComponent is raised when the model managing the selection is changed itself, not when the selected items change.
  • Adding visuals without an explicit size directly to canvas object groups (instead of VisualGroup instances) now works consistently. Previously, they may sometimes never have appeared.
  • ViewportLimiter now also works with isometric projections and offers options to use the CanvasComponent#ContentBounds for the limiting. It now offers the possibility to specify margins in the view coordinate system around the specified bounds, and bounds can be given as a list of convex polygon points. CanvasComponent now also notifies the viewport limiter when the size of the ContentBounds or the size of the CanvasComponent changes.
  • CanvasComponent and GraphComponent now have a new scroll bar design, as well as new behavior if either HorizontalScrollBarPolicy or VerticalScrollBarPolicy is set to AS_NEEDED. The new style is similar to system scrollbars in many operating systems, overlays the content and gets out of the way when not needed or interacted with. These dynamic scroll bars can be disabled using a client property with key CanvasComponent#DISABLE_DYNAMIC_SCROLL_BARS.
  • GraphComponent now uses GraphViewerInputMode as the default InputMode for basic graph exploration.
  • The ICanvasContext#CanvasComponent property (and consequently IRenderContext and IInputModeContext) is now guaranteed to have a non-null value.
  • All predefined IEventRecognizer constants can now be found in the same class, IEventRecognizer, which improves discoverability. In addition, their names now follow the platform conventions, i.e. they are formulated in the present tense and use the same wording as corresponding input events.
    Similarly, the events on CanvasComponent which are related to input devices now have the same consistent names.
  • The CanvasComponent#ContentRect property is now named ContentBounds to make its purpose more clear. The ContentRectUpdatingEnabled method has been renamed likewise.
  • The superfluous CanvasComponent#setContentRect method has been removed in favor of the setter of the ContentBounds property.
  • It is now possible to have more than one BridgeManager. This allows you to have different types of bridges on different types of edges.
  • Small scrollbar changes and the factor for scrolling with the mouse wheel (MouseWheelScrollFactor) have been increased to allow for faster scrolling.
  • The new CanvasComponent#HorizontalScrollEventRecognizer property allows customizing switching from vertical to horizontal scrolling.

Bug Fixes

  • CanvasComponent: Animated viewport changes could lead to strange behavior if maximum or minimum zoom were set and violated by the viewport change.
  • Fixed a bug which might have caused port selection visualizations to disappear in image export or printing under rare conditions.
  • Fixed an issue where a sequential animation would break when the preferred duration was set to zero.

Rendering

New Features and Improvements

  • The new AbstractObjectRenderer class allows conveniently implementing the IObjectRenderer interface.
  • New classes formalize the data passed as RenderTag to implementations of IObjectRenderer.
    • The new PortCandidateRenderTag class will be passed as render tag for port candidates.
    • The new MarqueeRenderTag class will be passed as render tag for the marquee rectangle renderer of the MarqueeSelectionInputMode class.
    • The new LassoRenderTag class will be passed as render tag for the lasso path renderer of the LassoSelectionInputMode class. The new LassoPathState enum defines the current state of the lasso selection path in this class.
    • The new LabelCandidateRenderTag class will be passed as render tag to the label candidate renderer of the LabelPositionHandler.
  • The new IObjectRenderer#VOID_OBJECT_RENDERER constant provides a singleton renderer that renders nothing.
  • Layout animation performance has been improved for edges with many bends.

Selection, Focus, Highlight

New Features and Improvements

  • The new Domain property on the HighlightIndicatorManager class matches the Domain property on the SelectionIndicatorManager class and allows automatic removal of highlights no longer present in the domain.
  • FocusIndicatorManager supports a new policy that will only show the keyboard focus indicator, when the user is actually using the keyboard to manipulate the focus.

Styles

New Features and Improvements

  • New styles that are based on the composition design pattern make it easier to combine existing styles into a single item visualization. These styles are available for all graph items via the CompositeNodeStyle, CompositeEdgeStyle, CompositeLabelStyle, and CompositePortStyle classes.
  • Similarly, new styles that are based on the delegation design pattern make it easier to implement custom styles that extend an existing style. For this, derive your style implementation from the DelegatingNodeStyle, DelegatingEdgeStyle, DelegatingLabelStyle, or DelegatingPortStyle class.
  • The new ShapePortStyle class displays ports as geometric shapes and supports the same shapes as the ShapeNodeStyle class.
  • The Arrow class now supports more types and features. In particular:
    • There are three new shapes that are similar to what is available in common drawing apps: ArrowType#CHEVRON, ArrowType#DELTOID, and ArrowType#KITE.
    • The width and height can now be scaled independently from each other.
    • An arrow can now specify whether the end of the edge the arrow belongs to should be cropped at the port or at the boundary of the port's owner. This alleviates the need to use PortDecorator#EdgePathCropper for this.
  • The new AbstractPathEdgeStyle class simplifies using a complex GeneralPath as the edge path of a style. Subclasses only have to create the path while the style already handles the visualization, including placing arrows and bridges. Several callback methods can be overridden to customize the behavior.
  • The ShapeNodeStyle class now supports more shapes, namely PENTAGON, OCTAGON_STANDING, TRIANGLE_POINTING_LEFT, and TRIANGLE_POINTING_RIGHT. These shapes are also available as TextWrappingShape.
  • Node shapes that are stars or arbitrary polygons are now easy to implement with new factory methods of the GeneralPathNodeStyle class.
  • Group nodes and nodes with GroupNodeStyle now have more useful default port candidates. Either four candidates, one in each cardinal direction, for group nodes with GroupNodeStyle. Or a single central port for folder nodes with a GroupNodeStyle.
  • The CollapsibleNodeStyleDecorator class positions and styles the button now closer to what GroupNodeStyle does to achieve a more modern look.
  • The new getLassoTestable method of the interfaces INodeStyleRenderer, IEdgeStyleRenderer, ILabelStyleRenderer, and IPortStyleRenderer is similar to the existing getMarqueeTestable method, so marquee and lasso selection do no longer differ in the ways the testable is retrieved.
  • The ArrowEdgeStyle's bounds now are tightly enclosing the rendered shape. Before they were too large.
  • Bends in edges that use ArcEdgeStyle, ArrowEdgeStyle, or BridgeEdgeStyle are no longer shown when selecting these edges. Additionally, marquee and lasso selection will not select these bends anymore even if they lie in the selection rectangle.
  • The IconLabelStyle now has a default icon size of 24x24 instead of empty, such that the icon is always visible.
  • If GroupNodeStyle's tab width is set to 0, the tab width does not reduce the corner radius of the style's outline anymore. However, it still forces the corner radius of the style's inner corners (i.e. the corners of the content area on the side of the style's tab) to 0.
  • GroupNodeStyle's new MinimumContentAreaSize property simplifies enforcing a minimum size for the content area a group node.
  • GroupNodeStyle offers the possibility to have its tab width grow (or shrink) depending on the preferred size of associated tab and tab background labels.
  • The new GroupNodeStyle#RenderingTransparentContentAreaEnabled property controls whether a semi-transparent ContentAreaPaint works as expected by showing what's behind the group node.
  • ShapeNodeStyle now considers the pen thickness when rendering rectangle, round rectangle and ellipse shapes, i.e. the pen is rendered half inside and half outside the node bounds, like for the other shapes.
  • Pens with dash pattern now support BasicStroke#CAP_BUTT as end line cap. Previously the cap was changed to BasicStroke#CAP_SQUARE.
  • The classes AbstractEdgeStyle, AbstractNodeStyle, AbstractLabelStyle, AbstractPortStyle, and AbstractStripeStyle are now generic and take the subtype of the IVisual that is returned by their createVisual and updateVisual methods as generic type.

Bug Fixes

  • GroupNodeStyle's associated IGroupPaddingProvider now correctly calculates insets for β€œsmall” nodes, i.e. nodes whose height (or width) is less than the style's TabHeight property.
  • The selection, highlighting and focus visualization of edges using BridgeEdgeStyle or ArcEdgeStyle no longer disappears too early if the edge path is only partially in the viewport.
  • The intersection calculation for RectangleNodeStyle has been corrected for some previously failed instances that caused edges to end in midair or disappear.
  • The following node styles now consider the pen thickness in the visibility test: ShapeNodeStyle, ArrowNodeStyle, GeneralPathNodeStyle, GroupNodeStyle, and RectangleNodeStyle.
  • With ArcEdgeStyle, the three center positions of the NinePositionsEdgeLabelModel are now in the right places. Previously they were often way off.
  • GroupNodeStyle's collapse/expand icon can now be reliably hit in all cases. In rare cases, changing the value of one the properties that affect the icon's location were not taken into account for hit tests.
  • GroupNodeStyle no longer renders a hairline in place of the tab when using a Pen with TabWidth 0.
  • LabelStyle now adds ellipsis more reliably at the end when the text does not fit into the specified text wrapping shape.
  • Bezier edges no longer devolve into polyline paths under rare circumstances.
  • ArrowEdgeStyle now correctly considers its visibility with thicknesses greater than 13.

Interaction

New Features and Improvements

  • Marquee and lasso selection have been enhanced to support multiple selection policies. While the default gestures replaces the selection, pressing the Ctrl , Shift , or Alt modifier during the gestures extends, subtracts or toggles the current selection with the elements in the marquee or lasse area.
  • The IHitTester interface has been changed to support faster hit testing. The generic type has been removed. Instead, a GraphItemTypes parameter has been added that is used to reduce hit tests to the specified item types.
  • The new PointerLongPress event is raised when the mouse is pressed and stays still for a configurable amount of time.
  • The new PointerLongRest event is raised when the pointer stays still for a configurable amount of time during a move or drag gesture.
  • All events of an IInputMode which report creation of, changes to, or deletion of model items now have arguments of type InputModeItemEventArgs or InputModeItemChangedEventArgs. This type provides the affected item and the IInputModeContext for the involved input mode.
  • The keys to modify the gestures of various input modes have been adjusted to better match those of other often used applications:
    • To temporarily disable snapping during edge creation, moving, or resizing items, the Alt key can now be pressed instead of the Ctrl key.
    • When resizing a node using its reshape handles, the Ctrl key instead of the Alt key can be pressed to keep the center of the reshaped node.
    • To reparent a node to another parent during a drag gesture, the Ctrl key has to be pressed instead of the Shift key.
  • Moving items interactively now supports constraining the move gesture to an octilinear direction. This constraint is used when pressing the Shift key while dragging the items.
  • The new GraphEditorInputMode#CreationSelectableItems property allows you to specify GraphItemTypes which should be selected after creation.
  • The new CreateEdgeInputMode#EdgeDirectionReversed event and the new CreateEdgeInputMode#onEdgeDirectionReversed method are triggered when the direction of the edge creation changed during edge creation.
  • The new HandleType#VOID enum value makes a handle invisible and excludes it from hit testing.
  • Reconnecting edges to other nodes is now allowed per default.
  • Elements can now be moved without selecting them first.
  • The new CreateEdgeInputMode#MinimumSelfLoopBendCount property allows for specifying the number of bends an edge must at least have before it can be created as selfloop.
  • The new CreateEdgeInputMode#ShowStartPortCandidateDelay property allows for specifying a delay after which start port candidates are displayed when the user hovers over a start port candidate owner.
  • The new GraphEditorInputMode#MovableUnselectedItems property allows for defining items which can be moved without selecting them first. The MovableUnselectedItemsPredicate property can be used for closer specification.
  • Edge creation now supports constraining the current edge segment to use an octilinear direction. This constraint is used when pressing the Shift key while dragging the pointer.
  • The new GraphEditorInputMode#setNodeLocation method uses the IPositionHandler of a node to change its location, and this way also adjusts the attached orthogonal edges and the position of child nodes if the given node is a group node.
  • The CanvasComponent's event system is now based on the PointerEventArgs API instead of mouse events.
  • The MoveInputMode class now also handles moving labels, thus the MoveLabelInputMode has been removed.
  • The event ItemsCopied on GraphViewerInputMode and the events ItemsCopied, ItemsCut, ItemsPasted, ItemsDuplicated, and DeletedSelection on GraphEditorInputMode now use ItemsEventArgs providing the items that are the subjects of the events.
  • Lowered the MoveViewportInputMode#Priority to 105 to make viewport panning with CTRL or SPACE modifiers easier in dense graphs.
  • The rendering order of visuals created by an InputMode now corresponds to the input mode's Priority. In other words, visualizations of input modes with a smaller priority value (= higher priority) are drawn on top.
  • The GraphViewerInputMode#findItems and GraphEditorInputMode#findItems methods now consider the actual z-order of the hit items.
  • The GraphViewerInputMode#ItemClicked and GraphEditorInputMode#ItemClicked events and the cyclic selection now consider the actual z-order of the hit items at the cursor location. Bends and invisible ports are now properly taken into account and hit before their owners.
  • The PointerEventArgs#Handled property has been added that can be used to set and detect if another listener already handled the event.
  • MoveViewportInputMode now gracefully handles concurrent programmatic viewport modifications.
  • The modifier for using the ILabelModelParameterFinder during label movement can now be changed with the LabelPositionHandler#UseParameterFinderRecognizer property.
  • The ClickInputMode#Clicked event is now raised also for double-clicks and multi-clicks. Clicking multiple times in the same location increments the ClickEventArgs#ClickCount by one for each click.
  • The MoveInputMode and MoveUnselectedInputMode properties of GraphEditorInputMode have been renamed to MoveSelectedItemsInputMode and MoveUnselectedItemsInputMode to better describe what they are used for. Associated properties and methods have been renamed accordingly.
  • Starting edge-creation from a child node inside a group node now does not immediately snap to the parent when moving over the group nodes content. Instead, it only snaps to the closest port when hovering the tab or stroke.
  • Toggling the item selection via Ctrl+Space now prefers toggling the selection state of GraphComponent#CurrentItem over deselecting a single selected item.
  • The IInputMode API has been updated for clarity: the InputMode property has been removed from the interface. Instead, most implementations now offer the protected ParentInputModeContext property to clearly indicate its role as the input mode's parent context. Most input modes can create a context which can be passed to dependents via the protected createInputModeContext method. The created context has the input mode set as the parent input mode. The new InputModeContext class may be used by implementations to conveniently create new contexts.
  • When using the GraphViewerInputMode, the viewport can now be moved by either dragging with the left or middle mouse button.
  • When using the GraphEditorInputMode, the viewport can now be moved by either dragging with the middle mouse button or by dragging with the left mouse button when pressing the Ctrl or Space key.
  • The new Command#ZOOM_TO_SELECTION zooms to the bounding box around all selected items. It can be triggered by the keyboard short cut Alt+2.
  • Edge creation can now be cancelled by ending the gesture over the source node.
  • Edge creation is canceled if the GraphComponent loses the focus.
  • GraphViewerInputMode's and GraphEditorInputMode's ClickHitTestOrder now reflects the z-Order of the elements. By enabling SkippingHitLabelsEnabled (the default) elements behind labels can still be prioritized over the labels.
  • Several default keyboard shortcuts have been adjusted to more widely used ones:
    • Ctrl+0 or Alt+0 sets the zoom to 100%.
    • Alt+1 fits the content in the view.
    • Alt+2 brings the selection into the view.
    • Alt+3 brings the current item into the view.
    • Ctrl+Plus increases the zoom value.
    • Ctrl+Minus decreases the zoom value.
    • Alt+Left collapses a selected group node.
    • Alt+Right expands a selected folder node.
    • Alt+Up exits the current folder node.
    • Alt+Down enters the current folder node.
    • Alt+Shift+Left or Alt+Shift+Right toggles the expansion state of a selected group or folder node.
  • GraphEditorInputMode now allows for starting label editing just by starting to type. The EditLabelOnTypingAllowed property can be used to configure this setting, which is turned on, by default.
  • The default gesture for label editing has been updated to also trigger when the user hits the Enter key.
  • The HandleTypes enums has been refactored to a non-flaggable HandleType enum, and the values have been adjusted to those used in the library as well as some custom variants for individual use.
  • Custom IHandle implementations can use the new IHandle#Tag property for various purposes, including custom handle visualizations. yFiles does not use the property and initializes it with null, but decorating handles forwards any values unmodified.
  • OverviewInputMode now uses the CanvasComponent's MouseWheelZoomEventRecognizer to determine if the used performed a zoom gesture.
  • Dragging a selected edge doesn't move all its bends anymore which often screwed up the first and last edge segment.
  • If a Wheel event is handled by code, the default behavior (zoom/scroll) will be cancelled.
  • Command handling has been improved: The previous ICommand, inspired by WPF's commands, has been replaced with an enumeration of primary input gestures called Command. GraphComponent now manages the execution of commands:
    • GraphComponent#executeCommand runs the specified command with an optional parameter.
    • GraphComponent#canExecuteCommand indicates whether the specified command can be executed.
    • The CanExecuteChanged event is triggered when the executable state of a command has changed.
  • The MouseHoverInputMode has been renamed to ToolTipInputMode to better reflect its function.
  • The handleIsHit and getClosestHitHandle methods of HandleInputMode now have an additional parameter which specifies the PointerType of the related user gesture.
  • The GraphEditorInputMode#OrthogonalEdgeEditingContext property is now set and enabled per default and may not be null anymore. Edges can be individually configured to be edited orthogonally by providing an apropriate IOrthogonalEdgeHelper in their lookup.
    • For edges using a PolylineEdgeStyle, the style's new OrthogonalEditingEnabled property can be set so such a helper is automatically provided.
    • To disable orthogonal editing for all edges, the Enabled property of the OrthogonalEdgeEditingContext can be set to false.
    • To enable orthogonal edge editing for all edges that don't explicitly forbid this, the OrthogonalEdgeEditingContext#FallbackEdgeHelperProvider property can be set to a helper supporting orthogonal edge editing.
  • NavigationInputMode now interprets the direction of arrow keys in view coordinates by default. Previously the default settings could lead to surprising behavior when combined with a Projection on GraphComponent.
  • Improved keyboard navigation for graph items.
  • The protected Should- methods of the input modes have been removed and replaced by predicate properties. This simplifies adjusting the behavior without the need to subclass the input modes.
  • LabelDropInputMode now consults the IEditLabelHelper of possible drop targets when dragging and dropping labels.
  • New overloads of the CreateEdgeInputMode#startEdgeCreation method can be used to start interactive edge creation from a node or port, respectively.
  • The parent node detection of GraphClipboard has been streamlined.
  • The new GraphViewerInputMode#HitTester property works in the same way as the GraphEditorInputMode#HitTester property.
  • The GraphEditorInputMode#duplicateSelection method now also dispatches MultiSelectionStarted and MultiSelectionFinished events.
  • The items reported by the HandleInputMode#AffectedItems property now include edges that were modified with the height handle of BezierEdgeStyle and ArcEdgeStyle.
  • The PortRelocationHandle#createDummyEdge method has been renamed to createPreviewEdge and can be overridden.
  • The protected CreateEdgeInputMode#createPreviewBend method has been added that can be overridden to customize bends added during edge creation.
  • The edge creation start gesture while dragging inside the source node can now be customized with CreateEdgeInputMode#StartPortOwnerDraggingFinishedRecognizer.
  • The ItemDropInputMode#DragDropped event is now raised after the drop gesture has actually finished, in line with how similar events are raised elsewhere.
  • The MoveInputMode and HandleInputMode sub-modes of GraphEditorInputMode no longer have a pre-set SnapContext. Instead, they get their SnapContext from the InputModeContext. That way, setting the SnapContext on GraphEditorInputMode will affect all sub-modes unless a custom SnapContext is set to them.
  • The resize handle rendering order has been adapted to improve usability for small nodes.
  • The static member GraphClipboard#DefaultGraphClipboard has been added and is used per default as GraphComponent#Clipboard. This way copy&paste operations work between multiple GraphComponent instances without the need to set a shared GraphClipboard instance first.
  • The sub-input modes of GraphViewerInputMode and GraphEditorInputMode can now be replaced while the input mode is installed.

Bug Fixes

  • After moving a folder node in closed state with orthogonal edge editing enabled, folding edges no longer get incorrect additional segments when the folder is expanded.
  • Toggling the selection of an item using the keyboard now always toggles the selection of the focused item. Previously, if exactly one other item was selected when toggling, that item was deselected, making it virtually impossible to select multiple individual items using the keyboard.
    To fix this, the behavior of Command#TOGGLE_ITEM_SELECTION has been adjusted accordingly, and the behavior the Command#SELECT_ITEM and Command#DESELECT_ITEM has also been changed accordingly.
  • NavigationInputMode now reliably brings items selected with keyboard navigation into the view. Previously this only worked for nodes.
  • DropInputMode (and derived types) now continues working properly even if the control's template changes.
  • Several members of EditLabelInputMode could not be overwritten by mistake. The install, uninstall, stop, and cancel methods and the Enabled property can now be overwritten.
  • GraphViewerInputMode#findItems and GraphEditorInputMode#findItems methods: when the filter includes both edges and bends, the edge will no longer be ignored if any of its bends are hit.
  • GraphViewerInputMode#findItems and GraphEditorInputMode#findItems method: when using GraphItemTypes#ALL, bends will not be ignored. Furthermore, the interfaces IBendSelectionTester and IPortSelectionTester are properly queried.
  • GraphViewerInputMode#findItems and GraphEditorInputMode#findItems method: Ports with a style are no longer reported twice.
  • When moving the viewport in a GraphComponent that has a projection, the inertia now works in the right direction.
  • Fixed that the marqueeSelect and lassoSelect methods of GraphEditorInputMode and GraphViewerInputMode were called with a wrong input mode context.
  • Overloading GraphViewerInputMode#findItems or GraphEditorInputMode#findItems without the context parameter now finds the items correctly.
  • Fixed an issue where keyboard navigation would stop working when two items were positioned at the same location.
  • Fixed an issue where changing the GraphComponent#InputMode while the context menu is open would lead to a crash.
  • Fixed a bug in HighlightIndicatorManager that could result in missing or surplus highlight visualizations when changing the GraphComponent#HighlightIndicatorManager.
  • Self-loops no longer disappear when resizing nodes while orthogonal editing is enabled.
  • Fixed a bug in MoveViewportInputMode that caused the inertia feature to mistakenly start moving the viewport after the mouse has stopped before being released.
  • Starting a CanvasComponent/GraphComponent viewport animation now properly stops a running MoveViewportInputMode inertia animation.
  • The direction of the first edge segment during orthogonal edge creation is now correctly determined when the source port candidate lies on the node border.
  • Fixed a bug in some input modes which led to undefined behavior if the mode has been uninstalled in a handler for its own events.
  • Fixed, that the ClickInputMode#FocusClickSwallowingEnabled property had no effect.

Label Editing

New Features and Improvements

  • The API related to label editing has been enhanced by introducing a new EditLabelInputMode, which is now a subordinate mode of GraphEditorInputMode. The new input mode consolidates the methods, properties, and events necessary for customizing label editing. The key methods, addLabel and editLabel, remain accessible through GraphEditorInputMode.
  • The text editor will now stay open by default if label text validation fails.
  • Each ILabel and ILabelOwner now includes a default implementation of IEditLabelHelper in its lookup. The IEditLabelHelper interface has been updated to offer greater control over the label editing process.
  • The API related to label editing has been removed from TableEditorInputMode, except for the key methods addLabel and editLabel. Label editing is now handled through GraphEditorInputMode's EditLabelInputMode.

Snapping

New Features and Improvements

  • The snapping feature has been refactored and enhanced to support more use cases. Previously, items could only snap to points or orthogonal lines. Now lines with any orientation and circle segments can be defined as references where items can snap to. Furthermore:
  • Snapping to circles, grids, and specific node sizes has been refactored to work analogue to the snapping to a SnapLine, so SnapCircle, SnapGrid, and SnapSize instances are created and are available for the SnapResult providers.
  • Label snapping is now also handled by the GraphSnapContext, so the LabelSnapContext has been removed. Configuration options have been moved from LabelSnapContext to GraphSnapContext.
  • Additional improvements:
    • The new GraphSnapContext#AffectedItems property provides the items for which SnapResult shall be collected.
    • The configuration options of GraphSnapContext are now easier to use and more concise.
    • The new protected methods collectGridSnapReferences and collectSameSizeSnapReferences of GraphSnapContext can be overridden to customize the SnapGrid and SnapSize instances items can snap to.
    • The new SnapReference class is now the base class of SnapLine, and the new SnapGrid, SnapSize, and SnapCircle classes. The new SnapReference#SnappableItems property describes which item types may snap to this reference.
    • The new SnapContext#SnapResultPen property is used as default pen for the SnapResult rendering.
    • The new OrthogonalSnapLine#Croppable property is used to decide which snap lines to crop if GraphSnapContext#SnapLineCroppingEnabled is true.
    • The new properties Reference, Item, and ItemAnchor of the SnapResult class can be used by the IObjectRenderer for the visualization of the SnapResult.
    • New methods of ReshapeRectangleContext simplify the calculation of the bounds for a specified pointer delta or the SnapConstraint necessary to result in a specified width, height or side location.

Clipboard

New Features and Improvements

  • Members of GraphClipboard and GraphEditorInputMode with Element in their name that actually referred to model items were renamed to Item to clarify their usage.
  • The GraphClipboard#paste method now accepts an optional pasteLocation parameter specifying the center of the bounds of the pasted items.
  • The events on GraphClipboard now use GraphClipboardEventArgs that provide the current IGraphClipboardContext and the Items.
  • IClipboardHelper now has methods to support duplicate, too: shouldDuplicate and onDuplicated.
  • GraphClipboard's cut, copy, paste, and duplicate methods now use an IStreamIterable to determine the subgraph to copy.
  • GraphClipboard now uses an optimized ClipboardGraphCopier for its clipboard operations instead of the general GraphCopier.

Bug Fixes

  • In certain rare cases, the insertion of edges could end up in an endless loop. This has now been fixed.

Folding

New Features and Improvements

  • The process of configuring edges at folder nodes has been simplified, resulting in a significant reduction in the number of configuration calls for merged edges.
  • The default implementation for folder nodes and folding edge converters has been enhanced, providing more powerful capabilities for synchronizing and initializing various aspects with granularity.
  • Collapsed group nodes (folder nodes) can now have different tags from their expanded form (group nodes).
  • Changes made to view states (folder nodes, folding edges) can now be reflected back to the master items. New methods, updateGroupNodeState and updateMasterEdges, have been added to IFolderNodeConverter and IFoldingEdgeConverter, respectively, for handling these updates.

Bug Fixes

  • Setting the source or target port of an edge to a port at another edge does no longer lead to an exception if the edge is represented in a managed view (IFoldingView). Instead, the edge is now removed from the view.
  • Fixed a bug which could cause an edge in a folding view to be created at different ports as those which were given as parameters. This could lead to unexpected connections during interactive edge creation in rare cases.
  • Fixed a bug that could lead to an exception when duplicating a port on the GraphClipboard if it is duplicated.
  • Changes to ports of an edge whose source or target node is hidden are no longer reverted when the node is subsequently collapsing and expanding.
  • Label changes on folder nodes are no longer reverted by FolderNodeConverter if labels are copied between master and view node.

Demos

New Features and Improvements

  • A lot of new demo applications have been added that show all kinds of aspects of using the yFiles API: demonstrating basic features, going into detail for specific usecases, and building complex showcase applications.
  • The tutorials have been restructured and split into five separate tutorials covering basic yFiles features, using the GraphBuilder to populate your graph, and implementing custom styles for nodes, for edges or for labels.
  • For all demos, a Maven configuration is added to make it easy to start exploring the yFiles functionality.
  • All demos were modernized using new language features up to level 21.

Bug Fixes

  • Fixed BPMN-DI import for LaneSets in a Subprocess.

GraphML

New Features and Improvements

  • Improved GraphML serialization of Colors#TRANSPARENT.

Bug Fixes

  • Fixed GraphML serialization and deserialization for certain configurations of GroupNodeStyle and RectangleNodeStyle.

View-Layout-Bridge

New Features and Improvements

  • LayoutExecutor can now automatically create port constraints for edges at ports that use a CompositePortLocationModel. For all parameters added to a CompositePortLocationModel, a fixed port candidate is created. The cost, capacity, and PortSide of this candidate can be specified when adding the parameter to the model.
  • The LayoutExecutor#TableLayoutConfigurator feature now uses more flexible placements for nodes that don't belong to any table node.

Bug Fixes

  • The LayoutExecutor and LayoutGraphAdapter classes now correctly assign port group IDs to edges that connect to the same port. Previously, in some cases involving ports with a single incoming and outgoing edge, the port group IDs were omitted, which could cause incorrect layout results (such as diagonal segments instead of orthogonal ones).

Layout

New Features and Improvements

  • LayoutPortCandidates now have a MatchingId. When finding matching LayoutPortCandidates at nodes and for edges, two LayoutPortCandidates can only match if their MatchingId properties are equal.
  • The LayoutAnchoringStage class (previously called FixNodeLayoutStage) now allows using not only nodes but also edges and labels to anchor the graph's position.
    • The new NodeAnchoringPolicies, EdgeAnchoringPolicies, NodeLabelAnchoringPolicies and EdgeLabelAnchoringPolicies properties specify which part of the items should be used to calculate the anchor point.
    • The new LayoutExecutor#AnchoredItems property specifies the graph items used to anchor the graph's position.
  • The ComponentLayout has now the ability to specify which layout to apply to individual components using ComponentLayoutData#ComponentLayouts property. Additionally, edges between components can be routed using a router set via ComponentLayout#InterEdgeRouter.
  • It is now possible to specify multiple layout grids for a graph (previously called PartitionGrid). This is made possible by the new LayoutGrid.CellDescriptor#LayoutGrid property. This way it is no more required to set the global layout grid with the LayoutGridData#Grid property. If a node is to be placed in a grid but not in a specific cell, this can now be achieved using the new LayoutGrid#createDynamicCellDescriptor method. Be aware that many layout algorithms like HierarchicalLayout don't support multiple layout grids.
  • The LayoutData classes are now generic and can be used for items of a LayoutGraph, too. Of course, it's still possible to use LayoutData with IGraph items.
    • LayoutData instances when used with IGraph typically need INode, IEdge, ILabel, and ILabel as their type arguments.
    • LayoutData instances when used with LayoutGraph typically need Node, Edge, NodeLabel, and EdgeLabel as their type arguments.
    • Instances of LayoutData classes can be created via factory methods on the layout algorithm themselves, for example, HierarchicalLayout#createLayoutData. Depending on the type of graph that is provided as the argument, the correct data instance will be created.
  • The API around the LayoutGraph class has received a major rework. The LayoutGraph is the only remaining graph implementation for the layout analysis part. Classes Graph (previously used for graph analysis, only) and CopiedLayoutGraph have been removed and functionality was moved to LayoutGraph.
    • The API has been made more similar to the API of the IGraph with respect to creation, modification and access to nodes, edges and labels.
    • Low-level data types like NodeList and EdgeList have been removed as well as cursor for iteration over the elements.
    • Properties NodeCount and EdgeCount have been removed. Query the size of the Nodes and Edges properties instead.
    • Layout information about items must no longer be queried from the graph instance (e.g. previously with methods like LayoutGraph#getLayout). It is now accessible on the items itself and is also mutable, see Node#Layout property.
    • The edge path information is now defined by properties on the edge, most importantly these are SourcePortLocation, TargetPortLocation and Bends.
    • Labels of nodes and edges are now accessed via a property on the respective owning item. To add labels, use LayoutGraph#addLabel method. The complicated ILabelLayoutFactory that covered that use case in the past has been removed.
    • Hiding items is no longer possible via the graph itself. To do so, use the helper LayoutGraphHider class.
    • The Graph#containsEdge method has been removed in favor of LayoutGraph#getEdgesBetween. The same holds for the Node#getEdgeTo and Node#getEdgeFrom methods.
    • Convenience properties like Node#Neighbors have been removed. Instead, query all edges (using the Edges property) and filter the required adjacent nodes manually.
    • To copy a LayoutGraph instance, the new LayoutGraph#createCopy method has been added.
    • If a LayoutGraph without coordinate/path information is needed (to optimize memory performance), it can be created using the factory LayoutGraph#createStructureGraph method.
  • LayoutExecutor now supports arranging graphs without a GraphComponent.
  • The new LayoutGraph#getEdgesBetween method returns all edges between two nodes.
  • The PortPlacementStage now computes cost-minimal matchings between port candidates at nodes and edges.
  • Most layouts now support port grouping and port candidates at nodes and edges. These features are implemented through a post-processing step using the PortPlacementStage, rather than being natively integrated into the layouts. As a result, the quality may be poor.
  • For oriented rectangles the intersection test no longer allocates unnecessary memory and no longer creates unnecessary objects, which improves its allocation performance.

Bug Fixes

  • The CurveFittingStage now correctly respects the maximum error. Previously, it sometimes produced curves that violated the maximum error.
  • The LineSegment#getIntersection method no longer produces incorrect results when the specified epsilon is zero. Previously, there were some edge cases where the algorithm failed to detect an intersection and returned null instead.
  • Added the protected ParallelEdgeRouter#hideMultiEdges method, which is required to meaningfully overwrite the existing protected ParallelEdgeRouter#findAndHideMultiEdges method.
  • The PortPlacementStage now correctly considers port candidates together with port groups.
  • The TreeReductionStage, CircularLayout, and RadialLayout classes no longer produce results with a lot of superfluous, collinear bends for bundled edges.

Hierarchical Layout

New Features and Improvements

  • The HierarchicalLayout class now supports defining minimum distances between the ports. They can be specified per node side using the HierarchicalLayoutNodeDescriptor#MinimumPortDistance property. The node size is increased if necessary in order to accommodate the minimum distances.
  • The Hierarchical Layout class now supports aligning the ports of edges incident to the same node, that is, the ports are placed at the same x- or y-coordinate. This can be particularly useful to visualize paths in a graph. Which ports to align is specified by the new properties PortData#SourcePortAlignmentIds and PortData#TargetPortAlignmentIds accessible via HierarchicalLayoutData#Ports.
  • The HierarchicalLayout now produces fewer bends for multi-edges with labels when integrated edge labeling is enabled.
  • The HierarchicalLayout class now produces better results for graphs with tabular groups where all children have a fixed user-specified order.
  • The routes of self-loops now consider both node and edge labels preventing overlaps if possible.
  • The ports of edges with free ports are no longer placed at the same location as fixed ports, which previously could happen if multiple edges had the same fixed port.
  • The HierarchicalLayout no longer produces overlapping edge segments if there are grouped edges with different thicknesses values. Previously, the user had to ensure that all these edges use the same thickness.
  • In barycenter mode the HierarchicalLayout now enforces a more symmetric placement of the nodes that are part of chains or height-2 trees.
  • The HierarchicalLayout class now also considers layering constraints between elements of different grouping hierarchies if the recursive group layering is enabled ( HierarchicalLayout#GroupLayeringPolicy property). Previously, such constraints were ignored in that case.

Bug Fixes

  • The HierarchicalLayout algorithm now correctly handles node and edge labels with width or height set to negative values. Previously, large negative values may have caused exceptions.
  • Instances of LayerConstraintData and SequenceConstraintData that are configured with comparables can now be reused for multiple layout calculations.
  • The HierarchicalLayout class no longer creates avoidable crossings between edges with the same target node when FromSketchModeEnabled property is enabled.
  • The HierarchicalLayout class no longer unnecessarily enlarges group nodes in the case when no group node padding is defined, i.e. no data registered with the LayoutKeys#GROUP_NODE_PADDING_DATA_KEY property.
  • The value of the HierarchicalLayout#StopDuration property is no longer ignored during the execution of some ILayerAssigner or ICoordinateAssigner implementations that have their own specific StopDuration. The HierarchicalLayout class will now always consider the shortest applicable duration.
  • The HierarchicalLayout class now always places aligned ports correctly in from-sketch mode.
  • The HierarchicalLayout class no longer assigns superfluous space to group nodes if there are grouped edges.
  • The HierarchicalLayout class no longer produces an error when using a non-zero grid distance in combination with incremental mode's exact coordinate hints.
  • The HierarchicalLayout class no longer produces an error for labeled graphs with port alignment constraints when the integrated edge label placement is enabled.
  • The HierarchicalLayout class no longer produces superfluous crossings between backloops or same-layer edges in the first or last layer.
  • The HierarchicalLayout class no longer produces superfluous crossings for tabular group nodes with fixed children order.
  • The HierarchicalLayout now properly handles self-loop edges when the edge is at a group node and furthermore edge/port grouped with the same ID on both sides. Previously, it was not routed correctly or that it was removed from the LayoutGraph instance when running the layout algorithm directly on the graph instance without using a copy.
  • The HierarchicalLayout class no longer swaps the position of fixed nodes in incremental layout mode with user-specified sequence constraints.
  • The HierarchicalLayout class no longer produces superfluous crossings for some graphs with group nodes in incremental layout mode.
  • Edges between two subcomponents now correctly consider fixed any-side port candidates.
  • The HierarchicalLayout class no longer produces very long edge segments for some input graphs containing groups with node halos and polyline edge routing.
  • The HierarchicalLayout class no longer throws an exception for graphs with bus structures if the algorithm runs in incremental mode and the group transposition feature is enabled.
  • The HierarchicalLayout class no longer misplaces port labels at the connector nodes of integrated subcomponents.
  • The HierarchicalLayout class no longer produces intertwined edge routes with many superfluous crossings and bends for some cases with sequence constraints placeAtHead or placeAtTail. The problem mainly occurred with graphs with groups or LayoutGrid and incompatible sequence constraints.
  • The HierarchicalLayout class no longer produces superfluous crossings for some edges with alternative paths that are incident to group nodes (see HierarchicalLayoutData#AlternativeEdgePaths).
  • The HierarchicalLayout algorithm no longer requires a long runtime for some larger, grouped graphs with layering constraints and non-recursive layering.
  • The HierarchicalLayout algorithm no longer requires a long runtime for some larger graphs with layering constraints when a maximum duration is specified.
  • The HierarchicalLayout class no longer throws an exception for some invalid specifications of alternative group bounds in incremental layout mode.

Tree Layout

New Features and Improvements

  • Added the new TreeLayout#FromSketchModeEnabled property to consider the initial coordinates of the graph elements. This has an effect only if the used subtree placers implement IFromSketchSubtreePlacer.
  • Added the TreeLayoutData#MultiParentDescriptors property that allows to specify style information for multi-parent structures.
  • The TreeReductionStageData class now offers NonTreeEdgesResult property. It allows to conveniently query the set of edges that the stage actually selected as non-tree edges.
  • The TreeLayout now considers minimum last segment lengths no matter on which side the port shall be placed.
  • The LeftRightSubtreePlacer now supports minimum segment length, which can be set with the properties MinimumFirstSegmentLength and MinimumLastSegmentLength.
  • All subtree placers that used AbstractRotatableSubtreePlacer.RootAlignment support placing the subtree root centered above the ports with the new value CENTER_OVER_PORTS.
  • The SingleLayerSubtreePlacer supports placing the subtree root centered with respect to the ports at its children with the new enum value SingleLayerSubtreePlacerRootAlignment#CENTER_OF_PORTS.
  • The AspectRatioSubtreePlacer now supports minimum first and last segment lengths.
  • The AspectRatioSubtreePlacer now supports multiple variants how to place the root node with respect to its children, which can be set using the properties ChildArrangement and RootPlacement.
  • Added properties of TreeReductionStageData directly to the LayoutData of tree layouts, including RadialLayoutData, RadialTreeLayoutData, and TreeLayoutData.
  • The TreeLayout class now places the ports of edges incident to multi-parent nodes and with port constraints (excluding any-side constraints) at the nodes' border. Previously, unlike as for edges incident to other nodes, the edge ports where located at the nodes' center.

Bug Fixes

  • The TreeLayout now correctly handles the specified CompactSubtreePlacerStrategyMementos (STRATEGY_MEMENTO_DATA_KEY) for nodes associated with a CompactSubtreePlacer. Previously, the algorithm incorrectly overwrote the value for the leaves.
  • The TreeLayout class no longer ignores the initial locations for some subtree placers if the FromSketchModeEnabled property is enabled.
  • The TreeLayout now automatically places edge labels of the parallel edges handled by its ParallelEdgeRouter instance, when integrated edge labeling is enabled.
  • The TreeLayout class no longer produces broken edge routes for some input graphs with multi-parent structures.
  • The AspectRatioSubtreePlacer class no longer ignores the specified AspectRatioSubtreePlacer#ChildAlignmentPolicy for some specific setups (e.g., if all children are leaves and have the same size).

Orthogonal Layout

New Features and Improvements

  • The newly added OrthogonalLayout#QualityTimeRatio property allows controlling the layout quality by automatically enabling/disabling additional optimization steps.
  • The OrthogonalLayout algorithm now supports specifying edges that should be routed against the main layout orientation in addition to the option to route with the main layout orientation. See OrthogonalLayoutData#EdgeOrientation property.

Bug Fixes

  • The OrthogonalLayout now automatically places edge labels of the parallel edges handled by its ParallelEdgeRouter instance, when integrated edge labeling is enabled.
  • The OrthogonalLayout class no longer throws an exception for some input graphs with tree substructures when the TreeSubstructureStyle is set to a value different from TreeSubstructureStyle#NONE.

Edge Router

New Features and Improvements

  • The quality of edge routing for buses is improved.
  • If EdgeRouter is run with the buses feature and a limited duration, it now splits the available time amongst buses, meaning that it will not get "stuck" on a single bus, which could otherwise impact the quality of the remaining buses and non-bus edge routings.

Bug Fixes

  • The EdgeRouter now prefers to use fixed port candidates that are not overlapped by other nodes.
  • The EdgeRouter class no longer produces uncovered buses. Previously, there were some rare cases where the specified bus edges didn't constitute a bus.
  • When routing edges to and from fixed ports in the interior of group nodes, other nodes in the group are not ignored anymore, so that the edge does not overlap them if possible.
  • The EdgeRouter class does no longer yield different results in rare cases when the same instance is applied twice to the same input graph.
  • The EdgeRouter class no longer produces self-crossing routes of edges with labels if EdgeRouterEdgeLabelPlacement property is set to EdgeRouterEdgeLabelPlacement .INTEGRATED.
  • The EdgeRouter class no longer produces bad layout results for some scenarios with grouped edges and multiple LayoutPortCandidate. Previously, the algorithm selected any of them without considering the alternative options.

Labeling

Bug Fixes

  • The GenericLabeling algorithm now correctly considers the case where model parameters of a CompositeLabelModel have different weight values. Higher weights are preferred.
  • The EdgeLabelCandidates#buildCandidates method does no longer return null for some setups with free edge label models. Instead it returns an empty IStreamIterable now.
  • The GenericLabeling class now produces less node-label overlaps.
  • The GenericLabeling class no longer produces non-optimal label placements for some rare setups of graphs with node halos.
  • The GenericLabeling class no longer produces bad label placements for edges with direct group content routing, i.e., edges that connect a group node with one of its descendants and are routed directly without leaving the group.

Organic Layout

New Features and Improvements

  • The OrganicLayout class now supports integrated edge labeling which can be enabled with EdgeLabelPlacement property.
  • The OrganicLayout class now provides a feature that dynamically detects whether nodes already lie almost on a common line or circle and, if so, snaps the nodes to this line/circle. This new feature can be enabled with the ChainRecognitionEnabled and CircleRecognitionEnabled properties.
  • The OrganicLayout class now supports drawing the edges such that they point to the main layout direction. Whether an edge should follow the main orientation can be specified with the new OrganicLayoutData#EdgeOrientation property.
  • The OrganicLayout class now supports individual minimum lengths of edges that can be specified with the new OrganicLayoutData#MinimumEdgeLengths property.
  • The OrganicLayout class now supports different types of constraints that restrict the placement of the graph’s nodes. These constraints can be specified with the new OrganicConstraintData class (cf. the OrganicLayoutData#Constraints property).
  • The performance for the OrganicLayout has been substantially improved for large graphs without group nodes. The improvement is triggered if no special constraints are defined and no shape recognition is enabled.
  • The OrganicLayout now supports different styles for group substructures, which are set via the GroupSubstructureStyle property.

Bug Fixes

  • The OrganicLayout now automatically places edge labels of the parallel edges handled by its ParallelEdgeRouter instance, when integrated edge labeling is enabled.
  • The OrganicLayout class no longer ignores the preferred edge length in incremental layout mode with a single affected element.
  • Fixed an issue that may have automatically disabled the component layout when using constraint-based features.
  • The OrganicLayout class now supports specified minimum group node sizes with more feature combinations. Previously, the minimum group node size was sometimes violated.
  • The OrganicLayout class no longer produces edge overlaps when ChainRecognitionEnabled property is enabled.
  • In rare cases fixed nodes could move when also a group node was fixed.

Circular Layout

New Features and Improvements

  • The CircularLayout class now offers the possibility to define star substructures. The CircularLayout#StarSubstructureStyle property specifies the style of star substructures and the CircularLayout#StarSubstructureSize property their minimum size (structures of smaller size are not handled as a star substructure). Furthermore, the CircularLayout#StarSubstructureTypeSeparationEnabled property specifies whether star substructures should be separated by the node type.
  • The CircularLayoutData class offers the new EdgeDirectedness property that influences the detection of star-substructures; see CircularLayout#StarSubstructureStyle.

Bug Fixes

  • The CircularLayout class no longer produces strange routes for some bundled edges.
  • The CircularLayout class no longer throws an exception if StarSubstructureStyle property is set to StarSubstructureStyle#RADIAL and the whole input graph is a star.

Radial Layout

New Features and Improvements

  • The RadialLayout class now allows defining a custom order of child nodes around a local root node. The order can be individually specified for each node by using the new RadialLayoutData#ChildOrder property. It is especially suitable for tree-like input graphs. For specifying a single global order for all nodes, for example, alphabetically, the new ChildOrderData#TargetNodeComparables property is a more convenient option.
  • The RadialLayout class now supports node types. The types influence the ordering of nodes of the same circle such that nodes of the same type are preferably placed next to each other if this does not induce additional crossings or conflicts with other constraints. Node types can be defined via the RadialLayoutData#NodeTypes property.

Bug Fixes

  • The RadialLayout class no longer throws an exception if the layout algorithm is executed too many times from the same instance.

Radial Tree Layout

New Features and Improvements

  • Added data key OUT_EDGE_COMPARATOR_DATA_KEY to RadialTreeLayout class (formerly BalloonLayout).

Alignment Stage

New Features and Improvements

  • The new AlignmentStage class places the nodes of a given layout on automatically determined horizontal and/or vertical lines. This stage is particularly designed as a post-processing step that snaps suitable nodes to the same x- or y-coordinates to obtain a grid-like structure. When rearranging the initial layout, the stage moves the nodes as little as possible.
    The associated new AlignmentStageData class allows to specify custom data considered during the layout calculation.

Series-parallel Layout

Bug Fixes

  • The SeriesParallelLayout now automatically places edge labels of the parallel edges handled by its ParallelEdgeRouter instance, when integrated edge labeling is enabled.

Clear Area Layout

Bug Fixes

  • The ClearAreaLayout class no longer produces violations of the LayoutGrid if the ClearAreaStrategy is set to LOCAL or LOCAL_UNIFORM.
  • The ClearAreaLayout class no longer produces results where the specified area is not cleared for some input graphs when ClearAreaStrategy property is set to PRESERVE_SHAPES or PRESERVE_SHAPES_UNIFORM.

Multi-page Layout

Bug Fixes

  • MultiPageLayout algorithm will adhere to page size specifications in rare cases that could previously cause the maximum page size to be exceeded.

Partial Layout

New Features and Improvements

  • PartialLayout now supports specifying inversely directed edges in addition to undirected and directed edges.

Bug Fixes

  • PartialLayoutScopeData will no longer mark any edges as affected when only nodes are specified to be in scope, nor mark any nodes as affected when only edges are specified to be in scope.
  • The PartialLayout class does no longer yield different results in rare cases when the same instance is applied twice to the same input graph.
  • The PartialLayout class now correctly places disconnected components for cases where a layout orientation is specified, and the ComponentAssignmentStrategy property is not SINGLE. Previously, such components were sometimes placed far away from the remaining graph elements.

Tabular Layout

New Features and Improvements

  • The TabularLayout class now supports the calculation of node arrangements that lead to a low overall edge length. This feature can be enabled with the new EdgeConsiderationEnabled property.
  • The new TabularLayoutData#LayoutGridData property makes it easy to query the cell to which a node was assigned to by the TabularLayout class after applying it.

Bug Fixes

  • The layout algorithms do no longer throw an Exception when a LayoutGrid including a mapping from nodes to LayoutGridCellDescriptors is defined and if algorithm TabularLayout was executed before with LayoutMode AUTO_SIZE or FROM_SKETCH. In these modes the TabularLayout automatically assigns cells to nodes so that any mapping defined prior will be ignored now.

Component Layout

New Features and Improvements

  • ComponentLayout now supports NodeMargins (formerly NodeHalos) for each ComponentArrangementStyle other than NONE and KEEP_CENTERS.

Algorithms

New Features and Improvements

  • The LongestPath algorithm now uses double values instead of integers for edge traversal costs. This improves the Paths, LayoutGraphAlgorithms, and LongestPath classes.
  • The LayoutGraphAlgorithms#findCycleEdges method has been improved and now requires fewer edges to be reversed. In addition, a new, even better but slower heuristic can be enabled with a new optional parameter.

Bug Fixes

  • The Intersections class does not dispose FilteredGraphWrapper instances that it is given with no subgraph nodes or edges specified anymore. Previously, this caused the graph instance to become defunct, resulting in various operations running into null fields and properties, generating exceptions that were non-trivial to understand.
  • Intersections.Result no longer includes intersections that have no actual intersection points. This issue occurred when two graph elements were within a small epsilon distance of each other.

Analysis

New Features and Improvements

  • The KShortestPaths class has a new implementation of the k-shortest path algorithm that allows for the exclusion of non-simple paths (i.e., paths with repeating vertices). Previously, these paths could not be excluded. The new implementation is used by default and can be disabled with the SimplePaths parameter.
  • For usage with a LayoutGraph, the algorithm is also available via the LayoutGraphAlgorithms#kShortestPaths method.

Bug Fixes

  • Fixed the issue of excessive memory consumption in the analysis algorithm Paths when a large number of start and end nodes were set.
  • The KShortestPaths class now correctly calculates the k-shortest paths of graphs. Previously, in rare cases, the algorithm sometimes produces wrong results, i.e., returns paths that are not the shortest.

Geometry

New Features and Improvements

  • The new GeneralPath#areaOrPathContains method tests if the path fuzzily contains a point and can be used for hit-testing a GeneralPath.
  • All methods on the GeneralPath class now consistently accept IPoint instead of PointD and IRectangle instead of RectD.
  • There are now methods on RectD and PointD to calculate the distance between points and rectangles.
  • The GeneralPath#getProjection method is now faster for paths with Bezier segments.
  • The IRectangle interface no longer implements IPoint. As a consequence, it is no longer possible to inadvertently use rectangles as parameters for methods that expect a point. You can still easily get the top-left corner of a rectangle with its getTopLeft method. Similarly, IMutableRectangle no longer implements IMutablePoint.

Bug Fixes

  • The GeneralPath#pathMayIntersectClip method has been corrected for paths with multiple segments, at least one of which is a cubic segment.
  • The SizeD#Area property now returns 0 for empty sizes. This is consistent with the behavior of the RectD#Area property.

Incompatible Changes

Categories: General Graph GraphBuilder Components Rendering Selection, Focus, Highlight Styles Interaction Snapping Clipboard Folding Lookup GraphML View-Layout-Bridge Layout Layout Data Hierarchical Layout Tree Layout Orthogonal Layout Edge Router Labeling Organic Layout Interactive Organic Layout Circular Layout Radial Layout Radial Tree Layout Radial Group Layout Series-parallel Layout Compact Disk Layout Multi-page Layout Partial Layout Tabular Layout Component Layout Tree Map Layout Recursive Group Layout Layout Grid Other Layouts Algorithms Analysis Collections Geometry

General

Incompatible API Changes

  • The IEnumerable interface has been renamed to IStreamIterable and several of its static and default methods have been removed. Most of the removed methods can be replaced by using the Java stream API. Furthermore, its enumerator method together with the IEnumerator interface have been removed and the usages replaced by the inherited iterator method.
  • The IListEnumerable interface has been renamed to IIndexedIterable
  • IEnumerable.EMPTY and IListEnumerable.EMPTY fields have been removed. If there is need of an empty instance of those interfaces, IIndexedIterable.create can be called with Collections.emptyList() as parameter.
  • The ICollection and IList interfaces has been removed.
  • The YList class has been renamed to LinkedCellList
  • Removed the StripeSelection class. Instead, use the instance returned by the TableEditorInputMode#StripeSelection property.
  • The following classes are now sealed: BorderLineSegment, LabelScopeData, ItemCollection, ItemMapping, FreePortLabelModel, and FreeNodeLabelModel. They either already had an internal constructor or do not offer any meaningful members for overriding.
  • Removed the Default prefix from the names of the following types: DefaultEdgePathCropper, DefaultFoldingEdgeConverter, DefaultFolderNodeConverter, DefaultLabelStyle, ObservableCollection, DefaultPortCandidate, and DefaultSelectionModel.
  • Removed DefaultLabelModelParameterFinder.
  • Consistently use names Padding and Margins in member names:
    • Renamed the TextEditorInputMode#TextAreaPadding property to TextAreaMargins.
    • Renamed the LabelStyleIndicatorRenderer#Padding property to Margins.
    • Renamed the GraphEditorInputMode#ContentRectMargins property to ContentMargins.
    • Renamed the OverviewInputMode#Margins property to ContentMargins.
    • Renamed the ViewportAnimation#TargetBounds property to Target.
    • Renamed the ViewportAnimation#TargetViewMargins property to TargetMargins.
    • Renamed the StripeLabelModel#UsingActualInsetsEnabled property to UsingTotalPaddingEnabled.
    • Renamed the StretchStripeLabelModel#UsingActualInsetsEnabled property to UsingTotalPaddingEnabled.
    • Renamed the IStripe#getActualInsets method to getTotalPadding.
    • Renamed the GroupNodeStyle#ContentAreaInsets property to ContentAreaPadding.
    • Renamed YInsets properties of all ILabelModel implementations to Margins.
    • Replace name part Insets of other types and members with Padding.
  • Removed the BridgeManager#ClipMargin property.
  • Enum values that followed the NORTH, EAST, SOUTH, WEST naming convention have been renamed to follow a Top, Right, Bottom, Left naming convention. In particular, the values of the following enums have been renamed: HandlePositions, EdgeSegmentDirection, ExteriorLabelModel.Position, InteriorLabelModel.Position, InteriorStretchLabelModel.Position, StretchStripeLabelModel.Position, and StripeLabelModel.Position,.
  • Renamed the PortSide enum to PortSides.
  • Added missing information whether method return values, method parameters, or properties can or cannot be null. This might require additional null checks or changed signatures of method overrides.
  • Renamed the CreateEdgeInputMode#SelfloopsAllowed property to SelfLoopsAllowed.
  • Renamed the GraphEditorInputMode#selectNodeAndSelfloopBends method to selectNodeAndSelfLoopBends.
  • Renamed the GraphEditorInputMode#AutoSelectingSelfloopBendsEnabled property to AutoSelectingSelfLoopBendsEnabled.
  • Renamed the IEdge#isSelfloop method to IEdge#isSelfLoop.

Graph

Incompatible API Changes

  • The ILookup interface and its extension methods have been moved to the com.yworks.yfiles.utils package.
  • The IMapper interface and the Mappers class have been moved to the com.yworks.yfiles.utils package.
  • The DefaultGraph class has been renamed to Graph.
  • The properties LabelDefaults of INodeDefaults, IEdgeDefaults and IPortDefaults have been renamed to Labels.
  • The properties PortDefaults of INodeDefaults and IEdgeDefaults have been renamed to Ports.
  • EdgePathLabelModel and EdgeSegmentLabelModel have been modified to yield better results for some degenerate path cases. This leads to greater visual stability when the path is not long enough for the label or even completely invisible due to overlapping nodes. Technically, this can result in slightly different placements with the same parameter values in these edge-cases.
  • Adding a label with GroupNodeLabelModel to a node that does not use GroupNodeStyle or setting a GroupNodeLabelModel-created parameter for a label whose owner node does not use GroupNodeStyle no longer throws an IllegalArgumentException claiming "The parameter does not support this kind of label.".
  • The SegmentRatioPortLocationModel class is now named EdgeSegmentPortLocationModel, similar to EdgeSegmentLabelModel.
  • The createFromSource and createFromTarget methods of the SegmentRatioPortLocationModel and BendAnchoredPortLocationModel are now named createParameterFromSource and createParameterFromTarget.
  • Removed the TableAnimation class. Use the factory IAnimation#createTableAnimation method as a replacement.
  • GenericPortLocationModel has been renamed to CompositePortLocationModel and doesn't implement IStreamIterable anymore. Instead, the Parameters property can be used to iterate the parameter.
  • The FreeEdgeLabelModel#createEdgeAnchored method has been renamed to createParameter.
  • The FreeNodeLabelModel#createDefaultParameter method has been removed and replaced by the new FreeNodeLabelModel#CENTER field.
  • The FreeNodeLabelModel#createCanonicalParameter method has been renamed to createParameter.
  • The FreePortLabelModel#createDefaultParameter method has been removed and replaced by the new FreePortLabelModel#CENTER field.
  • The label models ExteriorLabelModel, InteriorLabelModel, and InteriorStretchLabelModel have been renamed to ExteriorNodeLabelModel, InteriorNodeLabelModel, and StretchNodeLabelModel, respectively,.
  • The GenericLabelModel class has been removed. Its functionality has been integrated into the CompositeLabelModel, which can be used instead.
  • The CompositeLabelModel#LabelModels property has been removed. Instead of adding label models to this list, the new addModel method has to be called.
  • The static LabelModelParameterSerializer and PortLocationModelParameterSerializer classes have been removed. These classes could be used to retrieve the properties of label model parameters and port location model parameters and are not necessary anymore as the parameter classes are now public.
  • The ILabelModel parameter of the ILabelModelParameterFinder#findBestParameter and ILabelModelParameterProvider#getParameters methods has been removed.
  • The classes ConsumerUndoUnit and CompositeUndoUnit have been removed. The new factory methods IUndoUnit#fromConsumer and IUndoUnit#combine can be used instead.
  • The AbstractUndoUnit class has been removed. Subclasses now have to implement the IUndoUnit interface instead.
  • The owner parameter of the ITable#createRow, createColumn, and setParent methods has been renamed to parent.
  • Changes to the GraphCopier class:
    • The methods copyNodeStyle, copyEdgeStyle, copyPortStyle, copyLabelStyle, getOrCreateCopy, copyLabelLayoutParameter, and copyPortLocationParameter have been made protected.
    • The methods copyNode, copyGroupNode, and copyEdge have been renamed to createNode, createGroupNode, and createEdge to clarify their role.
    • The Clone property has been renamed to CloneTypes.
    • The Copy method now uses an IStreamIterable of items instead of a filter predicate to define the subset to copy.
  • The ILabelModel#createDefaultParameter method has been removed. Instead suitable other Create*Parameter methods of the concrete label model implementations should be used.
  • The IPortLocationModelParameter#supports method has been removed. Instead, the IPortLocationModel#getLocation method may now throw an exception if the port and port location model parameter don't match.
  • The structural properties of graph items (IEdge#SourcePort, IEdge#TargetPort, ILabel#Owner, IPort#Owner, IBend#Owner) now throw exceptions if accessed for items that are no longer in the graph. If it is unknown whether the item is still in the graph, please test the item with hasOwner or hasSourceAndTargetPort first before accessing these properties.
  • IEdge's getSourceNode and getTargetNode methods now throw exceptions if called for an edge that is no longer in the graph or if the owner of the edge's source or target port is not a node.
  • The ILabelModelParameter#supports method has been removed. Instead, the ILabelModel#getGeometry method may now throw an exception if the label and label model parameter don't match.
  • The GraphItemTypes#notContains method was removed, use the contains method instead.
  • Method GroupingSupport#getPathToRoot has been renamed to getAncestors and returns an IIndexedIterable instead of an IList.
  • The static parameter fields of FreeNodePortLocationModel have been renamed analogue to the static parameter fields in InteriorNodeLabelModel.
  • The GraphClipboard#isDummy method has been renamed to isHelper.
  • The UndoEngine#Token property replaces the UndoEngine#getToken method.
  • The IMapperRegistry interface, the MapperRegistry class, and the IGraph#MapperRegistry property have been removed. To store additional information for graph items, either use the item's Tag property or keep a dictionary alongside the graph.
    To configure layout settings for individual items, use LayoutData instead.
  • The ITagOwner interface is now in the com.yworks.yfiles.utils package.

Incompatible Behavior Changes

  • The rotation direction of OrientedRectangle, NodeLabel, EdgeLabel and FreeEdgeLabelModel is now clockwise to be consistent with the other models.
  • The EdgeSegmentPortLocationModel#createParameterFromTarget method now interprets the parameter ratio from the target to the source side.
  • The arrow of the default edge style is now ArrowType#TRIANGLE.
  • The default edge label model parameter is now created from an EdgeSegmentLabelModel using its createParameterFromCenter method instead of createParameterFromSource.
  • The default value for the Padding properties of ExteriorNodeLabelModel, InteriorNodeLabelModel, StretchNodeLabelModel, and StretchStripeLabelModel have been changed from empty insets to insets with value 2 on each side. This way the label bounds per default don't touch the bounds of their owner anymore.
  • The default value for the Distance properties of the EdgePathLabelModel and EdgeSegmentLabelModel when using their default constructors have been changed from 0 to 2. This way the label bounds per default don't touch the edge path of their owner anymore when an EdgeSide other than ON_EDGE is used.
  • The default lookup for INode doesn't return an IMutableRectangle anymore, the default lookup for IBend doesn't return an IMutablePoint anymore, and the default lookup for ILabel doesn't return an IMutableSize anymore.
  • SegmentRatioPortLocationModel now uses the path geometry from the edge's style instead of bend locations to determine segments.

GraphBuilder

Incompatible API Changes

  • TreeNodesSource and AdjacencyNodesSource no longer inherit from NodesSource.
  • TreeBuilder#setData only accepts a TreeNodesSource and no longer a NodesSource as a parameter.

Components

Incompatible API Changes

  • The XML namespace for yFiles Java has changed and is now http://www.yworks.com/xml/yfiles-for-java/4.0.
  • The GraphModelManager#LabelLayerPolicy property has been removed. Use the more specific properties NodeLabelLayerPolicy, EdgeLabelLayerPolicy, and PortLabelLayerPolicy instead.
  • GridVisualCreator has been renamed to GridRenderer.
  • Renamed the coordinate transformation methods to also include the source coordinate system in their names:
    • Renamed CanvasComponent#toViewCoordinates to worldToViewCoordinates.
    • Renamed CanvasComponent#toWorldCoordinates to viewToWorldCoordinates.
    • Renamed IRenderContext#toViewCoordinates to worldToViewCoordinates.
  • The default InputMode in GraphComponent is no longer null but is now set to GraphViewerInputMode.
  • Renamed HighlightIndicatorManager#SelectionModel to Items.
  • Renamed SelectionIndicatorManager#SelectionModel to Items.
  • Renamed SelectionIndicatorManager#Model to Domain.
  • Renamed commands MOVE_FOCUS_BACK and MOVE_FOCUS_FORWARD to MOVE_FOCUS_LEFT and MOVE_FOCUS_RIGHT.
  • Renamed the CanvasComponent#AutoDragEnabled property to AutoScrollingOnBoundsEnabled.
  • Renamed the CanvasComponent#AutoDragInsets property to AutoScrollPadding.
  • Renamed the ViewportChanges#AUTO_DRAG field to AUTO_SCROLL_ON_BOUNDS.
  • Renamed the CanvasComponent#AutoDragEnabled property to AutoScrollingOnBoundsEnabled.
  • Renamed the CanvasComponent#AutoDragInsets property to AutoScrollPadding.
  • Renamed the ViewportChanges#AUTO_DRAG field to AUTO_SCROLL_ON_BOUNDS.
  • Removed the DragSize, DragTime and DoubleClickSize properties of the CanvasComponent class.
  • Some rarely used constants in IEventRecognizer have been removed.
  • The events on CanvasComponent which are related to input devices and the corresponding IEventRecognizer constants have been renamed to conform to platform conventions.
  • The new CanvasComponent#RenderTree property now encapsulates all low-level render object related API which was previously available directly on CanvasComponent.
    • This includes the default render tree groups (RootGroup, BackgroundGroup, ForegroundGroup, ContentGroup, SelectionGroup, FocusGroup, HighlightGroup, InputModeGroup), the helper methods relating to render tree elements (hitElementsAt, isHit, getVisual, getVisualCreator, getCanvasObjects (now getElements), getBounds).
    • Furthermore, some functionality previously available on ICanvasObject(Group) has been moved to RenderTree as well, such as creating new elements or groups, changing the parent group or removing a render tree element.
  • The superfluous CanvasComponent#setContentRect method has been removed in favor of the setter of the ContentBounds property.
  • The GraphModelManager constructor no longer has canvasComponent and contentGroup parameters. Also, the ContentGroup property can no longer be set directly. Instead, the install method now sets both CanvasComponent and ContentGroup.
  • Renamed Canvas word components in properties and method parameter names to CanvasComponent.
  • ViewportLimiter#limitViewport now uses a signature that works with the new type ViewportDescriptor and respects the new ViewportLimitingMode enum.
  • ViewportLimiter#HonoringBothDimensionsEnabled is now called ViewportLimiter#StrictBoundsContainmentEnabled and the default value changed to false.
  • The ICanvasObject#Group property has been renamed to Parent.

Incompatible Behavior Changes

  • For new GraphModelManager instances, the install method has to be called either directly or indirectly by assigning the GraphModelManager to the GraphComponent#GraphModelManager property.
  • Changed the default CanvasComponent#MouseWheelBehavior to MouseWheelBehavior.SCROLL.or(MouseWheelBehavior.ZOOM)
  • Changed default modifier for MouseWheelBehavior.SCROLL.or(MouseWheelBehavior.ZOOM):
    • Mousewheel without any modifier zooms
    • Mousewheel+shift pans horizontally
    • Mousewheel+ctrl pans vertically
    • Mousewheel+alt is center zoom

Rendering

Incompatible API Changes

  • The ICanvasObjectDescriptor interface has been renamed to IObjectRenderer and its isDirty method has been removed.
  • The ICanvasObject interface has been renamed to IRenderTreeElement and its UserObject property has been renamed to Tag. Its Descriptor property has been replaced with property Renderer of type IObjectRenderer.
  • The ICanvasObjectGroup interface has been renamed to IRenderTreeGroup.
  • The ICanvasObjectInstaller interface has been removed.
  • The singletons of the ICanvasObjectDescriptor class are no longer necessary, and thus, this class has been removed. There is now a IObjectRenderer#VOID_OBJECT_RENDERER singleton.
  • The IFocusIndicatorInstaller, IHighlightIndicatorInstaller, and ISelectionIndicatorInstaller interfaces have been renamed to IFocusRenderer, IHighlightRenderer, and ISelectionRenderer respectively and now inherit from IObjectRenderer instead of ICanvasObjectInstaller. Classes implementing these interfaces have been changed accordingly (EdgeStyleDecorationInstaller, LabelStyleDecorationInstaller, NodeStyleDecorationInstaller, and PortStyleDecorationInstaller have been renamed to EdgeStyleIndicatorRenderer, LabelStyleIndicatorRenderer, NodeStyleIndicatorRenderer, and PortStyleIndicatorRenderer respectively).
  • The getInstaller methods on the ModelManager, FocusIndicatorManager, HighlightIndicatorManager, and SelectionIndicatorManager classes are now called getRenderer and return IObjectRenderer. Similarly, the getCanvasObjectGroup methods of these classes have been renamed to getRenderTreeGroup.
  • The members of class GraphModelManager have been adjusted to reflect the ICanvasObjectDescriptor and ICanvasObject renamings. More precisely, DEFAULT_EDGE_DESCRIPTOR, DEFAULT_LABEL_DESCRIPTOR, DEFAULT_NODE_DESCRIPTOR, DEFAULT_PORT_DESCRIPTOR, EdgeDescriptor, EdgeLabelDescriptor, NodeDescriptor, NodeLabelDescriptor, PortDescriptor, PortLabelDescriptor, ProvidingUserObjectOnMainCanvasObjectEnabled, getCanvasObject, getCanvasObjectGroup, getCanvasObjectGroup, getCanvasObjectGroup, getCanvasObjectGroup, and getMainCanvasObject have been renamed to DEFAULT_EDGE_RENDERER, DEFAULT_LABEL_RENDERER, DEFAULT_NODE_RENDERER, DEFAULT_PORT_RENDERER, EdgeRenderer, EdgeLabelRenderer, NodeRenderer, NodeLabelRenderer, PortRenderer, PortLabelRenderer, ProvidingRenderTagOnMainRenderTreeElementEnabled, getRenderTreeElement, getRenderTreeGroup, getRenderTreeGroup, getRenderTreeGroup, getRenderTreeGroup, and getMainRenderTreeElement respectively.
  • The members of class ItemModelManager have been adjusted to reflect the ICanvasObjectDescriptor and ICanvasObject renamings. More precisely, CanvasObjectGroup, Descriptor, getCanvasObject, getCanvasObjectGroup, and getDescriptor have been renamed to RenderTreeGroup, Renderer, getRenderTreeElement, getRenderTreeGroup, and getRenderer respectively.
  • The RectangleIndicatorInstaller, OrientedRectangleIndicatorInstaller, and PointSelectionIndicatorInstaller classes have been removed.
  • The IStripeInputVisualizationHelper interface is now called IStripeInputRenderer and extends IObjectRenderer, the DefaultStripeInputVisualizationHelper class has been removed.
  • The StripeDecorator#InputVisualizationDecorator property has been renamed to InputRenderer.
  • The DefaultPortCandidateDescriptor class is now called PortCandidateRenderer. The class no longer has the CANDIDATE_DRAWING_VALID_NON_FOCUSED_KEY, CANDIDATE_DRAWING_VALID_FOCUSED_KEY, CANDIDATE_DRAWING_INVALID_NON_FOCUSED_KEY, and CANDIDATE_DRAWING_INVALID_FOCUSED_KEY static properties.
  • The new PortCandidateRenderer property on the CreateEdgeInputMode class replaces the CandidateDescriptor and ClosestCandidateDescriptor properties.
  • The new public property PortCandidateRenderer on the PortRelocationHandle class replaces the createPortCandidateDescriptor and createCurrentPortCandidateDescriptor protected methods.
  • The new public property PortCandidateRenderer on the PortRelocationHandleProvider allows customizing the renderer for the port candidates.
  • The new ViewportRectangleRenderer property on the OverviewInputMode class allows customizing the renderer for the viewport rectangle. It replaces the Template property and the VIEWPORT_TEMPLATE_KEY static property.
  • The new MarqueeSelectionInputMode#MarqueeRenderer property replaces the Template property and MARQUEE_RECTANGLE_TEMPLATE_KEY static property.
  • The new LassoSelectionInputMode#LassoRenderer property replaces the FinishRegionTemplate and FinishRegionHighlightTemplate properties and the FINISH_REGION_TEMPLATE_KEY and FINISH_REGION_HIGHLIGHT_TEMPLATE_KEY static properties. Also, the LASSO_PEN_KEY and LASSO_FILL_KEY static properties have been removed.
  • The new CandidateRenderer property on the LabelPositionHandler class replaces the CandidateTemplate and HighlightTemplate properties and the CANDIDATE_TEMPLATE_KEY and HIGHLIGHT_TEMPLATE_KEY static properties.
  • The getCanvasObject and getCanvasObjects methods of class CanvasComponent have been renamed to getRenderTreeElement and have been moved to the GraphModelManager class.
  • The createSnapResultCanvasObjectDescriptor method of class SnapContext has been renamed to createSnapResultRenderer.
  • The GraphVisualCreator property of class GraphOverviewComponent is now called GraphOverviewRenderer and of type IObjectRenderer.
  • The OverviewGraphVisualCreator class is now called GraphOverviewRenderer and implements IObjectRenderer instead of IVisualCreator.

Selection, Focus, Highlight

Incompatible API Changes

  • Replaced event FocusIndicatorManager#PropertyChanged with event FocusedItemChanged.
  • Renamed Method FocusIndicatorManager#onPropertyChanged to onFocusedItemChanged and changed signature.
  • The EdgeStyleDecorationInstaller, LabelStyleDecorationInstaller, NodeStyleDecorationInstaller, and PortStyleDecorationInstaller classes were removed. Use the EdgeStyleIndicatorRenderer etc. classes instead.
  • The addSelection and removeSelection methods on the SelectionIndicatorManager class were removed. Instead, modify the Items property directly.
  • FocusIndicatorManager#ShowFocusPolicy changed its default to the new WHEN_USING_KEYBOARD. The old policy called ONLY_WHEN_FOCUSED is now called WHEN_FOCUSED.
  • HighlightIndicatorManager now by default uses the new GraphComponent#Highlights collection. Adding, removing, and clearing highlights should now be done via the GraphComponent#Highlights property.
  • The ISelectionModel interface has been removed and usages have been replaced by IObservableCollection. Thus, selecting an element works by calling Collection#add, deselecting works by calling Collection#remove, and checking the selection state is done via Collection#contains.
  • The ItemSelectionChangedEventArgs have been replaced by usages of ItemEventArgs and there are now two separate events for adding/selecting and removing/deselecting elements from the collections. The ItemSelectionChangedEventArgs type has been removed.
  • The default implementations of IGraphSelection and IStripeSelection have been removed from the public API.

Styles

Incompatible API Changes

  • ShapeVisual#Fill property has been renamed to Paint.
  • The TextAlignment enum has been renamed to HorizontalTextAlignment.
  • The VerticalAlignment enum has been renamed to VerticalTextAlignment.
  • The LabelStyle#TextAlignment property has been renamed to LabelStyle#HorizontalTextAlignment.
  • If GroupNodeStyle's tab width is set to 0, the tab width does not reduce the corner radius of the style's outline anymore. However, it still forces the corner radius of the style's inner corners (i.e. the corners of the content area on the side of the style's tab) to 0.
  • The class Arrow is now immutable and comes with separate scale factors for arrow length and width. The default arrow was renamed to ArrowType#STEALTH, circle arrow to ArrowType#ELLIPSE, and simple arrow to ArrowType#OPEN. The short arrow type was removed.
  • The Wrapped property of CollapsibleNodeStyleDecorator, ShadowNodeStyleDecorator, and IconLabelStyle has been renamed to WrappedStyle.
  • Most item style implementations have become sealed, and their renderers have been removed from the API. Instead of subclassing the styles or their renderers, custom style implementations should use delegation instead. For this the new DelegatingNodeStyle and CompositeNodeStyle style variants may be used.
  • The item style constructors taking a custom renderer implementation have been removed. Instead, a custom style should be implemented that may delegate to one of the library styles.
  • The TableNodeStyle#copyBackgroundStyle method has been removed. The clone method doesn't deep copy the background style but just uses it for the clone as well, which also was the previous default behavior.
  • The deprecated styles BevelNodeStyle, PanelNodeStyle and ShinyPlateNodeStyle have been removed.
  • Renamed some values of TextWrappingShape and ShapeNodeShape:
    • Triangle2 is now TRIANGLE_POINTING_DOWN.
    • Hexagon2 is now HEXAGON_STANDING.
  • Removed the following values from ShapeNodeShape: SHEARED_RECTANGLE, SHEARED_RECTANGLE2, TRAPEZ, TRAPEZ2, FAT_ARROW, and FAT_ARROW2.
    • Use the ArrowNodeStyle for more flexible visualizations of these geometries.
  • Renamed STAR5_UP to STAR5, removed old (down pointing) STAR5.
    • Use the factory methods on GeneralPathNodeStyle for stars and polygons with an arbitrary number of points/edges and configurable rotation angle.
  • Removed the following values from TextWrappingShape: SHEARED_RECTANGLE, SHEARED_RECTANGLE2, TRAPEZ, and TRAPEZ2.
  • The IArrow interface now requires the CropAtPort property to be provided by implementations. For backward compatibility return false in simple subclasses.
  • The VOID_NODE_STYLE, VOID_EDGE_STYLE, VOID_LABEL_STYLE, VOID_PORT_STYLE, VOID_STRIPE_STYLE classes, and the respective renderer classes were removed. Use one of the following constant singletons instead: INodeStyle#VOID_NODE_STYLE, IEdgeStyle#VOID_EDGE_STYLE, ILabelStyle#VOID_LABEL_STYLE, IPortStyle#VOID_PORT_STYLE, and IStripeStyle#VOID_STRIPE_STYLE.
  • The VoidShapeGeometry and VoidPathGeometry classes were removed. Use one of the following constant singletons instead: IShapeGeometry#VOID_SHAPE_GEOMETRY and IPathGeometry#VOID_PATH_GEOMETRY.
  • The IVisualTemplate interface and the templating mechanism has been removed and replaced by the IObjectRenderer API.
  • The static getter methods on Pen returning the Pen constants have been replaced by corresponding static fields (e.g. Pen.getAzure() by Pen.AZURE).
  • The Pen#EndCap property has been renamed to EndLineCap.
  • The MemoryImageNodeStyle#BitmapSource has been renamed to Images.

Interaction

Incompatible API Changes

  • CanvasComponent's LastEventLocation property has been removed. Use getLastPointerEvent().getLocation() instead.
  • CanvasComponent's LastInputEvent property has been renamed to LastPointerEvent to better reflect its type.
  • The generic IGridConstraintProvider interface has been removed, its usages have been replaced with the existing item-specific interfaces, and the unused ILabelGridConstraintProvider and ILabelOwnerGridConstraintProvider have been removed. In addition, the GridConstraintProvider class is no longer generic and implements all remaining item-specific interfaces.
  • Removed the PortRelocationHandle#createDummyEdgeVisualCreator method. To change the preview edge's style overwrite PortRelocationHandle#createPreviewEdge instead.
  • The LabelPositionHandler#setPosition method has been removed.
  • The LabelPositionHandler#UsingFinderEnabled property has been removed. Use the new UseParameterFinderRecognizer property instead.
  • The LabelPositionHandler#useParameterFinder method has been renamed to shouldUseParameterFinder.
  • The protected virtual createEdgeCreationInputModeContext method on the CreateEdgeInputMode class has been removed. Use or override the createInputModeContext method, instead.
  • The ToolTipQueryEventArgs class is now named QueryToolTipEventArgs to properly match the corresponding event's name.
  • Renamed DoubleClickPolicy to ClickReportingPolicy.
  • Renamed ClickInputMode#DoubleClickPolicy to ClickReportingPolicy.
  • Renamed DoubleClickPolicy#INITIAL_SINGLE_AND_DOUBLE_CLICK to ClickReportingPolicy#INSTANT.
  • Renamed DoubleClickPolicy#DOUBLE_CLICK_ONLY to WAIT_FOR_DOUBLE_CLICK.
  • Removed DoubleClickPolicy#BOTH_SINGLE_CLICKS_AND_DOUBLE_CLICK.
  • Changed the default of ClickInputMode#ClickReportingPolicy to ClickReportingPolicy#INSTANT.
  • Removed the preventNextDoubleClick method from ClickInputMode class. Use the cancel method instead.
  • The LassoSelectionEventArgs#SelectionPath property has been renamed to Path.
  • The core marqueeSelect and lassoSelect methods of GraphEditorInputMode and GraphViewerInputMode, that take an enumerable and predicate, have been removed while the other marqueeSelect and lassoSelect method got an additional parameter of type SelectionPolicy.
  • Renamed DropInputMode#MousePosition to PointerPosition.
  • Renamed ItemDropInputMode#SnappedMousePosition to SnappedPointerPosition.
  • The generic type of the IHitTester interface has been removed. Instead, a parameter of type GraphItemTypes has been added to its iterateHits method.
  • Renamed LabelDropInputMode#UsingBestMatchingParameterEnabled and PortDropInputMode#UsingBestMatchingParameterEnabled to UsingLocationForParameterEnabled.
  • Events which involve item changes triggered by input modes are now of type InputModeItemEventArgs instead of ItemEventArgs. These are the events:
    • CreateBendInputMode: BendCreated.
    • CreateEdgeInputMode: StartPortCandidateChanged, EndPortCandidateChanged, EdgeCreated, PortAdded, EdgeCreationStarted.
    • GraphEditorInputMode: LabelEdited, LabelAdded, NodeCreated, PortAdded.
    • ItemDropInputMode and inheritors: ItemCreated.
    • NavigationInputMode: GroupCollapsing, GroupCollapsed, GroupExpanding, GroupExpanded, GroupEntering, GroupEntered, GroupExiting, GroupExited.
    • TableEditorInputMode: DeletedItem.
    • EditLabelInputMode: LabelAdded, LabelEditingStarted, LabelEditingCanceled, LabelEdited.
    • StripeDropInputMode: StripeCreated.
  • Events which involve item deletion or structural changes triggered by input modes are now of type InputModeItemChangedEventArgs:
    • GraphEditorInputMode#DeletedItem: InputModeItemChangedEventArgs instead of IEventListener<ItemEventArgs>.
    • GraphEditorInputMode#EdgePortsChanged: InputModeItemChangedEventArgs instead of EdgeEventArgs.
    • GraphEditorInputMode#NodeReparented: InputModeItemChangedEventArgs instead of NodeEventArgs.
    • EditLabelInputMode#LabelDeleted: InputModeItemChangedEventArgs instead of LabelEventArgs.
  • Renamed "Source" to "Start" and "Target" to "End" in the following members of CreateEdgeInputMode class:
    • Renamed ResolvingSourcePortCandidatesEnabled to ResolvingStartPortCandidatesEnabled.
    • Renamed ResolvingTargetPortCandidatesEnabled to ResolvingEndPortCandidatesEnabled.
    • Renamed SourcePortCandidateChanged to StartPortCandidateChanged.
    • Renamed TargetPortCandidateChanged to EndPortCandidateChanged.
    • Renamed SourcePortCandidate to StartPortCandidate.
    • Renamed TargetPortCandidate to EndPortCandidate.
    • Renamed SnappingToTargetCandidateEnabled to SnappingToEndCandidateEnabled.
    • Renamed CancelGestureOnInvalidTarget to CancelingGestureOnInvalidEndEnabled.
    • Renamed SourceNodeDraggingCursor to StartPortOwnerDraggingCursor.
    • Renamed ShowSourcePortCandidatesHitTestable to ShowStartPortCandidatesHitTestable.
    • Renamed onSourcePortCandidateChanged to onStartPortCandidateChanged.
    • Renamed onTargetPortCandidateChanged to onEndPortCandidateChanged.
    • Renamed SourcePortCandidateChanged to StartPortCandidateChanged.
    • Renamed TargetPortCandidateChanged to EndPortCandidateChanged.
    • Renamed getSource to getStartPortOwner.
    • Renamed getTarget to getEndPortOwner.
    • Renamed getSourcePortCandidateProvider to getStartPortCandidateProvider.
    • Renamed getTargetPortCandidateProvider to getEndPortCandidateProvider.
    • Renamed getSourcePortCandidates to getStartPortCandidates.
    • Renamed getTargetPortCandidates to getEndPortCandidates.
    • Renamed getSourcePortCandidate(IEnumerable<IPortCandidate>, PointD, boolean) to selectStartPortCandidate.
    • Renamed getClosestCandidate to selectClosestCandidate.
    • Renamed getClosestSourceCandidate to selectClosestStartCandidate.
    • Renamed getClosestTargetCandidate to selectClosestEndCandidate.
    • Renamed SourcePortCandidateHitRadius to StartPortCandidateHitRadius.
    • Renamed updateTargetLocation to updateEndLocation.
    • Renamed ShowingTargetHighlightEnabled to ShowingEndHighlightEnabled.
    • Renamed updateTargetHighlight to updateEndHighlight.
    • Renamed DummyTargetNode to PreviewEndNode.
    • Renamed DummyTargetNodePort to PreviewEndNodePort.
  • Renamed ShowPortCandidates#SOURCE to Start and ShowPortCandidates#TARGET to End.
  • Removed CreateEdgeInputMode#createDummyEdgeGraph, CreateEdgeInputMode#createDummyEdge, CreateEdgeInputMode#createDummyTargetNode, CreateEdgeInputMode#createDummyTargetNodePort, CreateEdgeInputMode#updateDummyEdgeSourcePort, and CreateEdgeInputMode#updateDummyEdgeTargetPort.
  • The InputModeContext property has been removed from the IInputMode interface. In input mode implementations, the property has been renamed to ParentInputMode and changed to protected access to prevent incorrect usage.
  • ICanvasContext#DEFAULT and ICanvasContext#create have been removed. A valid ICanvasContext can be retrieved from the CanvasComponent#CanvasContext property.
  • IInputModeContext#EMPTY has been removed. A valid IInputModeContext can be retrieved using CanvasComponent#InputModeContext property.
  • The factory methods for input mode contexts on the IInputModeContext interface have been removed. Appropriate IInputModeContext implementations can be obtained using InputModeContext class with CanvasComponent#InputModeContext as parent context.
  • The static fields ALL_NODE_CANDIDATES and ALL_NODE_AND_EDGE_CANDIDATES on IEdgeReconnectionPortCandidateProvider have been replaced by the factory methods fromAllNodeCandidates and fromAllNodeAndEdgeCandidates. The implementations now provide a port candidate for the unchanged port of the edge when collecting the port candidates from the IPortCandidateProvider instances of the nodes and edges.
  • CreateEdgeInputMode's methods have been renamed:
    • getClosestSourceCandidate to selectClosestStartCandidate.
    • getClosestCandidate to selectClosestCandidate.
    • getClosestTargetCandidate to selectClosestEndCandidate.
  • CreateEdgeInputMode#StartPortCandidateHitRadius now is defined in view coordinates.
  • The HandleTypes enums has been refactored to a non-flaggable HandleType enum, and the values have been adjusted.
  • A Tag property has been added to the IHandle interface. yFiles does not use the property and initializes it with null, but decorating handles forward any values unmodified.
  • The textProvider parameter for ToolTipInputMode's constructor has been removed. An event handler for the QueryToolTip event can be registered instead.
  • The ICommand interface and its implementations have been replaced with the enum Command.
  • Constants of ICommand have been replaced with equally named constants of enum Command.
  • The methods canExecute and execute and its CanExecuteChanged event in ICommand have been replaced with CanvasComponent's canExecuteCommand and executeCommand methods and the CanExecuteChanged event, respectively.
  • Custom commands can no longer be created. As an alternative, register handlers on KeyboardInputMode.
  • Removed callback methods which only raised the related events from classes CanvasComponent and GraphComponent.
  • Removed the factory methods for the sub-input modes from GraphViewerInputMode, GraphEditorInputMode, TableEditorInputMode, and TextEditorInputMode (e.g. createKeyboardInputMode). Set custom instances using the properties, instead.
  • Removed the factory methods for the ToolTip and TextArea properties on classes ToolTipInputMode and TextEditorInputMode, respectively. Set custom instances using the properties, instead.
  • Removed the methods getBounds, getVisual, getVisualCreator, and isHit from CanvasComponent class. Use the respective methods of RenderTree class instead.
  • The MouseHoverInputMode class has been renamed to ToolTipInputMode.
  • The GraphViewerInputMode#MouseHoverInputMode and GraphEditorInputMode#MouseHoverInputMode properties have been renamed to ToolTipInputMode.
  • The NavigationInputMode#findNearestItem method now gets the startItem as a parameter instead of the location of it, and this item is also included in the itemsToCheck parameter. Implementations may use the new getReferenceLocation method to find the starting location and should make sure not to return the startItem itself.
  • The protected Should- methods of the input modes have been removed and replaced by predicate properties.
  • The event GraphEditorInputMode#LabelTextChanged has been changed to LabelEdited to reflect the broader scope of changes allowed during label editing. Similarly, GraphEditorInputMode#onLabelTextChanged is now named onLabelEdited.
  • Most methods, properties, and events related to label editing have been moved from GraphEditorInputMode to EditLabelInputMode: AutoRemovingEmptyLabelsEnabled, HidingLabelDuringEditingEnabled, TextEditorInputMode, TextEditorInputModeConfigurator, createLabel, createLabelCore, editLabelCore, openTextEditor, LabelDeleted, LabelTextEditingStarted, LabelTextEditingCanceled, and ValidateLabelText. The events LabelEditing and LabelAdding have been moved to EditLabelInputMode and renamed to QueryLabelEditing and QueryLabelAdding, respectively, to clarify their purpose.
  • Most methods, properties, and events related to label editing have been moved from TableEditorInputMode to EditLabelInputMode: AutoRemovingEmptyLabelsEnabled, HidingLabelDuringEditingEnabled, TextEditorInputMode, TextEditorInputModeConfigurator, createLabel, createLabelCore, editLabelCore, openTextEditor, LabelDeleted, LabelTextEditingStarted, LabelTextEditingCanceled, and ValidateLabelText. The events LabelEditing and LabelAdding have been moved to EditLabelInputMode and renamed to QueryLabelEditing and QueryLabelAdding, respectively, to clarify their purpose.
  • Replaced Mouse2DEventArgs with PointerEventArgs.
  • Removed all ClickInputMode events except for Clicked. Click buttons and click count can be obtained from the ClickEventArgs.
  • Method getBendsInPath has been added to the IBendSelectionTester interface and is used to check for bends that should be lasso selected.
  • Method getPortsInPath has been added to the IPortSelectionTester interface and is used to check for ports that should be lasso selected.
  • InvalidItemsDiscardingEnabled in ItemHoverInputMode has been renamed to IgnoringInvalidItemsEnabled, and its behavior was reversed.
  • The ItemDropInputMode#DragDropped event is now raised after the drop gesture has actually finished, in line with how similar events are raised elsewhere.
  • Bends in edges that use ArcEdgeStyle, ArrowEdgeStyle, or BridgeEdgeStyle are no longer shown when selecting these edges. Additionally, marquee and lasso selection will not select these bends anymore even if they lie in the selection rectangle.
  • The MoveLabelInputMode class and its corresponding property on GraphEditorInputMode have been removed. Label movement is now handled directly by MoveInputMode. Most customizations related to label movement (as opposed to the move gesture in general) can now be done on LabelPositionHandler, instead.
  • The MoveInputMode and HandleInputMode sub-modes of GraphEditorInputMode no longer have a pre-set SnapContext. Instead, they take the SnapContext from the InputModeContext. That way, changing the SnapContext on GraphEditorInputMode will also affect the sub-modes.
  • HoveredItemChangedEventArgs is no longer a subclass of the unrelated ItemEventArgs.
  • Replaced Dummy in names with a more descriptive term. In particular:
    • In CreateEdgeInputMode, DummyEdge, DummyEdgeGraph, DummyTargetNode,, DummyTargetNodePort, updateDummyEdgeSourcePort, updateDummyEdgeTargetPort, getDummyEdgeSnapLines, and CreateDummyBend have been renamed to PreviewEdge, PreviewGraph, PreviewEndNode, PreviewEndNodePort, updatePreviewEdgeStartPort, updatePreviewEdgeEndPort, getPreviewEdgeSnapLines, and createPreviewBend.
    • The Visualization#DUMMY enum value has been renamed to Visualization#PLACEHOLDER.
    • In PortRelocationHandle, createDummyEdge has been renamed to createPreviewEdge.
  • The event DeletedSelection of GraphEditorInputMode now uses ItemsEventArgs instead of SelectionEventArgs.
  • The doStartEdgeCreation method on the CreateEdgeInputMode class is now called startEdgeCreation.
  • The doStartDrag method on the MoveInputMode class is now called startDrag.
  • The beginDragging method on the HandleInputMode class is now called startDrag.
  • The addLabel method on GraphEditorInputMode is now called startLabelAddition.
  • The editLabel method on GraphEditorInputMode is now called startLabelEditing.

Incompatible Behavior Changes

  • Changed the default of TextEditorInputMode#TextAreaPlacementPolicy to TextAreaPlacementPolicy#MOVE_TEXT_AREA.
  • The GraphViewerInputMode#findItems and GraphEditorInputMode#findItems methods now considers the actual z-order of the hit items.
  • GraphEditorInputMode's MoveUnselectedItemsInputMode now only moves unselected items. Previously it also moved selected items despite its name.
  • The MultiSelectionRecognizer of GraphEditorInputMode and GraphViewerInputMode are not used anymore for marquee and lasso selection. Instead, MarqueeSelectionInputMode and LassoSelectionInputMode have their own modifiers for different selection policies.
  • The LabelDropInputMode#isValidLabelOwner method now only accepts instances of FreeLabelModel or that the draggedLabel's owner type matches the owner type e.g. INode, IEdge, or IPort.
  • The default values of the NodeReshapeHandleProvider#RatioReshapeRecognizer property and ReshapeHandlerHandle has been changed to null. If no custom recognizer is set, ReshapeHandlerHandle uses the new HandleInputMode#isDirectionalConstrained method instead if a HandleInputMode is found in the IInputModeContext.
  • The default value of EnableSnappingRecognizer in CreateEdgeInputMode, HandleInputMode, and MoveInputMode has been changed from CTRL_UP to ALT_UP.
  • The default value of DisableSnappingRecognizer in CreateEdgeInputMode, HandleInputMode, and MoveInputMode has been changed from CTRL_DOWN to ALT_DOWN.
  • The default value of CenterReshapeRecognizer in NodeReshapeHandleProvider and ReshapeHandlerHandle has been changed from ALT_IS_DOWN to CTRL_IS_DOWN.
  • The default value of ReparentNodeHandler#ReparentRecognizer has been changed from SHIFT_IS_DOWN to CTRL_IS_DOWN.
  • GraphEditorInputMode#GroupingOperationsAllowed is now true by default.
  • Refined the event sequence of CreateEdgeInputMode to ensure consistency and symmetry between gesture cancellation and completion.
  • Reorganized the sequence to include EdgeCreationStarted only after the start node dragging has finished and the end port candidate is determined.
  • Adjusted the timing of the end port candidate update, which now occurs just before GestureFinishing, allowing users to apply final updates to the end port.
  • Ensured the following event order for gestures:
    • GestureStarting, GestureStarted.
    • Cancellation path: GestureCanceling, GestureCanceled.
    • Completion path: EdgeCreationStarted, GestureFinishing, EdgeCreated, GestureFinished.
  • The EdgeCreationStarted and EdgeCreated events provide now arguments of type ItemEventArgs<IEdge>.
  • Edges can now be reconnected to other nodes per default. The old behavior can be restored by decorating the edge lookup with the provider returned by IEdgeReconnectionPortCandidateProvider#fromSourceAndTarget.
  • During edge creation, bends are now created when pressing a mouse button instead of releasing it. This way, when starting edge creation by dragging the mouse from a node, no bend is created on the first mouse button release, which was an often unwanted behavior.
  • Unselected items can be moved by default.
  • Edge creation: by default, start port candidates are shown when hovering over a node.
  • GraphViewerInputMode / GraphEditorInputMode: the ClickHitTestOrder default value has been changed to GraphItemTypes#ALL which means that the default order is the Z-Order but with a prioritization for elements behind labels.
  • GraphViewerInputMode: The MoveViewportInputMode's priority has been changed to 190.
  • GraphEditorInputMode: The sub input mode's priorities have been changed to the following order: WaitInputMode, KeyboardInputMode, HandleInputMode, ClickInputMode, CreateEdgeInputMode, MoveSelectedItemsInputMode, MoveUnselectedItemsInputMode, CreateBendInputMode, MoveViewportInputMode, LassoSelectionInputMode, MarqueeSelectionInputMode, ItemHoverInputMode, NavigationInputMode, AbstractPopupMenuInputMode, NodeDropInputMode, LabelDropInputMode, PortDropInputMode, ToolTipInputMode, EditLabelInputMode.
  • The default value of CreateEdgeInputMode#PortCandidateResolutionRecognizer has been changed from SHIFT_IS_DOWN to CTRL_IS_DOWN.
  • The default value of the CreateEdgeInputMode#EnforceBendCreationRecognizer has been changed form CTRL_IS_DOWN to ALT_IS_DOWN.
  • The default keyboard shortcuts of several commands have been changed:
    • Command#COLLAPSE_GROUP now uses Alt+Left.
    • Command#EXPAND_GROUP now uses Alt+Right.
    • Command#ENTER_GROUP now uses Alt+Down.
    • Command#EXIT_GROUP now uses Alt+Up.
    • Command#TOGGLE_EXPANSION_STATE now uses Alt+Shift+Left and Alt+Shift+Right.
    • Command#INCREASE_ZOOM now uses Ctrl+Plus.
    • Command#DECREASE_ZOOM now uses Ctrl+Minus.
  • The default value of TextEditorInputMode#AutoCommittingOnFocusLostEnabled is now true . This means that the text of an edited label is commited instead of discarded when the text box loses the focus e.g. by clicking on the canvas.
  • The default edge lookup doesn't provide an IPositionHandler anymore so dragging a selected edge doesn't move all its bends.
  • Orthogonal edge editing now has to be enabled for each edge that should be edited orthogonally instead of enabling it for all edges by setting the GraphEditorInputMode#OrthogonalEdgeEditingContext property. This can be done by enabling the PolylineEdgeStyle#OrthogonalEditingEnabled properties of the styles, by setting an apropriate FallbackEdgeHelperProvider on the used OrthogonalEdgeEditingContext or by providing an IOrthogonalEdgeHelper in the edges' lookup.
  • NavigationInputMode now interprets the direction of arrow keys in view coordinates by default.
  • The default lookup of labels now returns an IPositionHandler implementation.
  • In CreateEdgeInputMode it was previously possible to define a fallback for getPortOwner if IHitTester was removed. This option for defining a fallback is removed and always returns null.
  • Improved the CreateBendInputMode behavior: Previously, dragging an existing bend triggered the BendCreated event, causing confusion and limiting event handling for new bend creation. This has been adjusted to ensure the event only fires when a new bend is created interactively.
  • CanvasComponent#updateContentBounds now only considers the items in the RenderTree#ContentGroup instead of the RootGroup when calculating the new bounds.

Snapping

Incompatible API Changes

  • LabelSnapContext has been removed, and label snapping is now handled by GraphSnapContext:
    • The GraphEditorInputMode#LabelSnapContext property and the GraphEditorInputMode#onLabelSnapContextChanged method have been removed.
    • The CollectLabelSnapLineEventArgs class has been removed.
    • Configuration properties of LabelSnapContext have been moved to GraphSnapContext and renamed.
    • The ILabelSnapContextHelper interface and the LabelSnapContextHelper class have been removed. Instead, the ILabelSnapResultProvider interface and the classes LabelSnapResultProvider and LabelSnapReferenceProvider have been added.
    • The LabelDecorator#LabelSnapContextHelperDecorator property has been replaced by the properties SnapReferenceProvider and SnapResultProvider.
  • CollectGraphSnapLinesEventArgs has been renamed to CollectSnapReferencesEventArgs. Its methods addFixedNodeSnapLine, addFixedSegmentSnapLine, addPortSnapLine, and addAdditionalSnapLine have been removed and replaced by the single addSnapReference method.
  • GraphSnapContext has been refactored, and the following members have changed:
    • The properties SnappingNodesToSnapLinesEnabled, SnappingBendsToSnapLinesEnabled, SnappingSegmentsToSnapLinesEnabled, SnappingBendAdjacentSegmentsEnabled, SnappingPortAdjacentSegmentsEnabled, SnappingEdgeLabelsEnabled, SnappingNodeLabelsEnabled, and SnappingPortLabelsEnabled have been replaced by the new properties SnappableItems and GridSnappableItems.
    • The collectVisibleNodePairs method now takes the CollectSnapReferencesEventArgs the snap references shall be added to.
    • The methods findSameWidthEntries and findSameHeightEntries have been removed. Instead, the SnapSize references describing to which size items can snap are provided by the SnapReferences property. Similarly, the FixedNodeSnapLines, FixedSegmentSnapLines, FixedPortSnapLines, and AdditionalSnapLines properties have been removed. The SnapReferences property should be used instead.
  • The SnapLine#ResourceKey property has been removed along with most of the static ResourceKey members used for snapping. Instead, a VisualizationType property of the enum type SnapReferenceVisualizationType is used to describe which visualization should be used for the SnapLine.
  • Most subclasses of SnapLine have been removed as they only provided properties used for the visualization that are now available on SnapResult.
  • The SnapTypes enum used by SnapResult has been replaced by the new SnapConstraint class that supports finding common snap locations for SnapResult with different constraints.
  • The snap and isSnapped methods of SnapResult have been removed. Instead, a Constraint property of type SnapConstraint has been added that is used to merge possible SnapResult and check if a location is valid for a given SnapResult.
  • The SnapResult#getVisualCreator method has been removed and is replaced by the new ObjectRenderer property.
  • The factory methods of SnapResult have been adjusted:
    • createPointSnapResult has been renamed to createSnapResult.
    • createSnapLineSnapResult has been renamed to createLineSnapResult.
    • createLabelSnapResult has been removed.
  • The methods of the snap result providers have been adjusted to support the new SnapReference API. Most methods now take one instance of a SnapReference subclass like SnapLine or SnapGrid.
  • The class SnapState has been removed.
  • The type of the SnapContext properties of all input modes has been changed from SnapContext to GraphSnapContext.
  • Most classes and members that had SnapLine in their name have been renamed to include SnapReference instead.
  • The ReshapeRectangleContext#InitialBounds property has been renamed to InitialLayout.
  • The GraphEditorInputMode#SnapContext property is now set per default and may not be null. It is disabled per default.
  • Renamed the GraphSnapContext#NodeToNodeDistance property to NodeDistance.
  • Renamed the GraphSnapContext#EdgeToEdgeDistance property to EdgeDistance.

Clipboard

Incompatible API Changes

  • The values LABEL_MODEL_PARAMETER and PORT_LOCATION_MODEL_PARAMETER have been removed from the CloneTypes enum as those parameter are typically immutable, so cloning them has no effect.
  • IElementCopiedCallback has been renamed to IItemCopiedCallback.
  • GraphViewerInputMode's ElementsCopied event has been renamed to ItemsCopied.
  • GraphEditorInputMode's ElementsCopied, ElementsCut, ElementsCopied, ElementsPasted and ElementsDuplicated events were renamed to ItemsCopied, etc.
  • On GraphClipboard, the ElementsCut, -Cutting, -Copying, -Copied, -Pasting, -Pasted, -Duplicating, and -Duplicated events were renamed to Items instead of Elements and use the new GraphClipboardEventArgs. Also, the onElementCut, -Copied-, and -Pasted methods were renamed to start with OnItem and take an additional ClipboardOperationContext as a parameter.
  • GraphClipboard#removeElements has been renamed to removeItems.
  • GraphClipboard#isFoldingStateElement has been renamed to isFoldingStateItem.
  • GraphClipboard#createContext now takes an additional IInputModeContext parameter that should be returned in the new contexts lookup.
  • The GraphClipboard#ClipboardGraph property is now read-only.
  • The parameters of GraphClipboard's Copy method have been rearranged so default values for optional parameters could be added.
  • The methods createClipboardGraph, createToClipboardCopier, createFromClipboardCopier, createDuplicateCopier, and createDefaultClipboardIdProvider from GraphClipboard that were used to lazily initialize the corresponding properties have been removed.
  • GraphClipboard#paste now takes an enumerable of IModelItem as targetOwners parameter instead of a targetFilter predicate.
  • GraphClipboard#isFoldingStateElement is now an instance method and doesn't have an owner parameter anymore.
  • The GraphClipboard#PasteDelta property has been renamed to PasteOffset. It is now modified by the GraphClipboard's cut , copy, paste, and duplicate methods instead of the corresponding methods on GraphEditorInputMode.
  • The GraphEditorInputMode#PasteDelta property has been removed and replaced by the new GraphClipboard#PasteOffsetIncrement property.
  • IClipboardHelper's methods cut, copy, and paste have been renamed to onCut, onCopied, and onPasted.
  • IClipboardHelper's methods cut and copy don't return an object anymore and the object parameter of paste and shouldPaste has been removed. For cut/copy and paste the same IClipboardHelper method is now used so any state that should be transfered can be stored in a custom implementation.
  • IClipboardHelper has new methods shouldDuplicate and onDuplicated which have to be implemented, now.
  • GraphClipboard`s methods getMemento and getClipboardHelper have been removed.
  • GraphClipboard's protected copy and paste methods now take the new ClipboardOperationContext as parameter instead of the sourceGraphs and filter predicates.
  • GraphClipboard's cut, copy, paste, and duplicate methods now use an IStreamIterable instead of a filter predicate to determine the subgraph to copy.
  • GraphClipboard's Create*Filter methods have been removed.
  • The GraphClipboard now uses ClipboardGraphCopier instances for its ToClipboardCopier, FromClipboardCopier, and DuplicateCopier.
  • The graph#ParentNodeDetectionModes has been reduced to contain only the mainly used options. The option Root has been renamed to NONE, and the options ALLOW_SELF and FORCE as well as the MODE_MASK and MODIFIER_MASK have been removed. The getTargetNode method can be overridden if the reduced modes are not suitable and may call the new findParentByPreviousParent method to simulate the old FORCE setting.
  • GraphClipboard`s getTarget methods now take an additional ClipboardOperationContext parameter, and the getTarget overload for nodes also takes a pasteLocation as an additional parameter.
  • GraphComponent instances now use a shared GraphClipboard per default. To revert to the previous behavior, a new GraphClipboard instance can be set on each GraphComponent.

Folding

Incompatible API Changes

  • The FoldingLabelOwnerState#remove(FoldingLabelState) was renamed to removeLabel and the FoldingLabelState#removeBend(FoldingBendState) was renamed to removeBend.
  • Interface IFolderNodeConverter has a new updateGroupNodeState method.
  • Interface IFoldingEdgeConverter has a new updateMasterEdges method.
  • FolderNodeConverter now relies on FolderNodeDefaults to configure initialization and update of states.
  • FoldingEdgeConverter and MergingFoldingEdgeConverter now rely on FoldingEdgeDefaults to configure initialization and update of states.

Incompatible Behavior Changes

  • Tags are not automatically the same on group and folder nodes or master and folding edges (master and view states). Instead, they have to be synchronized using the IFolderNodeConverter and IFoldingEdgeConverter implementations. The default implementations already synchronize the tags.
  • In the graph of a folding view, the createGroup method now always creates a group even if the isExpanded predicate specified in the FoldingManager#createFoldingView method specifies otherwise. Create the group on the master graph if you want the predicate to be respected.

Lookup

Incompatible API Changes

  • The methods setLookupImplementation and getLookup have been removed from Graph. Instead the lookup method should be overridden if the default lookup behavior should be replaced.
  • The methods setLookup and getLookup have been removed from AbstractGraphWrapper. Instead, the lookup method should be overridden if the default lookup behavior should be replaced.
  • The node parameter of the methods in the interfaces IGroupPaddingProvider, INodeSizeConstraintProvider, and IGroupBoundsCalculator has been removed.
  • The edge parameter of the methods in the interfaces IEdgePortHandleProvider, IBendCreator, and IOrthogonalEdgeHelper has been removed.
  • The label parameter of the methods in the interfaces ILabelModelParameterProvider, and ILabelModelParameterFinder has been removed.
  • The model item parameter in ISnapReferenceProvider#addSnapReferences has been removed.
  • The ILabelModelParameter parameter of ILabelModel#getContext has been removed and ILabelModel doesn't extend ILookup anymore. Instead, the lookup returned by getContext should be used for all lookup calls.
  • The IPortLocationModelParameter parameter of IPortLocationModel#getContext has been removed and IPortLocationModel doesn't extend ILookup anymore. Instead, the lookup returned by getContext should be used for all lookup calls.
  • The OrthogonalEdgeEditingContext#getOrthogonalEdgeHelper method has been replaced by the FallbackEdgeHelperProvider and OrthogonalEdgeHelperProvider properties.
  • The INodeInsetsProvider interface was renamed to IGroupPaddingProvider.
  • Renamed LookupDecorator#setImplementation to addConstant.
  • Renamed LookupDecorator#setFactory to addFactory.
  • Renamed LookupDecorator#setImplementationWrapper to addWrapperFactory.
  • Renamed LookupDecorator#hideImplementation to hide.
  • Renamed lookup decorators in general by removing the Decorator suffix. For example, graphDecorator.EdgeDecorator.PositionHandlerDecorator.HideImplementation is now graphDecorator.Edges.PositionHandler.Hide.
  • Removed LookupDecorator#NullFallback. Instead, use the predicate of the addFactory method or return the original instance in the addWrapperFactory method.
  • Removed LookupDecorator#DecoratingNullsEnabled. Instead, implement the desired behavior in addWrapperFactory.
  • Removed the SimpleNode#LookupImplementation property, SimpleEdge, SimpleBend, SimpleLabel and SimplePort. Instead, use the new getDecorator method to adjust the item's lookup.
  • The SimpleNode, SimpleEdge, SimpleBend, SimpleLabel and SimplePort classes are now sealed, and their lookup method is no longer virtual. To adjust the item's lookup, use the getDecorator method.
  • Removed CanvasComponent#inputModeContextLookup and CanvasComponent#InputModeContextLookupChain. Instead, use the new getInputModeContextDecoratorFor method to decorate the input mode context lookup.
  • The EdgeDecorator#getDecoratorFor method, NodeDecorator, etc. no longer has the nullIsFallback and decorateNull parameters.

GraphML

Incompatible API Changes

  • The methods GraphMLIOHandler#addInputMapperFuture and GraphMLIOHandler#addInputHandlerFactory have been removed, together with their support classes.
  • The addRegistryInputMapper and addRegistryOutputMapper methods have been removed from GraphMLIOHandler, since the MapperRegistry has been removed. To read or write additional per-item data, use the addInputMapper or addOutputMapper methods, instead.

View-Layout-Bridge

Incompatible API Changes

  • Renamed ItemMapping#Function to MapperFunction.
  • Renamed the LayoutUtilities#morphLayout method to applyLayoutAnimated.
  • Renamed the LayoutExecutor#Duration property to AnimationDuration.
  • Renamed the LayoutExecutor#createMorphAnimation method to createLayoutAnimation.
  • The LayoutGraphAdapter#PORT_DUMMY_NODE_DPKEY constant has been renamed to PORT_HELPER_NODE_DATA_KEY.
  • Boolean LayoutExecutor#FixPorts property is replaced by an ItemMapping PortPlacementPolicies, that allows to specify a policy for the handling of each individual port.
  • LayoutExecutor#AutomaticEdgeGrouping has been removed. Edges at the same port are now always automatically port grouped unless port groups have been defined explicitly.
  • LayoutGraphAdapter#AutomaticEdgeGrouping has been removed. Edges at the same port are now always automatically port grouped unless port groups have been defined explicitly.
  • Changed property PortAdjustmentPolicy of LayoutExecutor class to an ItemMapping PortAdjustmentPolicies which allows for different values for each port. The default is PortAdjustmentPolicy#LENGTHEN.
  • Changed property PortAdjustmentPolicy of LayoutGraphAdapter class to an ItemMapping PortAdjustmentPolicies which allows for different values for each port. The default is PortAdjustmentPolicy#LENGTHEN.
  • Renamed the LayoutExecutor#Duration property to AnimationDuration.
  • Removed the ContextItemMapping class.
  • The properties LayoutExecutor#SelectionModel and LayoutGraphAdapter#SelectionModel have been removed, meaning that selected items of the IGraph are no longer automatically marked in the LayoutGraph via keys like the former LayoutKeys#AFFECTED_NODES_DPKEY. If the selected items should be marked for a specific key of layout algorithms, then these items can always be provided via the specific LayoutData property of the layout algorithms.
  • The TableLayoutConfigurator#prepare and LayoutExecutor#prepareTableLayout methods now return a LayoutGridData instance.
  • Renamed the YGraphAdapter class to StructureGraphAdapter.
    • Renamed the YGraphAdapter#YGraph property to StructureGraph.
    • Renamed YGraphAdapter#createEdgeEnumerable to createOriginalEdgeList.
    • Renamed YGraphAdapter#createNodeEnumerable to createOriginalNodeList.
    • Renamed YGraphAdapter#createEdgeList to createCopiedEdgeList.
    • Renamed YGraphAdapter#createNodeList to createCopiedNodeList.
    • Renamed YGraphAdapter#createMapper to createCopiedToOriginalNodeWrapper and createCopiedToOriginalEdgeWrapper.
    • Renamed YGraphAdapter#createDataMap to createOriginalToCopiedNodeWrapper and createOriginalToCopiedEdgeWrapper.
  • Removed key LayoutGraphAdapter#ORIGINAL_TAG_DP_KEY. Use the Tag property of the layout items instead to get the original tag associated to the original IGraph items.

Incompatible Behavior Changes

  • Edges at the same port are now always automatically port grouped unless port groups have been defined explicitly.
  • The LayoutGraphAdapter class does no longer offer a method to create a layout graph several times but is now meant to create exactly one layout graph copy which can be accessed via the LayoutGraph property and initialized with method LayoutGraphAdapter#initialize. After initialization, changing properties of the LayoutGraphAdapter has no effect anymore.

Layout

Incompatible API Changes

  • The public constructors of ItemMapping and ItemCollection have been removed. Instead the instances returned by the LayoutData properties should be used to configure the LayoutData.
  • The optional ItemMapping parameter of GenericLayoutData#addItemMapping has been removed.
  • The optional ItemCollection parameter of GenericLayoutData#addItemCollection has been removed.
  • Renamed the SubgraphLayout class to SubgraphLayoutStage and renamed the respective layout data class from SubgraphLayoutData to SubgraphLayoutStageData.
  • Renamed EdgeBundlingStage to BundledEdgeRouter.
  • Renamed GivenCoordinatesStage to GivenCoordinatesLayout.
  • Renamed GivenCoordinatesStageData to GivenCoordinatesLayoutData.
  • The OrientationLayout class has been renamed to OrientationStage.
    • Furthermore, the following methods have been removed from that class: isOrientationMirrored, Transform, prepareTransform, completeTransform, createOrientedNodeHalo, createOrientedInsets and createOrientedNodeSize.
  • Renamed BendConverter to BendSubstitutionStage.
  • The OrientationLayout#HorizontalOrientation property has been removed. To check for a horizontal orientation, check if Orientation property equals LayoutOrientation#LEFT_TO_RIGHT or LayoutOrientation#RIGHT_TO_LEFT.
  • Renamed GraphLayoutLineWrapper to LineWrappingStage.
  • Renamed HideGroupsStage to GroupHidingStage.
  • Renamed TemporaryGroupNodeInsertionStage to TemporaryGroupInsertionStage and the respective data class from TemporaryGroupNodeInsertionData to TemporaryGroupInsertionData.
  • Renamed BorderLineSide to Side, moved to namespace Layout and renamed its values: North to Side#TOP, East to Side#RIGHT, South to Side#BOTTOM, and West to Side#LEFT.
  • Moved BorderLine and BorderLineSegment to namespace Layout.
  • Removed all methods and properties from the Direction class and converted it to an enum.
  • Removed the NodeHalo class. Halos are now specified as InsetsD and called node margins. in the corresponding LayoutData (e.g. HierarchicalLayoutData#NodeMargins).
    • The properties previously named NodeHalos have been renamed to NodeMargins for the following classes: AlignmentStageData, CircularLayoutData, CompactDiskLayoutData, ComponentLayoutData, RadialGroupLayoutData, RecursiveGroupLayoutData, HierarchicalLayoutData (formerly HierarchicLayoutData), GenericLabelingData (formerly LabelingData), OrganicLayoutData, OrthogonalLayoutData, ClearAreaLayoutData, FillAreaLayoutData, PartialLayoutData, RadialLayoutData, CurveRoutingStageData, TabularLayoutData, EdgeRouterData, RadialTreeLayoutData (formerly BalloonLayoutData), TreeLayoutData.
    • Renamed AsIsLayerer#NodeHalo to FromSketchLayerAssigner#NodeMargin.
    • Renamed TemporaryGroupDescriptor#Halo to Margins.
    • Renamed NodeHalo#NODE_HALO_DPKEY to LayoutKeys#NODE_MARGIN_DATA_KEY.
  • Renamed LayoutExecutor#TargetBoundsInsets to TargetBoundsPadding.
  • Renamed GroupingKeys#GROUP_NODE_INSETS_DPKEY to GROUP_NODE_PADDING_DATA_KEY and moved the key to LayoutKeys.
  • Renamed GroupingKeys#MINIMUM_NODE_SIZE_DPKEY to LayoutKeys#MINIMUM_GROUP_NODE_SIZE_DATA_KEY.
  • Renamed InsetsGroupBoundsCalculator#DefaultInsets to GroupBoundsCalculator#DefaultPadding and InsetsGroupBoundsCalculator#NodeHalosConsiderationEnabled to GroupBoundsCalculator#NodeMarginsConsiderationEnabled.
  • Renamed TemporaryGroupDescriptor#Insets to Padding.
  • Renamed Graph#reInsertNode and reInsertEdge to LayoutGraph#reinsert.
  • From LayoutGraphHider, the FiringGraphEventsEnabled and Graph properties, and the hideEdges, hideSelfLoops, simplifyGraph, and hideMultipleEdges methods have been removed. Also, all methods to hide and unhide various collections of nodes or edges have been replaced by hide and unhide methods that get an IStreamIterable of Node or Edge.
  • PortCalculator, IIntersectionCalculator, and IntersectionCalculatorKeys have been removed. Instead, the LayoutExecutor#PortAdjustmentPolicy property should be set to a suitable value.
  • Renamed BorderLine#createMin to createMinimum.
  • Renamed BorderLine#createMax to createMaximum.
  • GraphPartitionManager is removed, LayoutGraphHider provides the same functionality.
  • The methods PortCalculator#calculatePorts and PortCalculator#equalsEps have been removed.
  • The following methods have been removed from the ReverseEdgesStage: ReverseEdgesStage#findReversedTreeEdges, ReverseEdgesStage#reverseEdge and ReverseEdgesStage#reverseEdges.
  • Renamed MirrorModes to MirroredOrientations and OrientationLayout#MirrorMode to MirroredOrientations.
  • The AbortHandler#CheckFailed property has been removed. To achieve the same functionality, the LayoutAbortController (new name of the AbortHandler) can be subclassed, overriding its check method which allows to detect calls to that method.
  • LayoutGraphHider: Method names have been standardized for consistency. Collection parameters and return values are now of type IStreamIterable. Methods with non-nullable parameters will now throw an exception if passed null values.
  • Replaced properties XOffset and YOffset of the PortCandidate class by a single property Offset of type PointD.
  • The SequentialLayout#Layouts property is now a read-only List<ILayoutAlgorithm>. The appendLayout, appendLayouts, and removeAll methods have been removed as their functionality is now handled by the list methods.
  • PortConstraints and PortCandidates have been unified and renamed to LayoutPortCandidate.
  • PortDirections and PortSide have been unified as PortSides, and the enum values of the sides have been renamed.
  • PortCandidateSets have been replaced by NodePortCandidates, and collections of PortCandidates for edges have been replaced by EdgePortCandidates.
  • The port-related settings in the LayoutData classes have been combined into a sub-LayoutData Ports.
  • The keys in PortConstraintKeys have been moved to LayoutKeys.
  • The port-related properties of the layout data classes (SourcePortGroupIds, TargetPortGroupIds, SourcePortCandidates, TargetPortCandidates) have been moved to a sub-data accessible via the property Ports.
  • The BufferedLayout class has been removed. To apply a layout algorithm on a copy of a LayoutGraph instance use LayoutGraph#createCopy method to get a copy, then apply the layout on it and, finally, write back the result using LayoutGraphCopyData#commitLayoutToOriginalGraph.
  • The CompositeLayoutStage class has been removed. If a complex composition of layout stages is required, the new LayoutStageStack class can be used instead. To get an ILayoutAlgorithm that is then applied like CompositeLayoutStage was before, LayoutStageStack#linkCoreLayouts method must be called.
  • Merged MinimumSizeGroupBoundsCalculator and InsetsGroupBoundsCalculator into the new GroupBoundsCalculator class.
  • LayoutMultiplexer has been removed. The features of ComponentLayout (COMPONENT_LAYOUT_DATA_KEY) or RecursiveGroupLayout (GROUP_NODE_LAYOUT_DATA_KEY) can be used instead.
  • The classes FixPortLocationStage and FixPortLocationStageData have been removed from the library. To correct the port locations after applying a layout use the PortPlacementStage class.
  • PortPlacementStage#PathCorrection has been replaced by PortPlacementStage#RouteCorrectionPolicy of enum type RouteCorrectionPolicy.
  • The SnapOuterPortsToNodeBorderStage class has been removed.
  • Removed NormalizeGraphElementOrderStage. Use NodeComparison and EdgeComparison of LayoutExecutor instead.
  • The classes ChannelEdgeRouter, OrthogonalPatternEdgeRouter and OrthogonalSegmentDistributionStage have been removed from the library. Their functionality is superseded by the EdgeRouter routing algorithm.
    • To configure the EdgeRouter to generate a style that is similar to the removed ChannelEdgeRouter, set the StopDuration property to zero and use the predefined penalty configuration EdgeRouterCosts#LOW_QUALITY. It is however not compatible with advanced features like integrated edge label placement.
  • The utility PortConstraintConfigurator class has been removed.
  • Removed the classes PartitionLayout and PartitionLayoutData.
  • The FamilyTreeLayout class has been removed.
  • Removed SplitEdgeStage.
  • The read/write properties MinimumSizeGroupBoundsCalculator#MinimumNodeSizeDpKey and InsetsGroupBoundsCalculator#GroupNodeInsetsDpKey have been removed. The bounds calculator classes now always use the values defined via the keys LayoutKeys#MINIMUM_GROUP_NODE_SIZE_DATA_KEY and LayoutKeys#GROUP_NODE_PADDING_DATA_KEY. Using the IGraph API, the insets and minimum sizes are registered automatically, so that this change has no effect.
  • The read/write properties SubgraphLayout#AffectedNodesDpKey and SubgraphLayout#AffectedEdgesDpKey have been removed. They were replaced by static read-only keys SubgraphLayoutStage#SUBGRAPH_NODES_DATA_KEY and SubgraphLayoutStage#SUBGRAPH_EDGES_DATA_KEY.
  • Removed LayoutKeys#NODE_ID_DPKEY and LayoutKeys#EDGE_ID_DPKEY.
  • The HandleNaNCoordinatesStage has been removed.
  • The MultiStageLayout class has been removed from the API. The HierarchicalLayout (formerly HierarchicLayout), OrganicLayout, OrthogonalLayout, TreeLayout, RadialTreeLayout (formerly BalloonLayout), SeriesParallelLayout, RadialLayout, CompactDiskLayout, and RadialGroupLayout (formerly CactusGroupLayout) classes now directly implement ILayoutAlgorithm. These classes offer a new LayoutStages property that allows to access the mutable stack of ILayoutStage instances associated with the respective algorithm. In addition, the offer different new properties to directly access frequently used stages.
  • The API names to define routing styles throughout the layout algorithms have been streamlined and made more consistent. Properties on layout algorithms have all been renamed to EdgeRoutingStyle and those on edge-specific classes have been renamed to RoutingStyle.
    • The polyline#EdgeRoutingStyle enum has been renamed to router#RoutingStyle.
    • The tree#EdgeRoutingStyle enum has been renamed to SingleLayerSubtreePlacerRoutingStyle.
    • The LayeredRoutingStyle enum has been renamed to LevelAlignedSubtreePlacerRoutingStyle.
    • The radial#EdgeRoutingStrategy enum has been renamed to radial#RoutingStyle.
    • The partial#EdgeRoutingStrategy enum has been renamed to partial#RoutingStyle.
    • The hierarchic#EdgeRoutingStyle enum has been renamed to hierarchical#RoutingStyle while the old RoutingStyle class has been renamed to RoutingStyleDescriptor.
  • Renamed AbortHandler to LayoutAbortController.
  • The MaximumDuration property is renamed to StopDuration in all public API usages.
  • StopDurations that were of type long are now of type TimeSpan.
  • StopDurations now affect pre-and post-processing steps defined directly on the layout algorithms, as opposed to only the core algorithm.
  • The LayoutAbortController (formerly AbortHandler) is no longer available as a property on LayoutData classes but only on the LayoutExecutor.
  • Static methods on LayoutAbortController (formerly AbortHandler) like getFromGraph have been removed since the handler instance can easily be accessed via the LayoutGraphContext when working with LayoutGraph.
  • The default values of properties LayoutAbortController#StopDuration and LayoutAbortController#CancelDuration has been changed from Duration#ZERO to Constants#MAX_DURATION. Previously, ZERO was interpreted as unlimited time, which is not the case anymore.
  • Removed public methods hideGroupNodes and unhideGroupNodes of GroupHidingStage.
  • The nested Segment class of BorderLine is now the unnested BorderLineSegment class, and some of its members have been changed:
    • Renamed grow to enlarge, addOffset to addPositionOffset, min to MinPosition and max to MaxPosition.
    • Removed the BorderLine#adoptValues method.
    • Converted BorderLine#FirstSegment, BorderLine#LastSegment, BorderLine#Segment#prev and BorderLine#Segment#next from methods to read-only properties, and renamed prev to Previous.
    • Removed BorderLine#prev and BorderLine#next. Use methods BorderLineSegment#Previous and BorderLineSegment#Next instead.
  • Removed the class Maps.
  • Layout data properties that are meant for publishing results now contain the word Result in their name: Renamed CircularLayoutData#CircleIds to CircularLayoutData#CircleIdsResult, HierarchicLayoutData#LayerIndices to HierarchicalLayoutData#LayerIndicesResult, HierarchicLayoutData#SequenceIndices to HierarchicalLayoutData#SequenceIndicesResult, OrganicLayoutData#ZCoordinates to OrganicLayoutData#ZCoordinatesResult, RadialLayoutData#NodeInfos to RadialLayoutData#NodePlacementsResult, and ParallelEdgeRouterData#RoutedParallelEdges to ParallelEdgeRouterData#RoutedMultiEdgesResult.
    • They are now all made readonly and initialized with an IMapper instance.
  • Updated the constructor of AbstractDpKey and subclasses to accept a single string parameter 'ID' for unique identification.
    • Removed properties AbstractDpKey#DeclaringType and AbstractDpKey#Name.
    • Made AbstractDpKey class abstract.
  • The TemporaryGroupDescriptor used by TemporaryGroupInsertionStage class to define temporary group nodes now does not allow that properties YInsets, MinimumSize and Margins (formerly Halo) are null anymore. Previously this was the default which is now InsetsD#Empty, SizeD#EMPTY and InsetsD#Empty, meaning that the behavior does not change.
  • The CopiedLayoutGraph class was removed from the API. To create a copy of a layout graph, the new factory LayoutGraph#createCopy method may be used.
  • Methods and and properties with "BoundingBox" in their name have been renamed to include "Bounds" instead.
  • Removed the YPointPath class. Instead of this class an array or more generally an IStreamIterable of type PointD[] is now used in API members.
    • Changed value to of HierarchicLayout#ALTERNATIVE_EDGE_PATH_DPKEY, ClearAreaLayout#EXPANDED_NODE_ORIGINAL_EDGE_PATH_DPKEY and GivenCoordinatesStage#EDGE_PATH_DPKEY to IStreamIterable<PointD>.
    • Changed BusDescriptor properties BusPoints and ComputedBusPoints to type PointD[].
  • Removed the IDataProvider interface and refactored the whole way data is registered with a LayoutGraph instance. The replacement of IDataProvider is the generic IMapper interface. It allows setting and getting data via an indexer.
    • Removed the methods Graph#addDataProvider and removeDataProvider. Data is now registered and removed using the methods on the new LayoutGraphContext class (e.g. addItemData, addData, remove).
    • Removed the Graph#DataProviderKeys property.
  • Removed the look-up keys GroupingKeys#GROUP_DPKEY, GroupingKeys#NODE_ID_DPKEY and GroupingKeys#PARENT_NODE_ID_DPKEY which were necessary to define grouping information for LayoutGraph instances. This can now be achieved via the helper LayoutGraphGrouping class or directly via instance methods such as LayoutGraph#setIsGroupNode.
  • The GraphDpKey class was replaced by ValueDataKey.
  • Removed the GraphTransformer class; use factory methods from LayoutTransformations class instead to create stages that apply transformation operations on a LayoutGraph.
  • Replaced usages of the Comparator interface with Comparison function delegates.
  • Removed the LayoutGraphUtilities class. The new Edge#resetPath method replaces LayoutGraphUtilities#resetPath method. The new ParallelEdgeRouter#routeEdgesParallel method replaces LayoutGraphUtilities#routeEdgesParallel method.
  • Methods LayoutGraphUtilities#getBoundingBox were combined to one more general, moved to LayoutGraph class and made an instance method.

Incompatible Behavior Changes

  • Method LayoutGraph#reverseEdge now reverses the edge path too. To exchange only source and target of an edge use LayoutGraph#changeEdge method.

Layout Data

Incompatible API Changes

  • The type SingleItem<TItem> was removed. Affected properties use ItemCollection<TItem> instead.
  • Properties of type ItemMapping in LayoutData classes are now named using plural consistently.
  • The value type of properties HierarchicalLayoutData#LayerIndicesResult, HierarchicalLayoutData#SequenceIndicesResult, HierarchicalLayoutData#GivenLayersIndices, RadialLayoutData#LayerIds and CircularLayoutData#CircleIdsResult has been changed from primitives to their boxed type. Null as value means that nothing was published for an item.
  • The value type of the keys HierarchicalLayout#LAYER_INDEX_RESULT_DATA_KEY, HierarchicalLayout#SEQUENCE_INDEX_RESULT_DATA_KEY, GivenLayersAssigner#LAYER_INDEX_DATA_KEY, RadialLayout#LAYER_ID_DATA_KEY and CircularLayout#CIRCLE_ID_RESULT_DATA_KEY has been changed from primitives to their boxed type. Null as value means that the nothing was published for an item.

Hierarchical Layout

Incompatible API Changes

  • The DefaultDrawingDistanceCalculator#SwimlaneDistanceOptimizationEnabled property has been removed. The behavior does not change and is the same as the old default where the property was disabled. Override DrawingDistanceCalculator#getMinimumDistance method and assign zero to nodes that are in different rows/columns to get the same behavior as when previously enabling the property.
  • Property SimplexNodePlacer#SwimLaneCrossingWeight has been renamed to LayoutGridCrossingWeight. Note that the class has been renamed to CoordinateAssigner.
  • Removed GroupCompactionStrategy.
  • Renamed SimplexNodePlacer#GroupCompactionStrategy to GroupCompactionEnabled and changed its type to boolean.
  • In the sub-data SequenceConstraintData of the HierarchicalLayoutData placeBefore and placeAfter were replaced by placeInOrder.
  • In the sub-data LayerConstraintData of the HierarchicalLayoutData placeAbove and placeBelow were replaced by placeInOrder.
  • HierarchicalLayout#GridSpacing: made grid spacing behavior consistent across all layouts by throwing an exception for negative values.
  • NodeLayoutDescriptor#NodeLabelMode was removed. If node labels shall be considered by the layout algorithm, they are now considered during all phases. In particular, self-loops do not overlap node labels anymore.
  • The NodeLabelMode enum was removed.
  • Renamed LayerType to HierarchicalLayoutLayerType.
  • Renamed DefaultLayerSequencer to DefaultSequencer.
  • Renamed all types, methods, properties, and namespaces containing "hierarchic" to "hierarchical" including HierarchicLayout, which is renamed to HierarchicalLayout.
  • Moved HierarchicLayout#StopAfterLayeringEnabled/Sequencing to HierarchicalLayoutCore.
  • Replaced HierarchicLayout properties BackLoopRouting & BackLoopRoutingForSelfLoopsEnabled with HierarchicalLayoutEdgeDescriptor#BackLoopRoutingEnabled, where it can now be specified per edge (HierarchicalLayoutData#EdgeDescriptors) or for all edges at once (HierarchicalLayout#DefaultEdgeDescriptor).
  • Removed properties SourcePortOptimizationEnabled and TargetPortOptimizationEnabled from HierarchicalLayoutEdgeDescriptor class.
  • LayerConstraintData no longer inherits from LayoutData.
  • SequenceConstraintData no longer inherits from LayoutData.
  • Renamed IPortAllocator to IHierarchicalLayoutPortAssigner.
  • Renamed DefaultPortAllocator to HierarchicalLayoutPortAssigner.
  • Separated HierarchicLayout#INCREMENTAL_HINTS_DPKEY in INCREMENTAL_NODE_HINTS_DATA_KEY and INCREMENTAL_EDGE_HINTS_DATA_KEY.
  • Separated enum IncrementalHint in IncrementalNodeHint for nodes and IncrementalEdgeHint for edges.
  • Separated HierarchicLayoutData#IncrementalHints in HierarchicalLayoutData#IncrementalNodes and HierarchicalLayoutData#IncrementalEdges. IncrementalNodes now only allows for specifying the nodes that should be inserted incrementally during the layering phase. Additional options for incremental node insertion can be specified using GenericLayoutData.
  • Renamed the DefaultDrawingDistanceCalculator#NodeToNodeDistance property to DrawingDistanceCalculator#NodeDistance.
  • Renamed the DefaultDrawingDistanceCalculator#EdgeToEdgeDistance property to DrawingDistanceCalculator#EdgeDistance.
  • Renamed the HierarchicLayout#NodeToNodeDistance property to NodeDistance.
  • Renamed the HierarchicLayout#EdgeToEdgeDistance property to EdgeDistance.
  • Renamed EdgeLayoutDescriptor to HierarchicalLayoutEdgeDescriptor.
  • Renamed HierarchicLayout#EdgeLayoutDescriptor to DefaultEdgeDescriptor.
  • Renamed and moved HierarchicLayoutCore#EDGE_LAYOUT_DESCRIPTOR_DPKEY to HierarchicalLayout#EDGE_DESCRIPTOR_DATA_KEY.
  • Renamed HierarchicLayoutData#EdgeLayoutDescriptors to EdgeDescriptors.
  • Renamed NodeLayoutDescriptor to HierarchicalLayoutNodeDescriptor.
  • Renamed HierarchicLayout#NodeLayoutDescriptor to DefaultNodeDescriptor.
  • Renamed and moved HierarchicLayoutCore#NODE_LAYOUT_DESCRIPTOR_DPKEY to HierarchicalLayout#NODE_DESCRIPTOR_DATA_KEY.
  • Renamed HierarchicLayoutData#NodeLayoutDescriptors to NodeDescriptors.
  • Renamed "Layerer" to "LayerAssigner" in the following types and members;
    • Renamed ILayerer to ILayerAssigner.
    • Moved HierarchicLayout#FixedElementsLayerer to HierarchicalLayoutCore and renamed to FixedElementsLayerAssigner.
    • Moved HierarchicLayout#FromScratchLayerer to HierarchicalLayoutCore and renamed to FromScratchLayerAssigner.
    • Renamed WeightedLayerer to WeightedLayerAssigner.
    • Renamed ConstraintIncrementalLayerer to ConstraintIncrementalLayerAssigner.
    • Renamed MultiComponentLayerer to MultiComponentLayerAssigner.
    • Renamed MultiComponentLayerer#SingleComponentLayerer to SingleComponentLayerAssigner.
    • Renamed AspectRatioComponentLayerer#SingleComponentLayerer to SingleComponentLayerAssigner.
    • Renamed TopologicalLayerer to TopologicalLayerAssigner.
    • Renamed AspectRatioComponentLayerer to AspectRatioComponentLayerAssigner.
    • Renamed BFSLayerer to BfsLayerAssigner.
    • Renamed GivenLayersLayerer to GivenLayersAssigner.
    • Renamed HierarchicLayoutCore#createIncrementalLayerer to createIncrementalLayerAssigner.
    • Renamed HierarchicLayoutData#BfsLayererCoreNodes to BfsLayerAssignerCoreNodes.
    • Renamed AsIsLayerer to FromSketchLayerAssigner.
  • Renamed GivenLayersLayerer#LAYER_ID_DPKEY to LAYER_INDEX_DATA_KEY.
  • Renamed HierarchicLayoutData#GivenLayersLayererIds to GivenLayersIndices.
  • Removed HierarchicLayoutData#ConstraintIncrementalLayererAdditionalEdgeWeights.
  • Renamed AsIsSequencer to FromSketchSequencer.
  • Renamed SimplexNodePlacer#BarycenterModeEnabled to SymmetryOptimizationStrategy and changed its type to SymmetryOptimizationStrategy. It now supports performing strong, weak and no additional symmetry optimization.
  • Refactored the enum HierarchicLayout#LayoutMode property into a boolean FromSketchModeEnabled property and removed the LayoutMode enum.
  • The IEdgeReverser interface and the HierarchicLayoutCore#createEdgeReverser method have been removed.
  • The NodeLayoutDescriptor class of the HierarchicLayout algorithm, which was renamed to HierarchicalLayoutNodeDescriptor, does no longer allow to specify the border-to-port gap ratios individually for each node side. The BorderToPortGapRatio property now defines the value for all four node sides.
  • BusDescriptor is renamed to GridComponentDescriptor.
  • HierarchicLayout#BUS_DESCRIPTOR_DPKEY is renamed to GRID_COMPONENT_DESCRIPTOR_DATA_KEY.
  • HierarchicLayoutData#Buses is renamed to GridComponents.
  • HierarchicLayoutData#BusRootOffsets is renamed to GridComponentRootOffsets.
  • NodeDataType#BUS_STRUCTURE_DUMMY is renamed to GRID_COMPONENT_BUS_NODE.
  • Replaced INodeData interface with HierarchicalLayoutNodeContext class.
    • Renamed INodeData#GroupId to HierarchicalLayoutNodeContext#EdgeGroupId.
    • Removed the INodeData#ParentGroupNode property.
  • Replaced IEdgeData interface with HierarchicalLayoutEdgeContext class.
    • IEdgeData#Type is read-only on the new HierarchicalLayoutEdgeContext.
    • The following IEdgeData properties now offer read and write access on the new HierarchicalLayoutEdgeContext: SourceGroup, TargetGroup, SourcePortGroup, TargetPortGroup, SourcePortCandidates, TargetPortCandidates, Thickness, CrossingCost, CriticalEdgePriority, SourcePortAlignment, TargetPortAlignment.
    • Renamed IEdgeData#SourcePortConstraint and TargetPortConstraint to SelectedSourcePortCandidate and SelectedTargetPortCandidate respectively. Bot properties now offer read and write access.
    • Removed the IEdgeData#Group property.
  • Replaced ILayer interface with HierarchicalLayoutLayer class.
  • Replaced the ILayer#List property with HierarchicalLayoutLayer #Nodes.
  • Replaced ILayers interface with a list of HierarchicalLayoutLayer instances accessible via HierarchicalLayoutContext#Layers property.
    • Methods HierarchicalLayoutContext#insertLayer and removeLayer are replacements for the ILayers#insert and ILayers#remove methods.
  • Replaced IItemFactory interface with ItemFactory class. Several of the factory methods have also been removed or renamed.
    • createDummyEdge has been renamed to createHelperEdge.
    • CreateProxyNode has been renamed to createSideProxyNode and destroyProxyNode to destroySideProxyNode.
    • createSameLayerProxy has been renamed to createSameLayerProxyEdge and destroySameLayerProxy to destroySameLayerProxyEdge.
    • setTemporaryEdgeGroups has been renamed to createGroupedEdgeContext.
    • setTemporaryCriticalEdgePriority has been removed.
    • setTemporaryCrossingCost has been removed.
    • setTemporaryEdgeThickness has been removed.
    • setTemporaryPortConstraint has been removed.
  • EdgeDataType#REDIRECTED_GROUP_EDGE has been removed.
  • The ILayoutDataProvider interface is removed and its functionality is moved to HierarchicalLayoutContext.
  • The ILayers interface is moved to the HierarchicalLayoutContext, and methods that accepted ILayers as a parameter instead accept HierarchicalLayoutContext now.
  • The IItemFactory interface is moved to the HierarchicalLayoutContext, and methods that accepted IItemFactory as a parameter instead accept HierarchicalLayoutContext now.
  • Names containing PortBorderGap were renamed to now contain BorderToPortGapRatio.
  • Properties HierarchicLayout#RecursiveGroupLayeringEnabled and HierarchicLayout#GroupCompactionEnabled are combined into HierarchicalLayout#GroupLayeringPolicy.
  • Methods ConstraintIncrementalLayerer#checkConstraints, GivenLayersLayerer#normalize have been removed.
  • The protected callback methods getLayerAlignment and assignNodesToSublayer have been removed from the CoordinateAssigner class (formerly called SimplexNodePlacer). Furthermore, its getMinDistance method has been renamed to getMinimumDistance.
  • The IDrawingDistanceCalculator#getMinDistance method has been renamed to getMinimumDistance.
  • Renamed hierarchic#NodeDataType to HierarchicalLayoutNodeType and its value Normal to HierarchicalLayoutNodeType#REGULAR.
  • Renamed hierarchic#EdgeDataType to HierarchicalLayoutEdgeType and its value Normal to HierarchicalLayoutEdgeType#REGULAR.
  • Renamed LayerType#NORMAL to HierarchicalLayoutLayerType#REGULAR.
  • Renamed MergingPolicy to LayerMergingPolicy.
  • Renamed RankingPolicy to LayerRerankingPolicy and TopologicalLayerer#RankingPolicy to RerankingPolicy.
  • Renamed WeightHeuristic to SequencerWeightHeuristic.
  • The HierarchicLayout#OrthogonalRoutingEnabled property has been removed. To specify orthogonal or other routing styles, the routing style on the HierarchicalLayoutEdgeDescriptor must be used instead.
  • IPortConstraintOptimizer has been renamed to IPortCandidateSelector, and its methods have been renamed from optimizeAfterLayering and optimizeAfterSequencing to selectAfterLayering and IPortCandidateSelector#selectAfterSequencing.
  • AbstractPortConstraintOptimizer has been removed.
  • PortCandidateOptimizer has been renamed to PortCandidateSelector and its properties have been renamed: BackLoopPenalty to BackLoopCost, CrossingPenalty to CrossingCost, and OverUsagePenalty to OverUsageCost.
  • The ICandidateMatcher interface has been removed. For an advanced customization of the port selection consider implementing a custom IPortCandidateSelector.
  • The INodePlacer interface of the hierarchic layout has been renamed to ICoordinateAssigner. Its implementation has been renamed from SimplexNodePlacer to CoordinateAssigner.
  • The HierarchicLayout#LayerSeparationEnabled property has been moved to CoordinateAssigner#SeparatingLayersEnabled, since it has always only worked when using that implementation.
  • The GroupTransposition property has been removed from DefaultLayerSequencer class. The Transposition property should now be used for groups too.
  • The TypeBasedDrawingDistanceCalculator class has been removed.
  • The classes ILayeredComponentsMerger and DefaultLayeredComponentsMerger have been removed. The functionality is integrated into the MultiComponentLayerer, which now offers a new MergingPolicy property and protected method merge for the case that a custom merging approach is required.
  • The HierarchicLayoutCore class is not a standalone layout algorithm anymore but now offers only access to more advanced features of the HierarchicLayout class.
    • All public data keys were moved to the HierarchicLayout class.
    • The protected API of both classes was reduced, but still even highly advanced customization are possible.
  • Property HierarchicLayoutData#SelfLoopCalculatorData was removed. Settings like minimum lengths for self-loop edges are specified via the HierarchicalLayoutEdgeDescriptor class like for normal edges.
  • The SelfLoopCalculator and SelfLoopCalculatorData classes was removed from the API.
  • The protected methods DefaultPortAllocator#getPortBorderGap, DefaultPortAllocator#getPortBorderGapRatio, and DefaultPortAllocator#getPortDistanceDelta were removed.
  • Removed members HierarchicLayout#createLayerConstraintFactory, HierarchicLayoutData#LayerConstraintFactory, HierarchicLayout#createSequenceConstraintFactory and HierarchicLayoutData#SequenceConstraintFactory. The factories are no longer required to define layering and sequence constraints.
    • The recommended way is to use properties HierarchicLayoutData#LayerConstraints and HierarchicLayoutData#SequenceConstraints.
    • For expert uses cases (e.g. algorithm customization), the low-level helper classes LayoutGraphLayerConstraints and LayoutGraphSequenceConstraints were added.
  • Removed the keys HierarchicLayout#LAYER_CONSTRAINTS_MEMENTO_DPKEY and HierarchicLayout#SEQUENCE_CONSTRAINTS_MEMENTO_DPKEY.
  • Class TopLevelGroupToSwimlaneStage has been removed from the library.
  • The obsolete extension methods createLayerConstraintFactory and createSequenceConstraintFactory have been removed from HierarchicLayout. To specify layer and sequence constraints, use LayoutData instead.

Incompatible Behavior Changes

  • The HierarchicalLayout now considers node labels by default.
  • The HierarchicalLayout now places edge labels by default using an integrated labeling algorithm.
  • Changed the default edge routing style of the HierarchicalLayout class from Polyline to Orthogonal.

Tree Layout

Incompatible API Changes

  • The TreeLayout#graph field has been removed. For customizations in the TreeLayout the graph is available whatsoever and can if required be queried from the node/edge items.
    • Method TreeLayout#layoutRoot now has an additional parameter of type LayoutGraph as its first argument.
  • The GridNodePlacer#AutomaticRowAssignmentEnabled property (now renamed to MultiLayerSubtreePlacer) was removed. The layers are now always automatically assigned if no layer indices are defined via TreeLayoutData#MultiLayerSubtreePlacerLayerIndices.
  • Removed the LayeredNodePlacer#Id property (class was also renamed to LevelAlignedSubtreePlacer). The ID can still be provided via the constructor. Reading it later should never be necessary.
  • Renamed ConnectorDirection to SubtreeConnectorDirection, and the values North to SubtreeConnectorDirection#UP, East to SubtreeConnectorDirection#RIGHT, South to SubtreeConnectorDirection#DOWN, and West to SubtreeConnectorDirection#LEFT.
  • Renamed the values of ParentConnectorDirection: North to ParentConnectorDirection#UP, East to ParentConnectorDirection#RIGHT, South to ParentConnectorDirection#DOWN, and West to ParentConnectorDirection#LEFT.
  • Renamed IProcessor to ISubtreePlacerProcessor.
  • DelegatingNodePlacer now implements ISubtreePlacer instead of IFromSketchNodePlacer.
  • BusNodePlacer now implements ISubtreePlacer instead of IFromSketchNodePlacer.
  • Replaced tree#Matrix with the SubtreeTransform enum and renamed constants:
    • Matrix#DEFAULT to SubtreeTransform#NONE.
    • Matrix#MIR_HOR to SubtreeTransform#FLIP_Y.
    • Matrix#MIR_VERT to SubtreeTransform#FLIP_X.
    • Matrix#ROT90 to SubtreeTransform#ROTATE_LEFT.
    • Matrix#ROT180 to SubtreeTransform#ROTATE180.
    • Matrix#ROT270 to SubtreeTransform#ROTATE_RIGHT.
    • Matrix#MIR_VERT_ROT90 to SubtreeTransform#ROTATE_RIGHT_FLIP_Y.
    • Matrix#MIR_HOR_ROT90 to SubtreeTransform#ROTATE_LEFT_FLIP_Y.
  • Renamed "NodePlacer" to "SubtreePlacer" in the following types and members:
    • Renamed the DefaultNodePlacer class to SingleLayerSubtreePlacer.
    • Renamed the DelegatingNodePlacer class to SingleSplitSubtreePlacer.
    • Renamed the DoubleLineNodePlacer class to DoubleLayerSubtreePlacer.
    • Renamed the FreeNodePlacer class to FixedSubtreePlacer.
    • Renamed the GridNodePlacer class to MultiLayerSubtreePlacer.
    • Renamed the GroupedNodePlacer class to MultiSplitSubtreePlacer. The class now considers port grouping (use TreeLayoutData#Ports) to define how child nodes are split.
    • Renamed the LayeredNodePlacer class to LevelAlignedSubtreePlacer.
    • Renamed the TreeLayout#DefaultNodePlacer property to DefaultSubtreePlacer.
    • Renamed the TreeLayoutData#DelegatingNodePlacerPrimaryNodes property to SingleSplitSubtreePlacerPrimaryNodes.
    • Renamed the TreeLayoutData#GridNodePlacerRowIndices property to MultiLayerSubtreePlacerLayerIndices.
  • Renamed the property RoutingStyle.Polyline to SingleLayerSubtreePlacerRoutingStyle#STRAIGHT_LINE_TO_CHILD_CONNECTOR, RoutingStyle#FORK property to SingleLayerSubtreePlacerRoutingStyle#ORTHOGONAL, and RoutingStyle#FORK_AT_ROOT property to SingleLayerSubtreePlacerRoutingStyle#ORTHOGONAL_AT_ROOT.
  • Added SingleLayerSubtreePlacerRoutingStyle#POLYLINE property which leads to a polyline routing style.
  • Removed the TreeLayout#DefaultLeafPlacer property as well as LeafNodePlacer class.
  • Removed the SimpleNodePlacer class; use DefaultSubtreePlacer class instead.
  • Replaced DefaultNodePlacer#ChildPlacement property with the new SingleLayerSubtreePlacer#Transformation property. The former
    ChildPlacement#HORIZONTAL_DOWNWARD value now maps to SubtreeTransform#NONE, ChildPlacement#HORIZONTAL_UPWARD to SubtreeTransform#FLIP_Y,
    ChildPlacement#VERTICAL_TO_LEFT to SubtreeTransform#ROTATE_RIGHT, and ChildPlacement#VERTICAL_TO_RIGHT to SubtreeTransform#ROTATE_LEFT_FLIP_Y.
  • Renamed RootAlignment#CENTER_OVER_CHILDREN to SubtreeRootAlignment#CENTER_OF_CHILDREN.
  • Renamed RootAlignment#LEADING to SubtreeRootAlignment#LEFT, RootAlignment#TRAILING to SubtreeRootAlignment#RIGHT, RootAlignment#LEADING_OFFSET to SubtreeRootAlignment#LEADING, and RootAlignment#TRAILING_OFFSET to SubtreeRootAlignment#TRAILING.
  • Renamed IPortAssignment to ITreeLayoutPortAssigner.
  • Renamed DefaultPortAssignment to TreeLayoutPortAssigner.
  • Renamed TreeLayout#PORT_ASSIGNMENT_DPKEY to PORT_ASSIGNER_DATA_KEY.
  • Renamed TreeLayoutData#PortAssignments to PortAssigners.
  • Removed the AbstractNodePlacer class. Implement ISubtreePlacer interface instead.
  • Removed the method PlaceSubtree(Node, ParentConnectorDirection) of former subclasses of AbstractNodePlacer class. Override placeSubtree method(IMapper<Node, SubtreeShape>, IMapper<Node, SubtreeShape>, LayoutGraph, Node) instead.
  • Removed the determineChildConnector method of former subclasses of AbstractNodePlacer class. Override determineChildConnectors method instead.
  • Removed the methods getNodeShape and getSubtreeShape from former subclasses of AbstractNodePlacer class.
  • Renamed all types, methods and properties containing "NodePlacer" to "SubtreePlacer".
  • Renamed TreeLayout#MultiParentAllowed to MultiParentAllowed.
  • Renamed TreeReductionStage#MultiParentAllowed to MultiParentAllowed.
  • The TreeReductionStage#NonTreeEdgeLabelingAlgorithm property has been renamed to NonTreeEdgeLabeling.
  • Remove methods getPortBorderGap and getPortDistanceDelta from the DefaultPortAssignment (renamed to TreeLayoutPortAssigner) class.
  • The DefaultPortAssignment#BorderGapToPortGapRatio property was renamed to BorderToPortGapRatio.
  • tree#PortAssignmentMode value PortConstraint has been removed. Port candidates are always considered if they are specified.
  • tree#PortAssignmentMode values DISTRIBUTED_EAST, DISTRIBUTED_WEST, DISTRIBUTED_NORTH, DISTRIBUTED_SOUTH have been replaced by value DISTRIBUTED. The side can be specified by using TreeLayoutData#Ports.
  • tree#PortAssignmentMode#NONE has been renamed tree#PortAssignmentMode#CENTER.
  • TreeLayout#getPortAssignment can no longer be overridden. To specify IPortAssignment strategies per node, TreeLayoutData#PortAssigners can be used.
  • TreeLayout#getNodePlacer can no longer be overridden. To specify NodePlacer strategies per node, TreeLayoutData#SubtreePlacers can be used.
  • The following methods of TreeLayout have been removed:
    • ReverseEdges.
    • getRootsArray.
    • getOutEdgeComparer - TreeLayoutData#ChildOrder can be used instead.
    • createNodeShape - modifyNodeShape can be used instead to modify the shape.
    • directTree - TreeLayoutData#TreeRoot can be used to accomplish the same result.
  • DefaultNodePlacer#calculateParentConnector has been removed. Custom implementations can be inlined at the end of placeSubtree.
  • SubtreeShape#addBoundsToShape accepts a single RectD parameter instead of its deconstructed values.
  • SubtreeShape#assignValuesTo has been removed - createCopy can be used instead.
  • Renamed FillStyle to AspectRatioChildAlignmentPolicy and AspectRatioNodePlacer#FillStyle to ChildAlignmentPolicy.
  • The API of the node placer implementations has been simplified and improved. The INodePlacer interface was renamed to ISubtreePlacer.
  • The class hierarchy of the various node placer implementations has been simplified. The rotatable base class implementation has been removed from the hierarchy.
  • The properties TreeLayout#SourcePortConstraintDataAcceptor and TreeLayout#TargetPortConstraintDataAcceptor have been removed.
  • The properties TreeLayout#SourceGroupDataAcceptor
    and TreeLayout#TargetGroupDataAcceptor have been removed.
  • The TreeComponentLayout class has been removed.
  • The factory TreeReductionStage#createStraightLineRouter method has been removed. The standalone router StraightLineEdgeRouter class should be used instead when straight-line edges are required.
  • The AspectRatioTreeLayout has been removed together with AspectRatioTreeLayoutData, RootPlacement, and SubtreeArrangement. Use the TreeLayout with the AspectRatioSubtreePlacer instead.
  • The ClassicTreeLayout has been removed together with the enums LeafPlacement, EdgeRoutingStyle, and PortStyle. The TreeLayout can be used instead.
  • Renamed TreeLayoutData#OutEdgeComparators to TreeLayoutData#ChildOrder and changed the types to Comparison function.
  • Removed TreeLayout#DefaultOutEdgeComparator. Use TreeLayoutData#ChildOrder instead. Also removed NodeOrderComparator class.
  • All layouts suitable for trees, such as TreeLayout, RadialTreeLayout, now default to using the TreeReductionStage to temporarily remove non-tree edges from the graph during layout calculation.
  • Replaced TreeLayoutData#OutEdgeComparators property with new, more powerful ChildOrder property.

Incompatible Behavior Changes

  • The TreeLayout now considers node labels by default.
  • The TreeLayout now places edge labels by default using an integrated labeling algorithm.
  • Port candidates are always considered if they are specified.

Orthogonal Layout

Incompatible API Changes

  • Renamed ChainLayoutStyle to ChainSubstructureStyle.
  • Renamed CycleLayoutStyle to CycleSubstructureStyle.
  • Renamed TreeLayoutStyle to TreeSubstructureStyle.
  • Renamed EdgeLayoutDescriptor to OrthogonalLayoutEdgeDescriptor.
  • Renamed OrthogonalLayout#EdgeLayoutDescriptor to DefaultEdgeDescriptor.
  • Renamed OrthogonalLayout#EDGE_LAYOUT_DESCRIPTOR_DPKEY to EDGE_DESCRIPTOR_DATA_KEY.
  • Renamed OrthogonalLayoutData#EdgeLayoutDescriptors to EdgeDescriptors.
  • The LayoutStyle enum (belonging to the OrthogonalLayout) has been renamed to OrthogonalLayoutMode. Furthermore, the new values are Strict (former Default), FORCED_STRAIGHT_LINE (former Box) , and Relaxed (former FIXED_MIXED). The former values Uniform, FIXED_BOX, and Mixed have been removed from the enum.
  • The OrthogonalLayout properties related to substructures have all been renamed to contain "substructure" in their name. ChainStyle, ChainSize, TreeStyle, TreeSize, TreeOrientation, CycleStyle, CycleSize are now called ChainSubstructureStyle, ChainSubstructureSize, TreeSubstructureStyle, TreeSubstructureSize, TreeSubstructureOrientation, CycleSubstructureStyle, CycleSubstructureSize.
  • The following properties have been removed from the OrthogonalLayout class: Randomization, CrossingReductionEnabled, EdgeLengthReductionEnabled, PerceivedBendOptimizationEnabled and FaceMaximizationEnabled. Use the new QualityTimeRatio property instead.
  • The DirectedEdges properties of OrthogonalLayoutData and PartialLayoutData are now both of type ItemMapping with the name EdgeOrientation and support floating-point values to also specify edges oriented against the main layout direction.
  • EdgeDirectednessDpKey on all supporting ILayoutAlgorithms have been combined into a global data key LayoutKeys#EDGE_DIRECTEDNESS_DATA_KEY.
  • PartialLayout#DIRECTED_EDGES_DPKEY is renamed to EDGE_ORIENTATION_DATA_KEY and now also allows specifying edges should be routed against the main layout orientation.
  • Removed the CompactOrthogonalLayout class.

Incompatible Behavior Changes

  • The OrthogonalLayout now considers node labels by default.
  • The OrthogonalLayout now places edge labels by default using an integrated labeling algorithm.

Edge Router

Incompatible API Changes

  • The MonotonicPathRestriction enum is now a flags enum and is called MonotonicPathRestrictions.
  • The SelfLoopRouter#SmartSelfLoopPlacementEnabled property has been removed. It was enabled by default and the algorithm now always behaves like when it was enabled previously. To get all self-loops on the same node corner independently of other edges, the SelfLoopRouter can be applied in a separate post-processing step where only self-loops are present in the graph (use SubgraphLayoutStage).
  • The ParallelEdgeRouter#AbsJoinEndDistance property has been renamed to AbsoluteJoinEndDistance.
  • The ParallelEdgeRouter#RelJoinEndDistance property has been renamed to RelativeJoinEndDistanceFactor, and its default value now is 0.
  • The ParallelEdgeRouter#LineDistance property has been renamed to EdgeDistance.
  • The SelfLoopRouter#LineDistance property has been renamed to EdgeDistance.
  • The type of IntermediateRoutingPoints property has been changed from IList to IStreamIterable.
  • Renamed ParallelEdgeRouter#ROUTED_PARALLEL_EDGES_DPKEY to ROUTED_MULTI_EDGES_RESULT_DATA_KEY.
  • Renamed ParallelEdgeRouter#findAndHideParallelEdges to findAndHideMultiEdges.
  • Renamed ParallelEdgeRouterData#RoutedParallelEdges to RoutedMultiEdgesResult.
  • Renamed the CurveEdgeLayoutDescriptor#MinimumEdgeToEdgeDistance property to MinimumEdgeDistance.
  • Renamed the EdgeLayoutDescriptor#MinimumEdgeToEdgeDistance property (EdgeRouter) to MinimumEdgeDistance.
  • Renamed the PenaltySettings#MinimumEdgeToEdgeDistancePenalty property to EdgeRouterCosts#MinimumEdgeDistanceCost.
  • EdgeRouter#Grid has been replaced by EdgeRouter#GridSpacing.
  • The class polyline#Grid has been removed.
  • Renamed EdgeLayoutDescriptor to EdgeRouterEdgeDescriptor.
  • Renamed CurveEdgeLayoutDescriptor to CurveRoutingEdgeDescriptor.
  • Renamed EdgeRouter#EDGE_LAYOUT_DESCRIPTOR_DPKEY to EDGE_DESCRIPTOR_DATA_KEY.
  • Renamed EdgeRouter#DefaultEdgeLayoutDescriptor to DefaultEdgeDescriptor.
  • Renamed EdgeRouter#getEdgeLayoutDescriptor to getEdgeDescriptor.
  • Renamed EdgeRouterData#EdgeLayoutDescriptors to EdgeDescriptors.
  • Renamed PathSearchContext#CurrentEdgeLayoutDescriptor to CurrentEdgeDescriptor.
  • Renamed CurveRoutingStage#DefaultEdgeLayoutDescriptor to DefaultEdgeDescriptor.
  • Renamed CurveRoutingStage#CURVE_EDGE_LAYOUT_DESCRIPTOR_DPKEY to EDGE_DESCRIPTOR_DATA_KEY.
  • Renamed CurveRoutingStageData#EdgeLayoutDescriptors to EdgeDescriptors.
  • Renamed Interval#Min to Interval#Minimum.
  • Renamed Interval#Max to Interval#Maximum.
  • Renamed OrthogonalInterval#Min to OrthogonalInterval#Minimum.
  • Renamed OrthogonalInterval#Max to OrthogonalInterval#Maximum.
  • Renamed PenaltySettings to EdgeRouterCosts.
    • Renamed the related EdgeLayoutDescriptor#PenaltySettings property to EdgeRouterCosts.
    • Renamed all its properties to XyzCost instead of XyzPenalty: SketchViolationPenalty to SketchViolationCost, EdgeLengthPenalty to EdgeLengthCost, BendPenalty to BendCost, EdgeCrossingPenalty to EdgeCrossingCost, AdjacentEdgeCrossingPenalty to AdjacentEdgeCrossingCost, SelfCrossingPenalty to SelfCrossingCost, NodeCrossingPenalty to NodeCrossingCost, PortCrossingPenalty to PortCrossingCost, GroupNodeCrossingPenalty to GroupNodeCrossingCost, NodeLabelCrossingPenalty to NodeLabelCrossingCost, EdgeLabelCrossingPenalty to EdgeLabelCrossingCost, MinimumNodeToEdgeDistancePenalty to MinimumNodeToEdgeDistanceCost, MinimumGroupNodeToEdgeDistancePenalty to MinimumGroupNodeToEdgeDistanceCost, MinimumEdgeToEdgeDistancePenalty to MinimumEdgeDistanceCost, MinimumNodeCornerDistancePenalty to MinimumNodeCornerDistanceCost, MinimumFirstLastSegmentLengthPenalty to MinimumFirstLastSegmentLengthCost, BendsInNodeToEdgeDistancePenalty to BendsInNodeToEdgeDistanceCost, MonotonyViolationPenalty to MonotonyViolationCost, PartitionGridCellReentrancePenalty to LayoutGridCellReentranceCost, PortViolationPenalty to PortViolationCost, InvalidEdgeGroupingPenalty to InvalidEdgeGroupingCost, and SingleSideSelfLoopPenalty to SingleSideSelfLoopCost.
  • Renamed and moved data key PartitionCellKeys#NODE_LABEL_CROSSING_COST_FACTORS_KEY to EdgeRouter#NODE_LABEL_CROSSING_COST_FACTOR_DATA_KEY.
  • Renamed and moved data key PartitionCellKeys#EDGE_LABEL_CROSSING_COST_FACTORS_KEY to EdgeRouter#EDGE_LABEL_CROSSING_COST_FACTOR_DATA_KEY.
  • Property EdgeRouterData#LabelCrossingPenaltyFactors has been replaced by the two new properties EdgeRouterData#NodeLabelCrossingCostFactors and EdgeRouterData#EdgeLabelCrossingCostFactors.
  • The SelfLoopRouter#layoutSelfLoops method has been removed. To route the self-loop edges, the SelfLoopRouter class should be applied to the graph.
  • The SelfLoopRouter#LayoutStyle property has been renamed to RoutingStyle. The respective enum type has been renamed to SelfLoopRoutingStyle.
  • The OrganicEdgeRouter#createNodeEnlargementStage method has been removed and is now replaced by the new MovingNodesAllowed property.
  • The OrganicEdgeRouter#EdgeNodeOverlapAllowed property has been renamed to OrganicEdgeRouter#EdgeNodeOverlapsAllowed.
  • The protected EdgeRouter#createDefaultEdgeOrderComparator method has been removed. Use EdgeRouterData#EdgeProcessingComparison instead.
  • Renamed Obstacle to RoutingObstacle.
  • Renamed Path to PathSearchResult.
  • Renamed PathRequest to PathSearchRequest.
  • Refactored the API for customizing the EdgeRouter class.
    • The classes/interfaces PathSearch, PathSearchResult, CellSegmentInfo, EdgeInfo, Channel, ChannelBasedPathRouting, SegmentInfo, AbstractSegmentInfo, SegmentGroup, router#polyline#Alignment, DynamicObstacleDecomposition, IObstaclePartition, IPartition, GraphPartition, GraphPartitionExtensionAdapter, IDecompositionListener, IDynamicDecomposition, IEnterIntervalCalculator and IGraphPartitionExtension have been removed.
    • The PartitionCell#createBorderInterval method has been removed alongside with the PartitionCellBorder enum.
    • The properties EdgeCellInfo#EnterSegmentGroup, EdgeCellInfo#ExitSegmentGroup and EdgeCellInfo#CellSegmentInfos have been removed.
    • The properties EdgeRouter#RegisteredPartitionExtensions, RegisteredPathSearchExtensions and Partition have been removed, as well as methods createObstacleDecomposition, createPathSearch, createPathSearchContext, configurePathSearch, createPathRouting, createConfiguration, configureGraphPartition and cleanUpGraphPartition.
    • The properties PathSearchContext#PathSearch and PathSearchContext#PathSearchResult have been removed.
    • Added new methods EdgeRouter#addPathSearchExtension and EdgeRouter#addPartitionExtension.
    • Added PartitionExtension class as replacement for IGraphPartitionExtension.
    • Added new IRouterPartition interface as replacement of IObstaclePartition and IPartition.
    • The Partition property has been added to PathSearchConfiguration class.
    • The Path#length property has been renamed to PathSearchResult#CellEntranceCount.
  • The EdgeRouter and all its related classes have been moved from namespace com.yworks.yfiles.layout.router.polyline to com.yworks.yfiles.layout.router.
  • The PolylineLayoutStage class has been renamed to OctilinearRoutingStage. Its PreferredPolylineSegmentLength property has been renamed to PreferredOctilinearSegmentLength.
  • The EdgeRouter#IgnoringInnerNodeLabelsEnabled property has been removed from the API. Consideration is controlled via EdgeRouter#NodeLabelPlacement. Inner labels of non-group are only ignored when choosing value EdgeRouterNodeLabelPlacement#IGNORE; labels of group nodes alone can be ignored when choosing EdgeRouterNodeLabelPlacement#IGNORE_GROUP_LABELS.
  • The already obsolete properties EdgeRouter#PolylineRoutingEnabled, EdgeRouter#PreferredPolylineSegmentLength and EdgeRouter#MaximumPolylineSegmentRatio have been removed. They are replaced by respective properties on the EdgeRouterEdgeDescriptor class.
  • Replaced EdgeRouter#EdgeComparator property of type Comparator with EdgeRouterData#EdgeProcessingComparison of type Comparison function.
  • Class PenaltySettings and EdgeLayoutDescriptor#PenaltySettings property where renamed to EdgeRouterCosts and EdgeRouterEdgeDescriptor#EdgeRouterCosts.
  • The BusRouter class and all API members related to it have been removed. For bus-style edge routing, use EdgeRouter instead.
  • Method ParallelEdgeRouter#layoutParallelEdges was renamed to routeEdges.

Incompatible Behavior Changes

  • The default of ParallelEdgeRouter#RelativeJoinEndDistanceFactor has changed from 0.1 to 0.
  • The EdgeRouter now considers node labels by default.
  • The EdgeRouter now places edge labels by default using a generic labeling algorithm.

Labeling

Incompatible API Changes

  • Removed the GraphModelManager#LabelLayerPolicy property. Use the more specific properties NodeLabelLayerPolicy, EdgeLabelLayerPolicy and PortLabelLayerPolicy instead.
  • The SandwichLabelModel has been removed. It can be emulated using a CompositeLabelModel with the top and bottom position of an ExteriorNodeLabelModel.
  • Made enums LabelAngleOnRightSideRotations and LabelAngleReferences non-flags enums.
  • Removed the LabelAngleOnRightSideOffsets enum.
  • Changed the PreferredPlacementDescriptor#AngleOffsetOnRightSide enum property to the AddingHalfRotationOnRightSideEnabled bool property.
  • Removed the interfaces INodeLabelLayout and IEdgeLabelLayout. Labels of the LayoutGraph are instead represented by types NodeLabel and EdgeLabel.
  • Removed LayoutGraph#getLabelLayout. Labels can instead be retrieved using Node#Labels and Edge#Labels.
  • Removed the ILabelLayoutFactory class. Labels can instead be created and removed using LayoutGraph#addLabel and LayoutGraph#remove.
  • Removed the interfaces INodeLabelLayoutModel, IEdgeLabelLayoutModel and all implementations. To specify valid positions for GenericLabeling, the types NodeLabelCandidates and EdgeLabelCandidates offer methods for creating positions that correspond to the old model implementations. Candidates can be specified using GenericLabelingData#NodeLabelCandidates and GenericLabelingData#EdgeLabelCandidates.
  • Summarized layout algorithm properties such as ConsiderNodeLabels, ConsiderEdgeLabels, IntegratedNodeLabelingEnabled, IntegratedEdgeLabeling, and NodeLabelingPolicy as two properties NodeLabelPlacement and EdgeLabelPlacement.
  • Removed LabelLayoutTranslator, LabelLayoutData, LabelLayoutKeys and related classes. The behavior of LabelLayoutData can be recreated using NodeLabel#AbsolutePlacement and EdgeLabel#AbsolutePlacement.
  • Removed properties NodeOverlapsRemovalEnabled, EdgeOverlapsRemovalEnabled and EdgeGroupOverlapAllowed from GenericLabeling.
  • Introduced GenericLabeling#QualityTimeRatio property providing the possibility of balancing runtime and quality.
  • Added intersection information to LabelCandidate class, which provides means to compute profits and to mimic the behavior of the removed properties.
  • Removed AbstractMISLabeling#OptimizationStrategy. Use GenericLabeling#DefaultNodeLabelingCosts and GenericLabeling#DefaultEdgeLabelingCosts instead. Additionally individual costs can now be set for each label, using GenericLabelingData#NodeLabelingCosts and GenericLabelingData#EdgeLabelingCosts.
  • Removed AbstractLabeling#AutoFlippingEnabled. Automatically flipping labels right-side up is handled by the view, e.g. SmartEdgeLabelModel#AutoRotationEnabled.
  • Removed the IProfitModel interface and properties AbstractLabeling#ProfitModel and AbstractMISLabeling#CustomProfitModelRatio. Custom weights for a label candidate can be set at creation of the candidate with NodeLabelCandidates and EdgeLabelCandidates, or through a callback for each label using GenericLabelingData#NodeLabelCandidateProcessors and GenericLabelingData#EdgeLabelCandidateProcessors.
  • Removed the classes AbstractMISLabeling and AbstractLabeling.
  • Removed the following protected methods from GenericLabeling: createEdges, assignProfit, foundLabelOverlap, foundNodeOverlap, foundEdgeOverlap, foundHaloOverlap, foundPartitionGridLineOverlap, foundPartitionGridInsetOverlap, foundPartitionGridInteriorOverlap.
  • Renamed LabelSideReferences#ABSOLUTE_WITH_LEFT_IN_NORTH to ABSOLUTE_WITH_LEFT_ABOVE.
  • Renamed LabelSideReferences#ABSOLUTE_WITH_RIGHT_IN_NORTH to ABSOLUTE_WITH_RIGHT_ABOVE.
  • Values of DiscreteNodeLabelPositions enum have been renamed.
    • INTERNAL_MASK to INSIDE.
    • EIGHT_POS_MASK to DiscreteNodeLabelPositions#OUTSIDE.
    • SIDES_MASK to SIDES.
    • CORNER_MASK to Corners.
    • Removed value SANDWICH_MASK.
  • Values of DiscreteNodeLabelPositions have been renamed:
    • DiscreteNodeLabelPositions#TOP, DiscreteNodeLabelPositions#TOP_LEFT, ... have been renamed to TOP_INSIDE, TOP_LEFT_INSIDE, ...
    • DiscreteNodeLabelPositions#NORTH, DiscreteNodeLabelPositions#NORTH_WEST, ... have been renamed to DiscreteNodeLabelPositions#TOP, DiscreteNodeLabelPositions#TOP_LEFT, ...
  • Renamed LabelCandidate#CustomProfit to Weight.
  • Renamed SliderMode to EdgeLabelSliderMode.
  • The configuration LabelingData class for the GenericLabeling algorithm has been renamed to GenericLabelingData to be more in line with other LayoutData implementations.
  • Removed DescriptorWrapperLabelModel.
  • ILabelCandidateDescriptor and related interfaces have been removed.
  • LayoutGraphAdapter: removed getLabelCandidateDescriptorProvider and getLabelCandidateDescriptor.
  • AbstractMISLabeling#AmbiguityReductionEnabled is removed. Ambiguous label placements can instead be penalized using LabelingCosts#AmbiguousPlacementCost.
  • The PreferredPlacementDescriptor class has been renamed to EdgeLabelPreferredPlacement.
    • The IEdgeLabelLayout#PreferredPlacementDescriptor property has been removed. Instead, the preferred placement can be specified using EdgeLabelPreferredPlacement#EDGE_LABEL_PREFERRED_PLACEMENT_DATA_KEY.

Organic Layout

Incompatible API Changes

  • The OutputRestriction class and the associated properties have been renamed to ShapeConstraint.
  • OrganicConstraintData no longer inherits from LayoutData.
  • Renamed OrganicLayoutData#SourceGroupIds to SubstructureSourceGroupIds. OrganicLayout now uses OrganicLayout#SUBSTRUCTURE_SOURCE_GROUP_ID_DATA_KEY instead of LayoutKeys#SOURCE_EDGE_GROUP_ID_DATA_KEY.
  • Renamed OrganicLayoutData#TargetGroupIds to SubstructureTargetGroupIds. OrganicLayout now uses OrganicLayout#SUBSTRUCTURE_TARGET_GROUP_ID_DATA_KEY instead of LayoutKeys#TARGET_EDGE_GROUP_ID_DATA_KEY.
  • Renamed the OrganicLayout#GROUP_NODE_MODE_DPKEY property to GROUP_NODE_HANDLING_POLICY_DATA_KEY.
  • TreeSubstructureStyle#BALLOON has been renamed to RADIAL_TREE.
  • The OrganicLayout now configures the ComponentLayout by default, and SmartComponentLayoutEnabled was removed.
  • OrganicLayout#configureComponentLayout and disposeComponentLayout were removed. To configure the ComponentLayout, replace the instance of the ComponentLayout in the LayoutStageStack with a suitably configured instance.
  • OrganicLayout#NodeSizeConsiderationEnabled was removed. The OrganicLayout now always considers node sizes.
  • Renamed OrganicLayout#ClusterAsGroupSubstructureAllowed to ClusterAsGroupSubstructureAllowed.
  • Renamed OrganicLayout#AvoidingNodeEdgeOverlapsEnabled to AvoidingNodeEdgeOverlapsEnabled.
  • Renamed OrganicLayout#NodeOverlapsAllowed to NodeOverlapsAllowed.
  • Renamed GroupNodeMode#NORMAL to GroupNodeHandlingPolicy#FREE.
  • The OrganicLayout class no longer offers value ClusteringPolicy#USER_DEFINED. Now, cluster IDs provided by users via OrganicLayoutData#ClusterIds property or data key OrganicLayout#CLUSTER_ID_DATA_KEY are always considered first. If none are defined, the specified OrganicLayout#ClusteringPolicy is considered.
  • Removed the ClusterNodes property from OrganicLayout. It is replaced by ClusteringPolicy property. To disable the clustering, specify ClusteringPolicy#NONE. To enable it choose one of the available other policies.
  • Removed the ClusteringQuality property from OrganicLayout. Use QualityTimeRatio instead.
  • The ClassicOrganicLayout class has been removed. It is superseded by the more powerful OrganicLayout algorithm that should be used instead.
  • The classes OrganicRemoveOverlapsStage and ShuffleLayout have been removed from the library. To solve the task of overlap removal, the RemoveOverlapsStage class is still available and the style previously generated by OrganicRemoveOverlapsStage can be triggered via the policy OverlapRemovalPolicy#PRESERVE_RELATIVE_LOCATIONS.
  • The RecursiveShuffleLayout class has been removed from the API.
  • The OrganicPartitionGridLayoutStage class has been removed.

Incompatible Behavior Changes

  • The default style of the OrganicLayout's ComponentLayout is changed to PACKED_CIRCLE.
  • The OrganicLayout now considers node labels by default.
  • The OrganicLayout now places edge labels by default using a generic labeling algorithm.
  • The OrganicLayout now always considers node sizes.

Interactive Organic Layout

Incompatible API Changes

  • The InteractiveOrganicLayoutData class has been added. It handles the initial settings per node and edge.
  • The classes InteractiveOrganicNodeHandle and InteractiveOrganicEdgeHandle have been added. They handle the settings per node and edge while the algorithm runs.
  • The properties, getters, and setters on InteractiveOrganicLayout that concern settings for individual items have been moved to InteractiveOrganicLayoutData or the handles as appropriate.
  • The InteractiveOrganicLayout#addStructureUpdate method has been removed.
  • The methods InteractiveOrganicLayout#commitPositions and commitPositionsSmoothly have been combined as the InteractiveOrganicLayoutData#updateNodeCenters method.
  • The InteractiveOrganicLayout#OutputRestriction property has been renamed to ShapeConstraint.
  • The InteractiveOrganicLayout#PreferredEdgeLength property has been renamed to DefaultPreferredEdgeLength.
  • The InteractiveOrganicLayout#syncStructure method has been removed.

Circular Layout

Incompatible API Changes

  • Renamed the ExteriorEdgeLayoutDescriptor#EdgeToEdgeDistance property to CircularLayoutExteriorEdgeDescriptor#EdgeDistance.
  • Renamed EdgeLayoutDescriptor to CircularLayoutEdgeDescriptor.
  • Renamed CircularLayout#DefaultEdgeLayoutDescriptor to EdgeDescriptor.
  • Renamed ExteriorEdgeLayoutDescriptor to CircularLayoutExteriorEdgeDescriptor.
  • Renamed CircularLayout#ExteriorEdgeLayoutDescriptor to ExteriorEdgeDescriptor.
  • The type of the CircularLayout#MaximumDeviationAngle property has been changed to double.
  • The SingleCycleLayout has been removed. The CircularLayout with PartitioningPolicy set to SINGLE_CYCLE can be used instead.
  • CircularLayout#SingleCycleLayout has been replaced by CircularLayout#PartitionDescriptor.
  • CircularLayout#DefaultEdgeLayoutDescriptor has been renamed to EdgeDescriptor.
  • CircularLayout#BalloonLayout has been renamed to BackboneLayout.
  • The CircularLayout#LayoutStyle property has been renamed to PartitioningPolicy to better reflect the fact that it controls how nodes are partitioned. The corresponding enum has also been renamed from to PartitioningPolicy.
  • Removed the enum value EdgeRoutingPolicy#MARKED_EXTERIOR. To manually select which edges should be routed externally, use the CircularLayoutData#ExteriorEdges property instead.
  • Renamed CircularLayout#LayoutStyle to CircularLayout#PartitioningPolicy.
  • Renamed circular#LayoutStyle to circular#PartitioningPolicy.
  • Removed the enum value LayoutStyle#CUSTOM_GROUPS. If custom partitions are specified using CircularLayoutData#Partitions, they are respected by the CircularLayout automatically.
  • The INodeSequencer class has been removed from the API. Use the new CircularLayoutData#NodeComparison property to specify custom node orders.

Incompatible Behavior Changes

  • PartitionDescriptor#InitialAngle is measured in degrees rather than radians.
  • The default style of the CircularLayout's ComponentLayout is changed to PACKED_CIRCLE.
  • The CircularLayout now considers node labels by default.
  • The CircularLayout now places edge labels by default using a generic labeling algorithm.

Radial Layout

Incompatible API Changes

  • Renamed the RadialLayout#MinimumNodeToNodeDistance property to MinimumNodeDistance.
  • Renamed the RadialLayout#MinimumEdgeToEdgeDistance property to MinimumEdgeDistance.
  • RadialLayout.NodeInfo has been renamed to NodePlacementResult.
  • Renamed radial#LayeringStrategy to RadialLayeringStrategy.
  • Replaced ItemMapping OutEdgeComparators with ChildOrderData ChildOrder.
  • Removed the enum value radial#LayeringStrategy#USER_DEFINED. Custom layers are now always used if defined via RadialLayoutData#LayerIds property.
  • Removed the enum value CenterNodesPolicy#CUSTOM. Custom center nodes are now always used if defined via RadialLayoutData#CenterNodes property.
  • The read/write CenterNodesDpKey property from the RadialLayout class has been removed. It was replaced by the static read-only key RadialLayout#CENTER_NODES_DATA_KEY that must now be used instead to mark the custom center nodes.

Incompatible Behavior Changes

  • The default style of the RadialLayout's ComponentLayout is changed to PACKED_CIRCLE.
  • The RadialLayout now considers node labels by default.
  • The RadialLayout now places edge labels by default using a generic labeling algorithm.
  • The RadialLayout.NodePlacementResult#SectorStart property is now interpreted in clockwise direction.
  • Custom layers are now always used if defined via RadialLayoutData#LayerIds property.
  • Custom center nodes are now always used if defined via RadialLayoutData#CenterNodes property.

Radial Tree Layout

Incompatible API Changes

  • Renamed RootNodePolicy to RootSelectionPolicy.
  • BalloonLayout has been renamed to RadialTreeLayout, and BalloonLayoutData has been renamed to RadialTreeLayoutData.
  • The following members have been removed from BalloonLayout (now RadialTreeLayout): The field graph, the BalloonLayout.NodeInfo, the methods getInfo, calculateChildArrangement, calculateAngles, determineRoot, and sortChildNodes, the FromSketchModeEnabled property (use the new enum value FROM_SKETCH of ChildOrderingPolicy instead), and the InterleavedMode property (use RadialTreeLayoutData#InterleavedNodes instead).
  • The following members of BalloonLayout (now RadialTreeLayout) have been renamed: PreferredChildWedge has been renamed to PreferredChildSectorAngle, PreferredRootWedge has been renamed to PreferredRootSectorAngle, and the getPreferredChildWedge method has been renamed to getPreferredChildSectorAngle.
  • The InterleavedMode enum has been removed.
  • The enum value InterleavedMode#MARKED_NODES has been removed. To define specific parents for interleaved placed child nodes use the RadialTreeLayoutData#InterleavedNodes property.
  • The enum value RootNodePolicy#SELECTED_ROOT has been removed. A custom root node is now always used if defined via RadialTreeLayoutData#TreeRoot property.
  • The types of the following properties have been changed to double: PreferredChildSectorAngle, PreferredRootSectorAngle, MinimumEdgeLength, and MinimumNodeDistance.
  • Replaced layout data OutEdgeComparator property with ChildOrderData ChildOrder.
  • Removed BalloonLayout#Comparator. Use RadialTreeLayoutData#ChildOrder instead.
  • Replaced BalloonLayoutData#OutEdgeComparator property with new, more powerful ChildOrder property (class is renamed to RadialTreeLayoutData).

Incompatible Behavior Changes

  • The compactness factor is now interpreted differently. Larger values result in more compact drawings. Its range has been changed to [0, 1].
  • The default style of the RadialTreeLayout's (formerly BalloonLayout's) ComponentLayout is changed to PACKED_CIRCLE.
  • The from-sketch option of RadialTreeLayout sorts like before but no longer takes precedence over orders specified with the RadialTreeLayoutData properties ChildOrder or NodeTypes.
  • The RadialTreeLayout now considers node labels by default.
  • The RadialTreeLayout now places edge labels by default using an integrated labeling algorithm.

Radial Group Layout

Incompatible API Changes

  • Renamed CactusGroupLayout#GroupSizingPolicy to RadialGroupLayout#GroupSizePolicy.
  • The CactusGroupLayout has been renamed to RadialGroupLayout, and the CactusGroupLayoutData has been renamed to RadialGroupLayoutData.
  • Property PreferredRootWedge has been renamed to PreferredRootSectorAngle.
  • Replaced CactusGroupLayout#NodeComparator property of type Comparator with RadialGroupLayoutData#ChildNodeComparator of type Comparison function.

Incompatible Behavior Changes

  • The default style of the RadialGroupLayout's (formerly CactusGroupLayout's) ComponentLayout is changed to PACKED_CIRCLE.
  • The default of the PreferredRootSectorAngle property has been changed from 180 to 360.
  • The RadialGroupLayout now places edge labels by default using a generic labeling algorithm.

Series-parallel Layout

Incompatible API Changes

  • The combinations of the enums ForkStyle and PortAssignmentMode have been integrated into the PortAssignmentMode enum, and the ForkStyle enum has been removed.
  • DefaultPortAssignment#ForkStyle has been removed.
  • Renamed IPortAssignment to ISeriesParallelLayoutPortAssigner.
  • Renamed DefaultPortAssignment to SeriesParallelLayoutPortAssigner.
  • Renamed SeriesParallelLayout#PORT_ASSIGNMENT_DPKEY to PORT_ASSIGNER_DATA_KEY.
  • Renamed SeriesParallelLayoutData#PortAssignments to PortAssigners.
  • Renamed the SeriesParallelLayout#VerticalAlignment property to ParallelSubgraphAlignment.
  • Renamed the SeriesParallelLayout#MinimumNodeToNodeDistance property to MinimumNodeDistance.
  • Renamed the SeriesParallelLayout#MinimumEdgeToEdgeDistance property to MinimumEdgeDistance.
  • Renamed EdgeLayoutDescriptor to SeriesParallelLayoutEdgeDescriptor.
  • Renamed SeriesParallelLayout#DefaultEdgeLayoutDescriptor to DefaultEdgeDescriptor.
  • Renamed SeriesParallelLayout#EDGE_LAYOUT_DESCRIPTOR_DPKEY to EDGE_DESCRIPTOR_DATA_KEY.
  • Renamed SeriesParallelLayoutData#EdgeLayoutDescriptors to EdgeDescriptors.
  • The GeneralGraphHandling property was removed. SeriesParallelLayout now handles general graphs by default.
  • The DefaultPortAssignment#BorderGapToPortGapRatio property was renamed to BorderToPortGapRatio.
  • Remove methods getPortBorderGap and getPortDistanceDelta from the DefaultPortAssignment class.
  • The SeriesParallelLayout#NonSeriesParallelEdgeLabelingAlgorithm property has been renamed to NonSeriesParallelEdgeLabeling.
  • Removed SeriesParallelLayout#DefaultOutEdgeComparator. Use SeriesParallelLayoutData#ChildOrder instead. Also removed DefaultOutEdgeComparator class.
  • Replaced SeriesParallelLayoutData property .OutEdgeComparators with new, more powerful ChildOrder property.

Incompatible Behavior Changes

  • The SeriesParallelLayout now considers node labels by default.
  • The SeriesParallelLayout now places edge labels by default using an integrated labeling algorithm.
  • SeriesParallelLayout now handles general graphs by default.

Compact Disk Layout

Incompatible Behavior Changes

  • The CompactDiskLayout now considers node labels by default.
  • The CompactDiskLayout now places edge labels by default using a generic labeling algorithm.

Multi-page Layout

Incompatible API Changes

  • The MultiPageLayout#ProxyReferenceNodeCreationEnabled property has been renamed to UsingProxyReferenceNodesEnabled.
  • The EdgeBundleModes enum and the associated properties have been renamed to MultiEdgeConnectorPolicy. The enum values have been renamed to SEPARATE, SHARE_FOR_SAME_DIRECTION and SHARE, respectively. The corresponding EdgeDataKey has been renamed to MULTI_EDGE_CONNECTOR_ID_DATA_KEY (previously EDGE_TYPE_DPKEY).
  • Renamed GroupingPolicy to MultiPageGroupingPolicy.
  • The public API of the MultiPageLayout class has been changed.
    • The ILayoutCallback interface has been removed. The respective MultiPageLayout#LayoutCallback property is now an Action delegate instead. Furthermore, MultiPageLayout#calculateLayout method has been removed, meaning the layout can and should only be started like all other algorithms (e.g. via the LayoutExecutor or IGraph#applyLayout).
    • The IElementFactory interface and the DefaultElementFactory class have been removed. The replacement is MultiPageElementFactory class which can be accessed and modified using MultiPageLayout#ElementFactory property.
    • The MultiPageLayout#createElementFactory method has been removed. The factory can be get and set using MultiPageLayout#ElementFactory property.
    • The IElementInfoManager interface has been removed.
    • The LayoutContext class of the MultiPageLayout has been renamed to MultiPageLayoutContext and its properties Graph and Layout have been removed.
    • The INodeInfo, IEdgeInfo, INodeLabelInfo, IEdgeLabelInfo interfaces related to MultiPageLayout have been removed. The data provided by them can now be retrieved via methods of the MultiPageLayoutContext (which is available also as property on the MultiPageLayoutResult).
    • The callback methods MultiPageLayout#removeConnectorPair, routeRestoredEdges and applyIncrementalLayout have been removed.
  • MultiPageLayoutResult#getPage and pageCount have been replaced by PageGraphs.
  • MultiPageLayoutData handles the ID mapping automatically. Consequently, the explicit mappings NodeIds, EdgeIds, NodeLabelIds, and EdgeLabelIds have been removed. Original graph items can be obtained by calling MultiPageLayoutData#getOriginalItem.
  • Renamed multipage#NodeType to MultiPageNodeType and its value Normal to MultiPageNodeType#REGULAR.
  • Renamed multipage#EdgeType to MultiPageEdgeType and its value Normal to MultiPageEdgeType#REGULAR.
  • The EdgeBundleModes enum has been renamed to MultiEdgeConnectorPolicy and converted from a flags enum to a regular enum. To manually select which multi-edges should be distinguished, use the MultiPageLayoutData#MultiEdgeConnectorIds property.
  • The properties MultiPageLayout#EdgeBundleModeMask, MultiPageLayout#EDGE_TYPE_DPKEY, and MultiPageLayoutData#EdgeTypes have been renamed to MultiPageLayout#MultiEdgeConnectorPolicy, MultiPageLayout#MULTI_EDGE_CONNECTOR_ID_DATA_KEY, and MultiPageLayoutData#MultiEdgeConnectorIds.

Partial Layout

Incompatible API Changes

  • Renamed partial#LayoutOrientation to PartialLayoutOrientation.
  • The PartialLayout#layoutSubgraph method has been removed.
  • The callback configureEdgeRouter method has been removed from classes PartialLayout and ClearAreaLayout. The router instance can be specified via the PartialLayout#EdgeRouter and ClearAreaLayout#EdgeRouter properties so that an additional configuration callback is not necessary.
  • Removed the enum value ComponentAssignmentStrategy#CUSTOMIZED. Custom components are now always used if defined with PartialLayoutData#ComponentIds, ClearAreaLayoutData#ComponentIds or FillAreaLayoutData#ComponentIds respectively.

Incompatible Behavior Changes

  • Custom components are now always used if defined with PartialLayoutData#ComponentIds.

Tabular Layout

Incompatible API Changes

  • Renamed NodeLayoutDescriptor to TabularLayoutNodeDescriptor.
  • Renamed TabularLayout#DefaultNodeLayoutDescriptor to DefaultNodeDescriptor.
  • Renamed TabularLayout#NODE_LAYOUT_DESCRIPTOR_DPKEY to NODE_DESCRIPTOR_DATA_KEY.
  • Renamed TabularLayoutData#NodeLayoutDescriptors to NodeDescriptors.
  • Renamed tabular#LayoutPolicy to TabularLayoutMode.
  • Replaced TabularLayout#NodeComparator property of type Comparator with TabularLayoutData#FreeNodeComparison of type Comparison function.
  • The TabularLayout class now features its own data key (LAYOUT_GRID_CELL_DESCRIPTOR_RESULT_DATA_KEY) where it will publish cell IDs of nodes that it explicitly assigned to the cells. Previously it reused the common data key PartitionGrid#PARTITION_CELL_ID_DPKEY.

Incompatible Behavior Changes

  • The TabularLayout now considers node labels by default.
  • The TabularLayout now places edge labels by default using a generic labeling algorithm.

Component Layout

Incompatible API Changes

  • The ComponentArrangementStyles enum has been renamed to ComponentArrangementStyle, as it is no longer a Flags-Enum.
    • Removed ComponentArrangementStyles#MASK.
    • Replaced ComponentArrangementStyles#MODIFIER_NO_OVERLAP with TRY_KEEP_CENTERS.
    • Replaced ComponentArrangementStyles#MODIFIER_AS_IS with ComponentLayout#FromSketchModeEnabled.
  • Renamed ComponentLayout#calculateBounds to calculateComponentBounds.
  • Renamed ComponentLayout#setOrigin to setComponentLocation.
  • The IsolatedGroupComponentLayout class has been removed.
  • Renamed ComponentArrangementStyles#NONE to ComponentArrangementStyle#KEEP_CENTERS.
  • Removed the ComponentArrangementEnabled property from ComponentLayout; use the new ComponentArrangementStyle#NONE instead to avoid arranging components.
  • Removed ComponentLayout#arrangeFields method.
  • Simplified parameter lists of methods ComponentLayout#arrangeComponents and ComponentLayout#setOrigin to now accept instances of Component class.
  • If ComponentLayout is used as a pre-processing step to apply a layout algorithm on multiple connected components, the StopDuration of that layout is divided appropriately over all components, instead of being applied once per component.

Incompatible Behavior Changes

  • ComponentArrangementStyle#PACKED_CIRCLE and ComponentArrangementStyle#PACKED_RECTANGLE now consider the convex hulls of components to determine overlaps.

Tree Map Layout

Incompatible API Changes

  • Renamed TilingPolicy to TilingStrategy and TreeMapLayout#TilingPolicy to TreeMapLayout#TilingStrategy.
  • Replaced TreeMapLayout#NodeComparator property of type Comparator with TreeMapLayoutData#ChildNodeComparison of type Comparison function.
  • Removed the NodeWeightComparator class.

Recursive Group Layout

Incompatible API Changes

  • RecursiveGroupLayout#NULL_LAYOUT is renamed to RecursiveGroupLayout#FIX_CONTENT_LAYOUT.
  • FixGroupLayoutStage is removed and its functionality is replaced by RecursiveGroupLayout using RecursiveGroupLayout#FIX_GROUP_LAYOUT for all groups.
  • The RecursiveGroupLayout class now ignores empty group nodes by default (see EmptyGroupsConsiderationEnabled property).
  • The signature of IGroupBoundsCalculator#calculateBounds method was changed. The given children are now of type IIndexedIterable<Node>.
  • The GroupBoundsCalculator implementation now keeps the center of empty group nodes if EmptyGroupsConsiderationEnabled is enabled.
  • Method GroupBoundsCalculator#calculateBounds now correctly considers the specified children. Previously, the given children were ignored and all graph elements were considered when calculating the group bounds.

Layout Grid

Incompatible API Changes

  • PartitionGrid is renamed to LayoutGrid. This also affects the related classes PartitionGridData, GenericPartitionGridStage, and GenericPartitionGridStageData.
  • Renamed ColumnDescriptor to LayoutGrid.Column & RowDescriptor to LayoutGrid.Row.
  • Renamed PartitionCellId to LayoutGrid.CellDescriptor.
  • Renamed inset properties on classes LayoutGrid.Column (formerly ColumnDescriptor) and LayoutGrid.Row (formerly RowDescriptor) to now be called padding (e.g., LeftPadding instead of LeftInset).
  • Removed helper class Swimlanes and layout#SwimlaneRepresentative.
  • Removed the SwimlanesMode enum.
  • The methods PartitionGrid#prepareOrientationChange and PartitionGrid#finalizeOrientationChange have been removed.
  • Removed properties OriginalPosition and OriginalWidth from LayoutGrid.Column class (formerly ColumnDescriptor). Use properties LayoutGrid.Column#Position (formerly ComputedPosition) or LayoutGrid.Column#Width (formerly ComputedWidth).
  • Removed properties OriginalPosition and OriginalHeight from LayoutGrid.Row class (formerly RowDescriptor). Use properties LayoutGrid.Row#Position (formerly ComputedPosition) or LayoutGrid.Row#Height (formerly ComputedHeight).
  • The SwimlaneDescriptor class has been removed from the API. Use LayoutGrid class (formerly called PartitionGrid) instead, which is able to model one-dimensional and two-dimensional grids.
  • The PartitionGridLayoutStage class has been removed. It is not necessary to manually add this stage, since HierarchicalLayout can support LayoutGrid out-of-the-box.
  • Renamed all types, methods and properties containing "CellId" to "CellDescriptor".
  • Removed properties RowOrderOptimizationEnabled and ColumnOrderOptimizationEnabled from PartitionGridData class.
  • Removed the data key PartitionGrid#PARTITION_GRID_DPKEY. The key LayoutGrid#LAYOUT_GRID_CELL_DESCRIPTOR_DATA_KEY is now the only data key which can be used to specify layout grids.
  • Removed data key RecursiveGroupLayout#GROUP_NODE_PARTITION_GRID_DPKEY. The key LayoutGrid#LAYOUT_GRID_CELL_DESCRIPTOR_DATA_KEY is now the only data key which can be used to specify layout grids.

Other Layouts

Incompatible API Changes

  • Renamed CurveFittingLayoutStage to CurveFittingStage.
  • Renamed FixNodeLayoutStage to LayoutAnchoringStage and FixNodeLayoutData to LayoutAnchoringStageData. In addition:
    • Renamed FixPointPolicy to LayoutAnchoringPolicy.
    • Renamed FixNodeLayoutStage#FIXED_NODE_DPKEY to NODE_ANCHORING_POLICY_DATA_KEY.
    • Renamed calculateFixPoint to calculateAnchorPoint.
    • Removed FixNodeLayoutData#FixedNodes. Graph elements to anchor the graph on can be specified by setting the respective AnchoringPolicies using LayoutAnchoringStageData.
  • Removed the InterEdgeRoutingStyle enum.

Algorithms

Incompatible API Changes

  • IntersectionInfo has been renamed to Intersection and has become an inner class of LayoutGraphAlgorithms.
  • Renamed ParallelEdges#findParallelEdges to LayoutGraphAlgorithms#findMultiEdges.
  • Removed the BfsDirection enum. Use TraversalDirection instead.
  • Removed namespace Algorithms#Util. The types are now in namespace Algorithms.
  • The TreeAnalyzer class has been removed. Use the more convenient and powerful TreeAnalysis class instead.
  • Removed the Intersections class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the IntersectionAlgorithm class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the NetworkFlows class. Use corresponding methods of LayoutGraphAlgorithms instead (e.g. MaximumFlow).
  • Removed the NodeOrders class. Use corresponding methods of LayoutGraphAlgorithms instead (e.g. topologicalNodeOrder).
  • Removed the GraphConnectivity class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the IndependentSets class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • The Triangulator algorithm class has been removed.
  • Removed the Substructures class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the Trees class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the Bipartitions class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the Cycles class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the ParallelEdges class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the Transitivity class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the Centrality class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Removed the ShortestPaths class. Use corresponding methods of LayoutGraphAlgorithms class instead (e.g. ShortestPath).
  • Removed the Groups class. Use corresponding methods of LayoutGraphAlgorithms instead.
  • Renamed the Dendrogram class to HierarchicalClusteringDendrogram.
  • Removed the Bfs class. Use LayoutGraphAlgorithms#bfs instead.
  • Removed the Dfs class. Use LayoutGraphAlgorithms#dfs instead.
  • Renamed analysis#Component to ConnectedComponent.
  • The SpanningTrees class has been removed. To compute a minimum spanning tree, use LayoutGraphAlgorithms#minimumSpanningTree method.
  • The RankAssignments class has been removed in favor of the single LayoutGraphAlgorithms#simplexRankAssignment method that offers access to the rank assignment algorithm.
  • The GraphChecker class has been removed and most of its methods are now available on LayoutGraphAlgorithms.
  • The algorithms#NodeAggregation class has been renamed to LayoutGraphNodeAggregation, emphasizing that this class is intended for users working with the LayoutGraph API only.
    • Furthermore, its member NODE_TYPE_DPKEY has been removed. The replacement is key LayoutKeys#NODE_TYPE_DATA_KEY.
    • Also, its member NODE_CENTER_DPKEY has been removed. Node centers are now directly read from the LayoutGraph instance which must contain the coordinates of nodes if useful results should be generated.
  • Removed the enum value EUCLIDEAN_SQUARED from DistanceMetric enum. Use enum value Euclidean instead which now calculates with squared values.
  • Removed the DistanceMetric enum of KMeansClustering class. Use KMeansDistanceMetric enum instead.
  • Removed the AggregationPolicy enum of NodeAggregation class. Use AggregationPolicy enum instead.
  • Removed the utility class Sorting that offered methods to get a sorted node array based on node degrees or another criterion. The functionality is written without this utility by first getting the array of nodes from the graph and then sorting it using standard built-in sorting utilities.

Analysis

Incompatible API Changes

  • The NodeAggregation#NodeTypeHandling property has been renamed to NodeTypePolicy.
  • The NodeTypeHandlingPolicy enum has been renamed to NodeTypePolicy.
  • Renamed AggregationInfo to NodeAggregationInfo.
  • Renamed AggregationInfo#ParentAggregation to ParentNodeAggregation.
  • Renamed NodeAggregation.AggregationPolicy to NodeAggregationPolicy.
  • Renamed NodeAggregation#Aggregation to AggregationPolicy.
  • Renamed DistanceMetric to KMeansDistanceMetric.
  • Renamed GraphStructureAnalyzer#hasMultipleEdges to hasMultiEdges.
  • Renamed GraphStructureAnalyzer#getMultipleEdges to getMultiEdges.
  • Replaced enum algorithms#Linkage with HierarchicalClusteringLinkage.
  • Renamed Substructure to SubstructureItems.
  • Renamed analysis#Component to ConnectedComponent.

Collections

Incompatible API Changes

  • The YList#elementAt method was removed.
  • Renamed ICursor#prev to ICursor#previous.
  • Renamed ListCell#succ to ListCell#Next.
  • Renamed ListCell#pred to ListCell#Previous.
  • Removed the isEmpty method from LinkedCellList class. Test LinkedCellList#Count property for 0 instead.
  • Removed the methods succCell and predCell from LinkedCellList class. Use new properties ListCell#Next and ListCell#Previous instead.
  • Removed the methods cyclicSucc, cyclicPred, containsAll and retainAll from LinkedCellList class.
  • Removed the methods Succ and Pred from ListCell class. Use new properties Next and Previous instead.
  • Removed the Peek method from LinkedCellList class. Use First property instead.

Geometry

Incompatible API Changes

  • The GeomUtilities class has been renamed to GeometryUtilities.
  • All intersects methods of the GeneralPath class are now called pathIntersects.
  • The mayIntersectClip method of the GeneralPath class is now called pathMayIntersectClip.
  • All areaContains methods of the GeneralPath class now have an optional flatteningTolerance parameter.
  • The isEmpty method of the GeneralPath class was removed. Use the isVisible method or the Count property, instead.
  • The getBounds overload of the GeneralPath class that returns the approximate bounds for BΓ©zier segments is now called getApproximateBounds.
  • The copy constructors on the RectD, PointD, and SizeD classes were removed. Use the toRectD, toPointD, or toSizeD methods respectively instead.
  • Renamed the GeomUtilities#findRayIntersection method to getSegmentRayIntersection.
  • Renamed the GeomUtilities#findEllipseLineIntersection method to getEllipseLineIntersection.
  • Moved Geom#collinear method to GeometryUtilities class and renamed to areCollinear.
  • Moved Geom#calcConvexHull method to GeometryUtilities class and renamed to getConvexHull.
  • Moved the Geom#calcIntersection method to GeometryUtilities class and renamed to getLineLineIntersection.
  • Removed the Geom#projection method. Use PointD#getProjectionOnSegment method instead.
  • Removed the methods distanceToLineSegment of Geom class. Use PointD#distanceToSegment method instead.
  • The IRectangle interface no longer implements IPoint. You can get the top-left corner of a rectangle with its getTopLeft method. For usages of the dynamic behavior of IPoint, like in a custom IPositionHandler, we recommend to let the IPositionHandler implement IPoint, too.
  • The IMutableRectangle interface no longer implements IMutablePoint. When working with the MutableRectangle class, use its Location property to get a dynamic point of the location.
  • Moved IPlaneObject and LineSegment to package com.yworks.yfiles.geometry.
  • Renamed the LineSegment#XOffset property to YIntercept.
  • Made LineSegment class sealed.
  • Renamed the LineSegment#isInXIntervall method to LineSegment#isInXInterval and LineSegment#isInYIntervall method to LineSegment#isInYInterval.
  • The getBottom, getLeft, getRight, and getTop of InsetsD have been removed. Use the read-only fields bottom, left, right, and top instead.