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


Rock and Roll

Posts: 685
Joined: Apr 6th, 2003
Diagramming for Java Swing, V4.2
May 31st, 2016 at 12:05pm
Print Post  
We have released version 4.2 of JDiagram. It contains the following new features and bug fixes:

Free-form nodes
A FreeFormNode collects all points from users' mouse or touch input and displays them as node's outline. To let users draw free-form nodes interactively, set DiagramView.Behavior to DrawFreeForms or LinkFreeForms. Use the Points property of FreeFormNode to get or set outline points programmatically. If the Closed property is set, the node is drawn as a closed shape and its interior filled, or otherwise the node is drawn as a poly-line. If the distance between first and last points drawn by user is shorter than Diagram.AutoCloseDistance, the node's Closed property is automatically set to true. AutoCloseDistance default value is Float.MAX_VALUE, so free-form nodes are always closed.

Convert free-form drawings to ShapeNodes
Additional drawing modes, convenient for touch input, convert FreeFormNode objects drawn by user to ShapeNode objects with matching shapes. To enable them, set Behavior to DrawFreeShapes or LinkFreeShapes. The shapes against which the user's input is matched are set via diagram's FreeFormTargets property. By default it contains Rectangle, Decision and Ellipse shapes.



Fixed bugs
~ Text outside of node boundaries was not repainted correctly after loading custom shape library from XML.
~ TreeViewNode scrollbar arrow buttons did not scroll correctly in some situations.
~ HandlesStyle is now serialized by the base DiagramNode class. This automatically saves the value for custom node types and fixes lost non-default values for CompositeNode and TreeViewNode after serialization.

API changes
Adjustment handles are no longer identified by integer values but by instances of AdjustmentHandle and derived classes. This changes the signatures of DiagramItem.hitTestHandle methods and the InteractionState constructor. Standard handle classes included are NodeAdjustmentHandle for changing a node's position and size, LinkAdjustmentHandle for changing link control point positions, and FreeFormHandle for changing the position of a FreeFormNode outline point.

Installer for the latest version can be downloaded here, or from the clients area on our site.
https://www.mindfusion.eu/JDiagramTrial.zip
    
Enjoy!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint