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


Rock and Roll

Posts: 685
Joined: Apr 6th, 2003
Diagramming for Java Swing, V4.6.2
Aug 23rd, 2022 at 1:19pm
Print Post  
We have released version 4.6.2 of JDiagram. It contains the following new features and improvements:

Multiple labels per node
The NodeLabel class allows multiple captions to be displayed for a single DiagramNode of any type. Node labels provide a set of properties allowing full customization of their display and positioning. Label position is defined by specifying a pin point and offset from it, set through setCornerPosition, setEdgePosition, setCenterPosition methods. In addition, the HorizontalAlign and VerticalAlign properties of NodeLabel specify on which side of pin point to draw the label's caption.

For example, following code adds extra labels to top-left and bottom-right corners of a ShapeNode:

Code
Select All
ShapeNode node = diagram.getFactory().createShapeNode(10, 50, 40, 30);
node.setText("text"); // centered main text

NodeLabel lb1 = node.addLabel("label 1");
lb1.setCornerPosition(0, 0, 0);
lb1.setHorizontalAlign(Align.Near);
lb1.setVerticalAlign(Align.Near);
lb1.setBrush(new SolidBrush(Color.red));
lb1.setTextColor(Color.white);

NodeLabel lb2 = node.addLabel("label 2");
lb2.setCornerPosition(2, 0, 0);
lb2.setHorizontalAlign(Align.Far);
lb2.setVerticalAlign(Align.Far);
lb2.setBrush(new SolidBrush(Color.yellow));
lb2.setTextColor(Color.red); 


Miscellaneous
  • Improved text rendering quality on high-resolution displays.
  • Fixed automatic scrolling and ZoomControl panning on high-resolution displays.
  • Improved ZoomControl rendering quality.
  • More precise vertical centering of text in table captions and cells.
  • The MoveLabels behavior lets user move link and node labels interactively.
  • ExcelExporter exports pen width of links.
  • ExcelExporter sets more precise positions of link end points.
  • HorizontalOffset and VerticalOffset now work for link labels positioned using setLinkLengthPosition method.
  • DashStyle.DashDotDot serialization fix.

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