We have released MindFusion Java Pack 2022.R2. It contains the following new features and improvements:
MindFusion.DiagrammingMultiple labels per nodeThe 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:
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.
MindFusion.SchedulingReorder resources- Enable the AllowReorderResources property of TimetableSettings to let users reorder resource columns in timetable view when GroupType is set. The ReorderIndicatorColor and ReorderIndicatorWidth properties let you customize the appearance of insertion indicator line.
- Enable the AllowReorderResources property of ResourceViewSettings to let users reorder rows in resource view when GroupType and SecondaryGroupType are set. The ReorderIndicatorColor and ReorderIndicatorWidth properties let you customize the appearance of insertion indicator line.
Miscellaneous- New ItemHeaderText and ItemDescriptionText members of CustomDrawElements let you custom-draw item's text labels.
- Enable the ExtendedCurrentTimeMarker property of TimetableSettings or TimelineSettings to make current-time marker span the full extent of timetable / resource view (instead of only header area).
- Fixed label rotation angles in horizontal timetable view.
- Fixed RangeSelector exception when running under the Nimbus Look and Feel.
MindFusion.Charting- FunctionSeries can now generate values using lambda expressions.
- Render dotted lines.
- Improved line joints rendering quality.
MindFusion.Spreadsheet- cellChangedPreCalc and cellChangedPostCalc events.
- Fix for diagonal borders showing in exported Excel files when border width is set to 0.
- MROUND and ROUND function fixes.
- Fix for skipping manual page breaks (set via PageBreak property).
Distribution for the latest version can be downloaded here, or from the
clients area on our site:
https://mindfusion.eu/JPack.zipEnjoy!