PortDropInputModeclasses implement drag and drop for labels and ports, respectively. The API of these classes is similar to
InsideOutsideLabelModelcan be used to place such labels. On the technical side,
IPortnow extends the
ILabelOwnerinterface and the enum constant
LassoSelectionInputModeselects all model items inside a hand-drawn lasso region. This mode allows combinations of free-hand and straight-line sections during path creation. The following types and methods were added to support this mode.
GraphViewerInputMode#LassoSelectionInputModeproperties and a corresponding factory method.
LassoSelectionInputModeis disabled per default.
GraphViewerInputMode#lassoSelectmethods programmatically selects all items in the provided
ILassoTestableinterface specifies whether the item is considered to be inside the lasso path. This is analog to the
IMarqueeTestableinterface for marquee selection.
ILassoTestableor provide one in its lookup. For this, the
BendDecoratorclasses got the new
LassoTestableDecoratorproperty for decorating an item with a custom
LabelStylecan be overridden to customize the lasso testing behavior.
AdjacentNodesGraphBuilderclasses can be used to build a graph from custom data.
GraphModelManagerfor the visualizations of nodes and edges have been improved and clearified.
HierarchicEdgeNestingEnabledare superseded by the new
HierarchicNestingPolicyproperty. This property has the enum type
GraphModelManagerto visualize all leaf nodes in one canvas object group while nesting all group nodes depending on their hierarchical depth.
NONE, and optionally, the action can be performed only when the control is focused. This can be configured with the new
TableEditorInputMode: Double clicking a stripe or stripe label now edits the label in the same way as for other graph items.
InsetsD: Added methods to
reducethe size of an
IPositionHandler#combinecombine multiple position handler instances into a single instance.
GraphEditorInputMode, and the event
IAnimation#createSequentialAnimationmethod creates an animation that animates multiple animations in sequence.
CanvasControl#QuantizingInputCoordinatesEnabledproperty is enabled, world coordinates of mouse and touch events are rounded to nicer values to avoid unnecessary precision. For example, you'll get the value 326.375 instead of 326.3758109495. The rounding is chosen based on the zoom level to ensure that there is almost no visual deviation. Lower zoom levels will result in coarser rounding, higher zoom levels will use exactly as much precision as necessary. By default, this option is enabled.
OrthogonalLayout: Added support for parallel routing of parallel edges (multi-edges that share the same source and target node). They are routed as parallel as possible; if there are edge labels, the routes must differ somewhat. Previously, parallel edges were not handled explicitly and their routes were often very different, making the recognition of parallel structures difficult.
OrthogonalLayout: Added new property
MaximumDuration, which enables to control the preferred time limit of the layout algorithms.
OrthogonalLayout: Added property
UniformPortAssignmentEnabledthat allows to obtain results with a more uniform port assignment.
TemporaryGroupNodesInsertionStagethat automatically generates a (non-nested) grouping structure from a given mapping of nodes to a component Id. This temporary grouping is meant for use during the run of the core layout algorithm of the stage. It allows, for example, easy use of
RecursiveGroupLayoutwithout the need for a real grouping structure when the requirement is that different sub-graphs need to be arranged with different layout algorithms.
TemporaryGroupNodeInsertionDataconfiguration class for the new
TreeLayout: Added node placer
CompactNodePlacerthat produces more compact tree layouts. It uses a dynamic optimization approach that chooses a placement strategy of the children such that the overall result is compact with respect to a specified aspect ratio, see property
TreeLayoutData#CompactNodePlacerStrategyMementosproperty can be used to to maintain similar layout styles over subsequent runs of compact tree layout.
TabularLayoutthat generates simple tabular arrangements of nodes. It allows for placing nodes in rows and columns, such that each table cell contains at most one node. Among its features is, for example, a from-sketch mode, the possibility to exactly map nodes to specific cells or different vertical and horizontal alignments.
TabularLayoutDataconfiguration class for the new
OrthogonalLayout: Added support for special layout styles of various substructures that are automatically detected in the input graph. Supported substructures are trees, chains and cycles - see the according properties
OrthogonalLayout#CycleStyle. In addition to the style, the new feature offers more settings, like, for example, the desired tree layout orientation (see
OrthogonalLayout#TreeOrientation). The orthogonal layout style
LayoutStyle#NORMAL_TREEhas been removed as the new tree style feature allows more settings for the arrangement of tree-like graphs.
TreeMapLayoutthat generates tree maps. Tree maps present hierarchical data using nested rectangles (nodes) where each rectangle (node) gets its size depending on a specific dimension of data associated to it.
TreeMapLayoutDataconfiguration class for the new
Polyline.EdgeRouternow supports routing through user-specified intermediate points. All specified points will lie on the edge route in the given order. See new property
Polyline.EdgeRouter: Edges that connect group nodes with their descendants can now directly connect from the inside to the group node border. Previously, an edge needed to always leave the group node before connecting to it. The feature can be enabled/disabled individually for each edge using the new property
HierarchicLayout: Added feature that allows to define sub-components of the input graph such that each sub-component is arranged by a user-specified layout algorithm. This allows for hierarchical layouts where parts of the graph are arranged in a different fashion, e.g., to emphasize special sub-structures. The sub-components can be specified by a data provider registered with the input graph with key
HierarchicLayout.SUB_COMPONENT_ID_DPKEYor with the new
ShortestPaths: Added a-star (A*) algorithm for finding the shortest path between two nodes in a directed or undirected, arbitrary graph.
NaNvalue. Previously, this resulted not in an immediate error but broke subsequent code like an automatic layout or a content rectangle calculation.
FilteredGraphWrapperhas been improved. Now, it depends mainly on the size of the resulting filtered graph. This allows for loading very large graphs into memory and displaying only a subset of them using
ITable's default methods
findStripes, overloads without the
Predicateparameter have been added.
DefaultGraphhas new factory methods to customize undo unit creation.
DefaultGraphnow fills the undo engine and triggers events in a consistent manner for all graph element factory methods.
createParametermethods now have overloads without those parameters that are not needed every time.
InteriorStretchLabelModel: Added new parameters
CENTER_VERTICALfor horizontal or vertical centered one-line labels.
IMapper#fromMaphas been added which returns an implementation of
IMapperthat delegates to a
IMapperRegistry: The value type parameter was removed from all default methods taking
GraphModelManager#getMainCanvasObjectreturns the canvas object that should be used when changing the visibility or z-order of a model item.
GraphOverviewControlnow keeps configuration changes made to the overview's
CanvasControl#LimitingFitContentZoomEnabledproperty which controls whether the maximum zoom level for the
CanvasControl#fitContentmethod as well as the
FitContentcommand is restricted to
1or the value of the
CanvasControl#zoomTomethods, there are now two
CanvasControl#zoomToAnimatedmethods that animate the viewport change.
ICanvasObjectGroup#addChild: A default method without the
ICanvasObjectDescriptorparameter was added as overload which uses the
GraphModelManagernow avoids unnecessary re-installation of items if they keep their
ICanvasObjectGroup. By these re-installations the z-order of the item in its group was lost and a new visual was created.
IAnimation#createLayoutAnimationhas been added which delegates to
LayoutUtilities#createLayoutAnimationas the method is easier to find in
IAnimation#createParallelAnimationnow takes covariant
Iterable<T extends IAnimation>instead of
SnapPanningThresholdallow for snapping touch panning to one axis.
CanvasTappedhave been added to
CanvasControl#HitTestRadiusTouchproperty controls the hit test radius for touch interaction. The existing
HitTestRadiusproperty now only applies to mouse interaction. The
ICanvasContext#HitTestRadiusproperty automatically uses one or the other value, depending on the last input event.
Touch2DEventArgsnow provides the modifier keys that were pressed when the event was dispatched as well as those that have changed their state since the last
CanvasControl#LastInputEventproperty contains the
LastTouchEventdepending on which was dispatched last.
Touch2DEvent#TapCountproperties can be used to distinguish between single and multiple taps.
CreateEdgeInputMode#CancelGestureOnInvalidTargetproperty was sometimes ignored on touch-enabled devices.
SHORTCUT_PRESSEDnow also recognize the modifier for
INodeparameter of the
NavigationInputMode#enterGroupmethod is now optional. If it is
nullthe whole graph will be revealed.
CanvasControl#createInputModeContextmethod is now public instead of protected.
ClickEventArgsand therefore provides additional information like the
CreateEdgeInputMode#doStartEdgeCreationmethod taking an
initialTargetLocationparameter can be used to define the initial location that shall be used to find a target node.
CreateEdgeInputModenow removes coinciding bends if orthogonal edge creation is enabled.
CreateEdgeInputModeprovides access to a dummy target node which is used during the interactive edge creation. This allows making the node visible during creation by setting a style and size.
CreateEdgeInputModenow supports edges ending without a valid target port candidate. This allows for creating new target nodes together with newly created edges.
CreateEdgeInputMode#PrematureEndHitTestableallows for considering any location as valid target point for an edge.
CreateEdgeInputMode#DragCursorproperty specifies the cursor that is used during edge creation when no bend may be created at the current location.
CreateEdgeInputModenow supports showing port candidates at potential sources for edge creation, too.
CreateEdgeInputModenow always creates dummy ports during a gesture, instead of temporarily reusing real ports if available. This makes it possible to change e.g. the dummy edge's source port's style during the gesture.
CreateEdgeInputMode#StartingOverCandidateOnlyEnabledproperty can be used to restrict the start of an edge creation gesture to directly hovered port candidates.
CreateEdgeInputMode#getSourcePortCandidatesmethod makes determining source port candidates more flexible.
editLabelnow also returns a
Future, similar to
ClickInputModenow dispatches the clicked events in the same order as
GraphViewerInputMode, i.e. the more specific events
RightDoubleClickedare now dispatched before
DoubleClickedwill only be triggered if the event wasn't handled before.
TableEditorInputModenow handles clicks and taps similar to
ItemDoubleTappedevents are raised.
ClickableRegionsdetermine for which items and regions a click event will be raised.
Visualizationhave been added to
PortRelocationHandleProviderand are applied to each
PortRelocationHandlecreated by this provider.
FreeNodePortLocationModel#NODE_CENTER_ANCHOREDfor nodes and
BendAnchoredPortLocationModel#FIRST_BENDfor edges instead of a parameter of an internal model.
MoveInputModefor unselected nodes now moves the bends of adjacent self-loops, too.
PortRelocationHandleto allow customization of the port candidates.
TextEditorInputMode#TextAreaPlacementPolicyproperty provides finer control of what happens when the
TextAreais (partially) outside of the viewport.
TextEditorInputMode#TextAreaPaddingproperty controls the padding between the
TextAreaand the border of the canvas.
CanvasControl#Mouse2DClickedevent now reports the position of the mouse down event as its location and the
CanvasControl#Touch2DTappedevent reports the location of the touch down event as its location. Previously, this was the location of the up events which can be slightly different.
PortRelocationHandle#Visualizationproperty controls how the preview during edge reconnection is handled. A new option is to change the edge during the gesture, which improves fidelity of the preview in certain cases.
MoveLabelInputMode: The visualization of a moved label has been improved. The new property
Visualizationallows easy switching between a symbolic preview, a preview or a live view.
CreateEdgeInputModenow releases the mutex before dispatching the
MoveInputModenow releases the mutex before dispatching the
ResizeStripeInputModenow releases the mutex before dispatching the
NavigationInputModecan be used to configure the determination of the "next" item.
ItemDropInputMode<T> is no longer restricted to
IElementCopiedCallbackparameter have been added.
GraphEditorInputMode#MoveUnselectedInputModeproperty provides a child input mode for moving unselected items. It supersedes the previous
#createMoveUnselectedInputModemethod. This input mode is disabled by default.
SELECTED_MOVABLES_HIT_TESTABLEhave been added to
GraphEditorInputMode. These are used as default
GraphEditorInputMode#MoveInputModeand can be reused for other input modes.
KeyEventArgsnow provides the
#KeyValueof the original
OrganicLayoutData: The new properties
TargetGroupIdscan be used to group edges when some preconditions are met.
HierarchicLayout: Reduced required memory for graphs with sequence constraints.
Polyline.EdgeRouter: Improved routing quality for edges between group nodes and their descendants in the case that the routing is aborted via
AbortHandleror when the maximum duration time limit is up. Previously, such edges might not have been handled in this case, whereas now they always get a simple but valid orthogonal route.
HierarchicLayout: Improved handling of sequence and layering constraints between sub-components, see
HierarchicLayoutData#SubComponent. Previously, such constraints were ignored.
OrthogonalLayout: Reduced the number of bends of directed edges.
OrthogonalLayout: Reduced number of crossings for directed edges.
BusRouter: Now automatically ignores non-orthogonal edges with fixed bus descriptor (see
BusDescriptor#isFixed) or transforms them into orthogonal edges if they are octilinear. In previous versions, the layout algorithm simply throws an
IllegalArgumentExceptionin such cases.
OrthogonalLayout: Improved compactness of the layout results.
OrthogonalLayout: Improved result of the perceived bends optimization (see
OrthogonalLayout: The postprocessing step now also applies special transformations that can reduce the overall edge length.
MultiPageLayout: Improved runtime as well as layout quality if the input is a tree structure and the specified
#CoreLayoutis either an instance of class
ClassicTreeLayout. Furthermore, property
MultiPageLayout#AdditionalParentCountallows for specifing the number of additional proxies that the algorithm tries to add to a subtree. The original nodes associated with these proxies lie on the path of the tree's root to the subtree placed on a page.
MultiPageLayout: Added property
#ProxyReferenceNodeCreationEnabledthat allows for disabling the creation of proxy reference nodes as well as property
#MultipleComponentsOnSinglePagePlacementEnabledthat allows to prevent that elements of different connected components are placed on the same page.
PortPlacementStagenow additionally considers port grouping constraints. If two edges are port-grouped at a certain node, the stage assigns the same port location to the edges. For more information about port grouping, see
TreeComponentLayout: Added property
UndirectedTreeConsiderationEnabledthat allows for specifing whether or not undirected tree structures should be handled or not. Previously, only directed tree structures were considered.
OrthogonalLayout: Reduced the length of straight-line edges which can lead to layouts that are significantly more compact.
OrthogonalLayout: Improved optimization that reduces the number of perceived bends, see
HierarchicLayout: Fixed problem that sometimes caused an unnecessarily large distance between adjacent layers.
PlaceNodesAtBarycenterStagethat places a user-specified subset of nodes on the barycenter of their neighbors. During the core layout, these node are hidden.
SimpleNodePlacernow both support to specify a minimum distance between the edge segments that are routed orthogonally in the channel between the root node and the child nodes, see method
ClassicTreeLayoutnow allows for specifying a minimum vertical distance for the horizontal edge segments of the bus, see
Polyline.EdgeRouterand routing scenarios where it is unavoidable to cross obstacles (e.g. other nodes, labels) in order to reach the target, including cases where a crossing is necessary to guarantee that port candidates/constraints at the target side are satisfied.
Polyline.EdgeRouter: Improved quality in maze routing scenarios. Previously, it could happen that edge-node overlaps occurred even though there exists a more complicated path that yields no overlaps.
Polyline.EdgeRouterthat affect the path search phase as well as the segment location assignment phase.
TreeLayoutData#CriticalEdgePrioritiesproperty can be used to specify critical edges.
LayoutExecutor#createLayoutGraphAdaptercallback method makes it possible to configure the
LayoutGraphAdapterthat is used for the layout calculation.
SmartEdgeLabelModelnow is properly handled by labeling algorithms, resulting in better label placements.
PortCalculatorto improve the port assignment.
TableLayoutConfiguratorhas been improved:
PartitionGridDatanow reuses the
PartitionGridcreated by the
TableLayoutConfiguratorwhich provide access to the
PartitionCellIdassignment of the configurator as well as the mappings between
HierarchicLayoutDatacan be used to configure layer and sequence constraints for the
HierarchicLayout. These supersede the previous
ItemMapping#Maphas been added that allows you to use a
java.util.Mapfor the mapping from items to values.
InteractiveNodesGraphBuilderDemodemonstrating basic usage of yFiles' new
RotatableNodesDemothat shows how support for rotated node visualizations can be implemented on top of the yFiles library.
PartitionGridDemothat shows how a
PartitionGridcan be used in layout calculations to restrict the node positions to grid cells.
RenderingOrderDemothat shows the effect of different render policies on the z-order of nodes, edges, labels and ports.
EdgeToEdgeDemothat demonstrates the use of edge-to-edge connections.
LargeGraphsDemothat shows some strategies how to keep a smooth
UIwhen large graphs shall be visualized.
RectD#toMutableRectanglemethods now return a
MutableRectangleinstead of a
JavaFXgeometry classes have been added:
GeneralPath#intersects(GeneralPath)determines whether the path intersects with another
GeneralPath#createSmoothedPathmethod now has additional parameters to change how smoothing is applied. Those new options result in nicer smoothing when combined with large smoothing lengths and many different segment lengths in the path.
IgnoreXamlDeserializationErrorsenabled, invalid property content is now skipped instead of discarding the whole object with such content.
BendDecoratorfor easy removal of decorations.
PolylineEdgeStylerenders better looking paths for self loop edges whose ports are near the node border.
CanvasResourceBundlehas been added which can be used to replace the default command binding key strokes and command names via
LicenseConfighas been added whose static
INSTANCEcan be optionally used to configure the license resolving:
LicenseStringproperty, it is used directly instead of trying to load a license file.
LicenseClassLoaderproperty is set, this
ClassLoaderis used to load the license file.
JDK 9is now recognized per default when writing GraphML. For
JDK 9that are no longer known to the bootstrap classloader but only to the platform classloader no explicit
XamlNamespaceMappinghas to be added to
SmartEdgeLabelModel#findBestParametermethod returned a parameter that was centered on the edge even if the desired label layout overlapped only a little bit with an edge segment or was directly aside of one.
IFoldingViewnow raises the
BendAddedevents after the created element is registered. This fixes a bug where the master item of the created item was not available in handlers for these events.
Table: The methods
setLabelLayoutParameternow throw an
IllegalArgumentExceptioninstead of an
DefaultGraphnow calls the
onRemovingPortmethods before their incident items are removed.
ITable#LabelRemovedevents for the implicitly removed associated labels are now raised, too.
IBoundsProviderin the lookup of an
IStripecould neither be decorated nor overridden by the context lookup provided by a stripe style.
INodeInsetsProviderimplementations which can be retrieved from
InteriorStretchLabelModelnow correctly sum up the space required by overlapping labels.
CanvasControl#ScrollCommandAnimationEnabledenabled no longer changes the zoom level.
RectangleIndicatorInstallerreturned wrong values. This could impact the performance as e.g. some node selection highlights were updated although they were not in the view port and result in unnecessary large content rectangles.
NullPointerExceptionthat occured when any of the Descriptor properties were set while the
GraphModelManagerinstance was not yet associated to an
SelectionIndicatorManagerno longer results in a
GraphClipboard#cutdon't copy items anymore which depend on items that are selected but not included in
DUPLICATEare no longer enabled if there are no elements to cut, copy or duplicate.
CanvasControl#fitContentnow takes into account that scroll bars that are currently visible may vanish.
IVisualTemplate#createVisualwas sometimes called with wrong bounds and
IVisualTemplate#updateVisualwas often not called at all.
OrientedRectangleIndicatorInstaller: If an installer is created without a template key or if no template is registered for the template key that is passed to the installer's constructor, the installer's
#Templateproperty will now be initialized to a non-null default template.
RectangleIndicatorInstallerand in default arrows,
SnapResultimplementations, that has caused a
NullPointerExceptionwhen the corresponding template is null.
PortRelocationHandleProvidernow can handle
PortRelocationHandle#GHOST_VISUALIZATION_PEN_KEYnow is excluded from obfuscation.
DefaultPortCandidateDescriptorwhich used incorrect coordinates.
ParentInputModeproperty of the
InputModeEventArgsnow is the input mode which has raised the event. Previously, some input modes erroneously set the
ParentInputModeto the containing
ItemHoverInputModeupdates the hovered item upon mouse drag events, too. This is the documented behavior. Previously, the hovered item was only updated on mouse move events.
ItemHoverInputModeremoves the hovered item upon
GraphClipboard: The contents of a folder node was not copied if the folder was copied from within a group view, i.e. if the user entered a group node. In the worst case, this might have frozen the complete application.
ClickInputModeprovided wrong click locations in the
Clickedevent if a
Mouse2DEventTypes#CLICKEDevent without preceding
Mouse2DEventTypes#PRESSEDevent was processed.
CreateEdgeInputModedid not show port candidates after re-installation of the input mode.
CanvasControl#LongPressTimeproperty was used instead of the
SmartEdgeLabelModelthat is owned by an edge without visible path no longer throws an exception.
ItemHoverInputModenow resets the hovered item when moving the mouse out of the control.
GraphViewerInputModeno longer ignore changes to their sub-input modes after having been installed once.
HitTestRadiusproperty of the following implementations of
ICanvasContextnow correctly contain the value in world coordinates instead of view coordinates:
ICanvasContext#createwhen passing a
CanvasControlbut no hit test radius.
MarqueeSelectionInputModeduring the gesture via code left the marquee visible on the screen.
TextAreanow is correctly placed.
ClickInputModewere sometimes missing when clicking on a node or edge. Now, they are always triggered unless the event was handled before.
TextEditorInputMode: Inserting a line break now replaces selected text.
GraphSnapContext#NodeToEdgeDistanceproperty is set to
LabelEditingEventArgs#Context#ParentInputModeproperty provided in the events
TableEditorInputMode#LabelEditingnow contains the corresponding
IPortSnapResultProvidernever returned any snap results.
ValidBeginCursoris now correctly hidden during edge creation when bend creation isn't allowed.
CreateEdgeInputModedidn't always update the highlight of possible source port candidates when its
ShowPortCandidatesproperty was configured to show the source port candidates.
GraphViewerInputMode: Corrected the context menu location if the menu is opened using the keyboard. Previously, the menu could appear outside the
GraphControlif the selected items or the current item were not completely inside the current viewport. Now the context menu location (i.e. the menu's upper left corner) will be always inside the
ValidMenuLocationHitTestablewas erroneously called with view coordinates instead of world coordinates.
ReparentStripePositionHandler: The source and target ghost visualization was not always updated correctly when custom ghosts were used.
CreateEdgeInputMode#DummyEdgeGraph#EdgeDefaultsproperty had no effect for some interactions.
CreateEdgeInputModedoesn't show port candidates anymore if bend creation is enforced (by pressing
CTRLkey during edge creation).
ComponentLayout: Fixed an
IllegalArgumentExceptionthat was triggered for some input graphs with user-defined components (see
COMPONENT_ID_DPKEY) where at least one node had
nullas its component id.
HierarchicLayout: Fixed a problem that sometimes caused too long straight-line same-layer edges. Note that the additional length was equal to the value of
Polyline.EdgeRouter: Fixed a rare
NullPointerExceptionthat was triggered for some input graphs when the maximum duration was exceeded.
NullPointerExceptionthat was triggered when the tree root was marked as assistant node, see
IllegalStateExceptionthat could occur for input graphs that contain assistant nodes (see
AssistantNodePlacer#ASSISTANT_NODE_DPKEY) and given placement strategies (see
TreeLayout: Fixed bug that caused less compact results when using the
TreeLayout: Fixed bug that caused that the layout algorithm sometimes did not pass on exceptions that occurred during the layout calculation but caught them without proper handling.
NullPointerExceptionthat was triggered when there was a
DataProviderregistered with the graph with key
HierarchicLayout: Fixed endless loop issue causing a
StackOverflowErrorif a sub-component with a nested layout algorithm that again applied an instance of
Polyline.EdgeRouter: Fixed bug that could cause unnecessary bends for edges that need to cross group node borders.
Polyline.EdgeRouter: Fixed an issue that caused edge-to-edge distance violations (for segments directly connecting at a node) even if a cheaper route that e.g., introduces a bend - which costs less by default - was available.
NullPointerExceptionthat occurred when the subtree layout style
TreeLayoutStyle#INTEGRATEDwas specified, the subtree orientation was fixed and the graph was almost a tree graph with the exception that the root node contained additional self-loop edges.
HierarchicLayout: Fixed possible
NullPointerExceptionfor input graphs with source/target port labels (see
LabelPlacements.AT_TARGET_PORT) and with a subset of nodes associated with halos (see
HierarchicLayout: Fixed a bug that sometimes caused a wrong placement of source/target edge labels when integrated edge labeling was enabled and if there were either critical edges (see
HierarchicLayout.CRITICAL_EDGE_DPKEY) or property
GenericLabeling: Fixed a very rare
IllegalArgumentExceptionthat was caused by some input graphs that contain edges with zero length segments and labels associated with a free edge label model (i.e.,
SimplexNodePlacer: Fixed a very rare
IllegalArgumentExceptionthat was caused by some input graphs that contain both swimlanes and groups as well as fixed elements.
RecursiveGroupLayout: Fixed a bug that caused violation of PortConstraints or PortCandidates for self-loops where both endpoints were restricted to the same node side.
PolylineLayoutStage: Fixed a bug that caused collinear bends to be removed from fixed edges. Now, such fixed edges are not changed anymore.
OrganicLayout: Fixed bug that caused that movable nodes kept their initial location if the scope is set to
MAINLY_SUBSETand if there are output restrictions (see
HierarchicLayout: Fixed bug that could cause the violation of fixed port candidates if there were critical edges (see
HierarchicLayout.CRITICAL_EDGE_DPKEY) and edges connecting to group nodes.
SeriesParallelLayout: Fixed a rare bug that triggered a
NullPointerExceptionwhen the input location of a node was set to a very large value (e.g. largest possible floating-point value). This applies if the algorithm is not in from-sketch mode. For the from-sketch mode, an exception can still occur - this case is considered to be bad input.
HierarchicLayout: Fixed problem where edges between group nodes contained superfluous bends if there were grouped edges in the input graph.
Polyline.EdgeRouter: Fixed issue that sometimes caused weird edge routes if there are edges with intermediate routing points.
NullPointerExceptionthat was triggered when the list of intermediate points for an edge consisted of exactly two equal points.
IllegalArgumentExceptionthat could appear if cycle substructure detection is enabled, see
HierarchicLayout: Fixed an issue that caused non-symmetric results for grouped edges even though property
OrthogonalLayout: Fixed rare infinite loop issue for grouped graphs.
Polyline.EdgeRouter: Fixed rare
NullPointerExceptionthat occurred when there were intermediate routing points and the path search got aborted (e.g. because of maximum duration time limit).
ShortestPaths: Fixed possible
NullPointerExceptionthat occurred when the a-star algorithm was applied to a graph with non-monotonic heuristic costs.
UnsupportedOperationExceptionthat was triggered when a
DataProviderAdapterthat does not implement
IDataProvider#getwas registered with key
GivenLayersLayerer#LAYER_ID_DPKEY. The issue only appeared in conjunction with sub-components, see
FamilyTreeLayout: Fixed bug that caused that the preferred family member order wasn't considered, see
GenericLabeling: Fixed bug that could cause that a label candidate with a lower profit (see
AbstractLabeling#Profit) was preferred over another candidate with higher profit even though both candidates did not overlap with any other elements.
GenericLabeling: Fixed unexpected labeling results that occurred if a label had label candidates with different sizes. The labeling algorithm previously calculated profits of candidates under the assumption that all candidates have equal size.
HierarchicLayout: Fixed rare infinite looping issue for input graphs with fixed (i.e., non-incremental) nodes and layering constraints.
Polyline.EdgeRouter: Fixed a rare bug that caused port candidate failures for edges grouped with fixed edges.
Polyline.EdgeRouter: Fixed a bug that caused collinear bends and self-crossings to be removed from fixed edges. Now, such fixed edges are not changed anymore.
HierarchicLayout: Fixed bug that sometimes caused a
NullPointerExceptionif the input graph contains port groups, see
HierarchicLayout: Fixed bug that sometimes caused superfluous bends if the edges were routed on a grid and the grid reference point was different from
(0,0), see property
GraphLayoutLineWrapper: Fixed bug that sometimes caused a large empty space inside the drawing.
CircularLayout: Now correctly considers whether or not an inter-partition edge should be bundled or not (see
EdgeBundleDescriptor#isBundled). Previously, when having multiple partitions, inter-partition edges where sometimes bundled even if the bundling property was disabled.
HierarchicLayout: Fixed a bug where the edge thickness of grouped edge segments was not considered correctly (e.g. there was not enough space for a thick edge).
BusRouter: Fixed non-deterministic behavior with respect to multiple runs that occurred in very rare cases.
Rectangle2D#Contains(Rectangle2D)method. As a consequence of this error, the results of various algorithms and automatic layouts could have been wrong.
OrthogonalLayoutnow considers edge grouping also if there are no directed edges specified.
SwingDemo: Fixed dead locks when using the system look and feel on
GTK-based desktop environments like the popular
GenericLabelModelserialization: Fixed cyclic reference in GraphML which could happen while serializing a
GenericLabelModelwith a parameter with associated descriptor.
PolylineEdgeStylenow takes arrow heads into account for visibility checks.
IOrientedRectangle#getCenterdidn't return the correct center if the width or height of the rectangle was equal to 0.
GroupNodeDefaults#LabelDefaults#AutoAdjustingPreferredSizeEnabledproperty and the
GroupNodeDefaults#PortDefaults#AutoCleanupEnabledproperty were not considered for labels and ports of groups.
GroupingSupport#hasGroupNodesmethod now returns only true if there are actually group nodes in the graph. Previously, it returned also true if there once were group nodes which had been removed in the meantime.
TableNodeStyle: Fixed missing default visualization.
TableNodeStyleis rendered with
clonemethod now is overridable in all style implementations.
ReparentStripePositionHandler: All callback methods dealing with ghost objects have been renamed consistently:
Arrow#getAsFrozenwas removed as there was no benefit in converting the Arrow instance in an immutable instance.
MoveLabelInputMode#createLabelHitTestablehas been removed. Developers who want to set a custom instance need to set it directly to the
GraphEditorInputMode/GraphViewerInputModenow provides the
GraphEditorInputMode/GraphViewerInputModeas parent input mode in the
Contextproperty of its
ITable#RelativeLocationproperty has been removed. Use
CleanUpin API names.
targetPortCandidateparameter. Callbacks must handle this case by either creating a target port of their own or canceling the edge creation by returning
StripeSubregion#TargetTableNodeproperty is now read-only.
GraphEditorInputMode#createMoveUnselectedInputModemethod has been removed. Use the property
CreateEdgeInputMode#PortCandidateShowingEnabledproperty has been replaced by the
CreateEdgeInputMode#ShowPortCandidatesproperty which has the enum type
OverviewInputMode#AutoMouseWheelZoomEnabledproperty has been replaced by the
OverviewInputMode#MouseWheelBehaviorproperty which has the enum type
CanvasControl#createVisualFromTemplatehave been removed. Usages should call the
createVisualmethod directly instead.
CanvasControl#setTemplateLocationhas been removed. Usages should add an appropriate Transform directly to the Node instead.
CanvasControl#ZoomAnimationEnabledhas been removed. Instead the new methods
#zoomToAnimatedshall be used for animated zoom.
DpKeyBasehas been renamed to
AbstractDpKeyand made an abstract class.
AbstractDpKeyand all subclasses now take the value type as additional constructor parameter. This value type may be retrieved through read-only property
IMapperRegistry: The value type parameter was removed from all default methods taking
MoveViewportInputMode: The properties that controlled the inertia behavior have been removed since they no longer apply to the new algorithm. Instead, the new property
InertiaDurationcan be used to specify the duration of the inertia scrolling.
GraphModelManager#HierarchicNodeNestingEnabledhas been removed. Set the new
HierarchicNestingPolicy#NONEto disable node nesting or to either
HierarchicNestingPolicy#NODES_AND_EDGESto use nesting. Similarly,
GraphModelManager#HierarchicEdgeNestingEnabledhas been removed. Use either
HierarchicNestingPolicy#NODES_AND_EDGESto enable edge nesting or any other policy to disable it.
CanvasControl#animateScrollTohas been removed and is superseded by the new
SliderEdgeLabelLayoutModel#AutoFlippinghas been renamed to
TableLayoutConfigurator#Compactionhas been renamed to
GraphPartitionManager#FiringGraphEventsEnabledhas been removed.
ValueSerializer#getSerializerFortaking no context have been removed.
com.yworks.yfiles.layout.hierarchic.GroupingSupporthas been removed.
KeyEventArgs#Keyhas been renamed to
IGraph#setNodeLayoutmethod and the various methods to create a node now throw an
IllegalArgumentExceptionif the layout rectangle contains one or more
NaNvalues. Similarly, the
IGraph#setBendLocationand the various methods to add a bend to an edge now throw an
IllegalArgumentExceptionif the location point contains one or two
CreateEdgeInputMode#DummyEdgeproperty is now always reset after the edge creation was finished or canceled.
SizeD#isFinitenow also consider empty instances as not finite.
MoveLabelInputMode: The moved label now is visualized as a preview instead of a symbolic rectangle. Set the
Visualization#GHOSTto restore the old mode.
LayoutExecutor#ContentRectUpdatingEnabledproperty is now enabled by default.
CreateEdgeInputMode: The determination whether the mouse hovers over a valid end has changed. If
ForcingSnapToCandidateEnabledis disabled, the
EndHitTestablenow is queried first and a target port candidate is only searched if the hit testable returns
true. Previously, the hit testable was only queried if no target port candidate was found at the current location.
GraphModelManager#UsingHierarchicEdgeNestingEnabledproperty was set to
true, canvas objects for edges were added to the
GraphModelManager#EdgeGroupas long as no group nodes were part of the graph. The corresponding new
NODES_AND_EDGEShas no such behavior and thus,
EdgeGroupis empty by default. Use one of the other polices if canvas objects for edges should be part of
PolylineEdgeStyledefaults to an improved smoothing algorithm when using the
SmoothingLengthproperty. This is especially apparent when using large values for
CollapsibleNodeStyleDecorator#createSelectionInstallerhas been removed.
CanvasControl#DragSizeproperty no longer applies to touch input. Use the new property
#DragSizeTouchfor controlling the drag size for touch input.
CanvasControl#HitTestRadiusproperty no longer applies to touch input. Use the new property
#HitTestRadiusTouchfor controlling the hit test radius of touch input.
CanvasControl: Changing the view point of the control no longer re-dispatches mouse events to registered
ClickInputModenow dispatches the more specific events
RightDoubleClickedbefore the general
DoubleClickedwill only be triggered if the event wasn't handled before.
HierarchicLayoutDatahave been marked as deprecated. The new properties
SequenceConstraintsshould be used instead. Similarly, the factory methods
LayoutUtilities#createSequenceConstraintFactory(IGraph)have been marked as
PartitionGrid#hasAtLeastTwoNonEmptyRowshas been marked as
@Deprecatedand may be removed in future releases.