We have released version 3.4 of JDiagram. It adds the following new features and improvements:
Interactive node alignmentIf AutoAlignNodes is enabled, the node currently being drawn or resized is aligned to another node so that a pair of their vertical or horizontal sides become collinear. To specify the maximal distance at which nodes are aligned, set the AutoAlignDistance property. The pair of aligned nodes is indicated visually by drawing an alignment guide using the pen assigned to AlignmentGuidePen.
Fractal tree layoutFractalLayout is a tree layout algorithm that places child nodes symmetrically around their parent node. Nodes at the lowest level are arranged directly in a circle around their parent. At the upper level, the already arranged nodes form branches that are arranged in a circle around the new parent node. The algorithm is recursively repeated till the highest level is reached. If nodes in the tree have uniform number of children, the end result has fractal-like appearance (subsets of the graph look like scaled-down copies of the whole graph):
You can choose which node should be displayed at the center of the topmost circle by setting the Root property. If it is not specified, the algorithm automatically selects a root that leads to more balanced distribution of nodes.
New node constraints~ If KeepInsideParent is enabled, a node cannot be moved outside the boundaries of its ContainerNode or group's master node.
~ If KeepRatio is enabled, a node's width-to-height ratio is preserved when the user resizes the node.
~ The user cannot move a node's side past its opposite side if the DisableMirroring constraint is set.
Miscellaneous~ getAllIncomingLinks, getAllOutgoingLinks, getAllLinks methods return all links connected to a node and its elements (TableNode rows or TreeViewNode items).
~ Rotated nodes are now aligned to the grid when moved.
~ PdfExporter could not be used from Java 7 because of a removed deprecated method (FontManager.getFont). This is now fixed by using equivalent API members.
~ Fixed a bug where a link would align to incorrect anchor point when the target node is rotated.
Registered customers with an active upgrade subscription can download the licensed version from the
clients area on our site.
A trial version is available for download here:
https://www.mindfusion.eu/JDiagramTrial.zip Enjoy!