Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic JDiagram 3 has been released! (Read 1476 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 689
Joined: Apr 6th, 2003
JDiagram 3 has been released!
Jan 5th, 2010 at 3:41pm
Print Post  
We have released JDiagram version 3.0. It contains the following new features:

TreeView nodes
The TreeViewNode class represents nodes that can display hierarchical data. The root items displayed in the node can be accessed through the RootItems property. New items can be added to and removed from the returned collection. The root items can have child items on their own and so on. For more information, refer to the TreeViewItem class.

Ruler control
The Ruler control provides horizontal and vertical scales that helps users measure and align diagram items. In order to set the Ruler as a parent of a DiagramView, call its setDiagramView meethod. The control also implements support for scrolling and can be used instead of JScrollPane.

Export to SVG
The SvgExporter class creates a Scalable Vector Graphics (SVG) drawing from the content of a Diagram. Custom-drawn elements are exported too through an SVG implementation of the Graphics2D interface provided by JDiagram.

Link routing enhancements
A much faster link routing algorithm has been implemented. It can arrange a thousand links for just a few seconds, while older versions would require several minutes. Now it is also possible to create custom routing classes to be used when a link must be routed by implementing the LinkRouter interface. An instance of such class can be set through the LinkRouter property of the Diagram class. JDiagram provides two classes that implement LinkRouter - GridRouter and QuickRouter. By default LinkRouter is set to a QuickRouter instance.

Flowchart graph layout
FlowchartLayout recognizes program code-like patterns in the graph, such as loops, sequences and if/switch branchings, and arranges them recursively. FlowchartLayout could be used to arrange other types of graphs as well, though with some restrictions. For example it treats all back links as loops in the code, and expects that they are nested - loop links starting closer to the stop node should end closer to the start node. Another similar restriction is that there shouldn't be any cross-links that connect different branches of a decision sub-graph.

Layout enhancements
- If StraightenLongLinks is enabled, LayeredLayout straightens links that cross multiple layers of the graph.
- Add SpringLayoutTraits.Frozen to a node's LayoutTraits to make SpringLayout ignore forces acting on a node but still consider the node's repulsion force on other nodes.
- The EnableAssistants property of TreeLayout allows creating organizational charts as in MS Office.
- The speed of GridLayout and OrthogonalLayout has been improved.

Adjustment handles styling
The ActiveItemHandlesColor, SelectedItemHandlesColor and DisabledHandlesColor properties have been replaced by ActiveItemHandlesStyle, SelectedItemHandlesStyle and DisabledHandlesStyle. The HandlesVisualStyle objects returned by them provide sub-properties for greater control over the appearance of selection handles. The adjustment handles can now be painted not only in solid color but with arbitrary brushes, such as GradientBrush and TextureBrush objects.

New ScriptHelper methods
- The createColor method creates a Color instance.
- Use createPaper and createPageFormat to create objects requied for print job setup.
- createSize and createSizeF create Dimension and Dimension2D instances.

Miscellaneous
- DiagramApplet provides local clipboard support through the copyToClipboard and pasteFromClipboard methods, which avoids the security checks done by the corresponding DiagramView methods.
- Elements of Shape definitions can be assigned distinct color and pen style attributes.
- The ShowLabels property of ShapeListBox specifies whether the control should display item labels.
Links can be custom drawn by setting their CustomDraw property and handling the drawLink event.
- PdfExporter creates hyperlinks for nodes whose HyperLink property is set.
- The drawForeground event lets you render custom graphics in the diagram foreground.

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!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint