- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are more details and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Diagramming for Java Swing, V4.4
Read 322 times

Forum Admin   Offline
YaBB Administrator
*****
Posts: 528
Gender: male
Rock and Roll


   
     
 
Diagramming for Java Swing, V4.4
May 13th, 2019 at 3:32pm
 
We have released version 4.4 of JDiagram. It 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 represents a check-box that lets users select true / false values.
  • 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:
<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.


Installer for the latest version can be downloaded here, or from the clients area on our site.
http://www.mindfusion.eu/JDiagramTrial.zip
    
Enjoy!
 
 
  WWW
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print