The MindFusion Forums
Flow Diagramming Components >> Java Swing >> Version 4.4 beta
https://mindfusion.eu/Forum/YaBB.pl?num=1552401929

Message started by Slavcho on Mar 12th, 2019 at 2:45pm

Title: Version 4.4 beta
Post by Slavcho on Mar 12th, 2019 at 2:45pm
JDiagram version 4.4 contains the following new features and improvements:

New CompositeNode components
Component classes that support user interaction can now be used as part of CompositeNode templates:

  • ButtonComponent implements clickable buttons inside nodes;
  • CheckBoxComponent implements check-boxes that can be toggled on and off;
  • EditComponent implements editable text area;
  • NumericEditComponent implements number-entry area;
  • SliderComponent allows selecting a value from numerical range by dragging a slider;
  • SpinnerComponent represents a spin-edit component;


Code (xml):

<StackPanel Orientation="Vertical" GridColumn="1">
     <Button Name="Button" Width="10" Height="10"/>
     <Edit Name="Edit" Width="50" Height="30"/>
</StackPanel>


Code (java):

if (node instanceof CompositeNode)
{
     CompositeNode cnode = (CompositeNode)node;
     ButtonComponent button = (ButtonComponent)cnode.findComponent("Button");
     button.addComponentMouseEventListener(
         new ComponentMouseEventAdapter()
         {
               @Override
               public void mouseClicked(Object sender, ComponentMouseEvent e)
               {
                     EditComponent edit = (EditComponent)cnode.findComponent("Edit");
                     edit.setText("click");
               }
         });
}

Improved FlowchartLayout
FlowchartLayout can now arrange more types of graphs, no longer requiring them to represent strictly-nested source code structures.

If anyone is interested in trying the beta version, please download this archive containing updated JAR file:
https://mindfusion.eu/_beta/JDiagram44.zip

Any comments, questions and general feedback are welcome.

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.