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


Rock and Roll

Posts: 720
Joined: Apr 6th, 2003
Diagramming for Java Swing, V4.8
May 31st, 2025 at 11:01am
Print Post  
We have released version 4.8 of JDiagram. It contains the following new features and improvements:

ItemLabel image
New Image property added to ItemLabel lets you display icons along a link's geometry, or add more images to a ShapeNode. If a label contains both Text and Image, their relative position is specified by ImageAlign property (by default the image is placed on left side of text), and distance by ContentPadding. The image is rendered using intrinsic size reported by java.awt.Image, unless you override it by setting ImageSize property. You can treat label images as clickable icons by handling linkClicked or nodeClicked events and checking Label argument passed to their handlers.

Customize node action icons
The Renderers class lets you customize the appearance of nodes' fold, scroll and collapse icons, by providing Graphics2D drawing callbacks, bitmap images or SVG drawings:
  • Set ExpandIconRenderer to override the appearance of collapse / expand buttons displayed by Expandable nodes.
  • Set ScrollIconRenderer to override the appearance of scroll arrows displayed by Scrollable tables.
  • Set FoldIconRenderer to override the appearance of fold / unfold buttons displayed by Foldable containers.

Miscellaneous
  • Label argument now provided with item click and double click events.
  • Locked property added to ItemLabel. It lets you prevent users from editing label's text, and moving it when Behavior is set to MoveLabels.
  • SVG rendering improvements.
  • Static fromFile and fromStream convenience methods added to SvgContent.
  • JSON serialization fixes and improvements.
  • imageFromFile and imageFromStream convenience methods added to CommonUtils.

API changes
  • XmlException moved to com.mindfusion.common package.

Distribution for the latest version can be downloaded here, or from the clients area on our site.
https://www.mindfusion.eu/JDiagramTrial.zip

Updated JAR is also available at the Maven Central Repository:
https://search.maven.org/artifact/eu.mindfusion/diagramming

Enjoy!
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint