Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramming for Java Swing, V4.0.3 (Read 1668 times)
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 740
Joined: Apr 6th, 2003
Diagramming for Java Swing, V4.0.3
Dec 13th, 2013 at 12:02pm
Print Post  
We have released version 4.0.3 of JDiagram. It mostly improves compatibility and interoperability with MindFusion diagram controls for other platforms:

Pattern brushes
JDiagram now fully emulates hatch brushes from the Windows Forms GDI+ API. The HatchBrush class allows filling shapes with a pattern. Supported patterns are exposed as members of the HatchStyle class. Points or lines from the patterns are painted using the brush' ForegroundColor property, while the space between points or lines is filled using BackgroundColor.

Adjustment handles improvements
~ MoveOnly and HatchHandles3 handle styles now have the same default appearance as in .NET versions of the control, based on a HatchBrush with Percent50 pattern. The brush can be changed using the PatternBrush property of HandlesVisualStyle.
~ Two new HandlesStyle members added, RoundAndSquare and RoundAndSquare2, that draw corner resize handles as circles and remaining handles as squares.
~ RotationHandleBrush property added to HandlesVisualStyle.

Miscellaneous
~ Scrollable property added to TreeViewNode.
~ Decoration elements in Shape definitions can now be accessed using the getDecorations method.
~ You can change the text region of existing shapes using the setTextArea method.
~ The colors of multiple-selection frame can now be customized using the Pen and Brush properties.
~ The MeasureUnit property now supports Centimeter and WpfPoint values. The latter allows loading diagram files saved by WPF and Silverlight versions of the control with their default units.

API changes
For source code compatibility with Android version of the control, and eventual multi-touch support in future Java Swing versions, these members has been renamed to follow the W3C pointer events specification:

~ getMousePosition method in NodeEvent, LinkEvent and DiagramEvent has been renamed to getPointerPosition.
~ mousePressed, mouseMoved, mouseDragged and mouseReleased members of BehaviorBase have been renamed to pointerDown, pointerOver, pointerMove and pointerUp respectively.
~ nodeMouseEnter, nodeMouseLeave, linkMouseEnter, linkMouseLeave events in DiagramListener have been renamed to nodePointerEnter, nodePointerLeave, linkPointerEnter, linkPointerLeave.

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