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

Rock and Roll

Posts: 691
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:

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.setBrush(new SolidBrush(;

NodeLabel lb2 = node.addLabel("label 2");
lb2.setCornerPosition(2, 0, 0);
lb2.setBrush(new SolidBrush(Color.yellow));

  • 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.

Updated JAR is also available at the Maven Central Repository:

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