Buy now Log in
English
Espanol Deutsch
MindFusion menu
  • Products
    • Suites
      • Diagramming
      • WinForms
      • WPF
      • Silverlight
      • ASP.NET
      • Xamarin
      • Java
      • Scheduling
    • JavaScript
      • Diagram
      • Scheduler
      • Chart
      • Keyboard
      • Free JS Chart
    • ASP.NET
      • Diagram
      • Scheduler
      • Chart
      • Map
    • ASP.NET MVC
      • Diagram
    • Java
      • Diagram
      • Scheduler
      • Chart
      • Spreadsheet
      • Keyboard
    • WinForms
      • Diagram
      • Scheduler
      • Spreadsheet
      • Chart & Gauge
      • Report
      • Map
      • Virtual Keyboard
      • Dock Control
    • WPF
      • Diagram
      • Scheduler
      • Gantt Chart
      • Spreadsheet
      • Chart & Gauge
      • Report
      • Map
      • Virtual Keyboard
      • UI
    • ActiveX
      • Diagram
    • .NET MAUI
      • Diagram
    • Xamarin
      • Diagram
      • Scheduler
      • Chart
    • Android
      • Diagram
      • Chart
    • iOS
      • Diagram
    • UWP
      • Diagram
    • WordPress
      • Org Chart Plugin
    • Applications
      • XML Viewer
      • InSight Diagrammer
      • Code Converter
  • Support
    • Forums
    • Documentation
    • FAQ
    • Help Desk
  • Company
    • About Us
    • Contacts
    • Blog
    • Newsletter
    • Services
    • Clients
    • Testimonials
    • Join Us
  • Downloads
  • Web Store
HomeProductsDiagramming for Java
OverviewSamplesHelpBuy

Anchor Points

Learn how to define custom anchor-point patterns and assign them to nodes. The library offers several predefined anchor patterns to choose from. One of them, DecisionBox, us used with the decision boxes in the sample diagram.

Diagramming for Java: Anchor Points
Run Download

Anneal Layout

The sample demonstrates an an automatic graph layout algorithm based on simulated annealing - a general purpose optimization method that soles large scale combinatorial problems by simulating the process of healing and cooling of metal to achieve freedom of defects.

Diagramming for Java: Anneal Layout
Run Download

Controls

The Java diagram library comes with different auxiliary controls that are demonstrated in this sample: an overview, ruler, zoom control and a ShapeNodeList control, which lets you drag and drop diagram nodes.

Diagramming for Java: Controls
Run Download

Custom Drawing

Diagram items offer not only rich choice of styling but also support custom drawing. This means you can entirely override the rendering of an item with your own drawing logic. The sample demonstrates how to apply that to diagram links.

Diagramming for Java: Custom Drawing
Run Download

Database Scheme

The sample connects to MySQL's Sakila database and reads the structure of its tables. It uses the diagram library to create a table with the data definitions of each table in the database and arranges the table using the layered layout algorithm.

Diagramming for Java: Database Scheme
Run Download

Decision Layout

The sample uses the decision layout algorithm which is applied on a sample diagram that illustrates a decision tree.

Diagramming for Java: Decision Layout
Run Download

Directory Tree

The sample uses the tree layout algorithm to arrange a diagram that illustrates the directory structure on your local hard disk.

Diagramming for Java: Directory Tree
Run Download

Effects

You can choose among a variety of effects to apply on diagram nodes - glass, aero, metallic, glow and more. Each effect comes with a set of customization options like opacity, glow color, shade and reflection color etc. Effects can be combined.

Diagramming for Java: Effects
Run Download

Fishbone Diagram

Create fishbone diagrams interactively. Learn how to create derived node classes that implement custom drawing and how to override startCreate, updateCreate and completeCreate, and custom hit-testing by overriding containsPoint.

Diagramming for Java: Fishbone Diagram
Run Download

FlowCharter

That's a complete diagramming application that lets users drag and drop diagram nodes from the NodeShapeList to the right, edit their properties and connect them. The sample also features an overview and a menu with settings.

Diagramming for Java: FlowCharter
Run Download

Form Editor

Here we use the ability of the diagram library to host any Java Swing control in a ShapeNode. You can drag and drop a JButton, a JTextArea or JLabel on the diagram work area and treat them the way you would any other diagram item or Swing component.

Diagramming for Java: Form Editor
Run Download

Fractal Layout

The fractal layout is used to arrange a randomly generated diagram. This algorithm places child nodes symmetrically around their parent node and the result diagram has fractal-like appearance. Each graph subset looks like a scaled-down version of the whole graph.

Diagramming for Java: Fractal Layout
Run Download

Icon Nodes

You can inherit the DiagramNode class and create your own diagram items which inherit the properties of the standard diagram class and add new ones. This sample shows you how to achieve that. When you click on the diagram surface a custom node object is created.

Diagramming for Java: Icon Nodes
Run Download

Interactive Tables

TableNodes in the diagram library can handle events that indicate which cell was clicked. In this sample a combo box is rendered whenever a user clicks on a cell. Drag the mouse on the work area of the diagram to create a new table.

Diagramming for Java: Interactive Tables
Run Download

Class Diagram

That's an end user application that parses an arbitrary jar file and uses the diagram library to render a class diagram with the data of the classes, enums and interfaces found in the jar. Each member is listed in a table together with its fields, methods and constructors.

Diagramming for Java: Class Diagram
Run Download

JDiagram Demo

This is a Java application with multiple steps, which demonstrates different features of the flowchart library. You can see different types of flowcharts, trees and charts, various layouts, graph management features, appearance settings.

Diagramming for Java: JDiagram Demo
Run Download

Lanes

This sample uses the capability of the diagram library to arrange diagram items in lanes. When you create tasks you cannot drag the shape nodes between multiple lanes. The sample uses cascading links and imitates a Gantt chart.

Diagramming for Java: Lanes
Run Download

Layered Layout

The layered layout algorithm arranges diagram nodes in layers, according to several criteria. Most important criteria are: connected nodes must be placed close together; links must flow in one direction if possible; links must cross as few layers as possible; links must not cross other links.

Diagramming for Java: Layered Layout
Run Download

Magnifier

The magnifier tool can take whatever Diagram shape you want. It can be triggered in various ways and its size and zoom factor are customizable.

The Magnifier Tool in the Java Swing Flowchart Library
Run Download

Multiple Views

The sample shows how to render the same diagram instance in multiple views.

Multiple Views of the Same Diagram in Java Swing
Run Download

One-way Layout

The sample demonstrates the one-way layout algorithm where nodes are arranged in such manner that the links that connect them point in the same direction, when possible.

Arranging a Java Swing Diagram with the One-way Layout Algorithm
Run Download

Predefined Shapes

The sample demonstrates all predefined shapes that come with the Java diagramming library.

Predefined Node Shapes in the Java Swing Diagram Library
Run Download

Routing

The sample lets you experiment with the various routing options for diagram links. You can change a given criteria and see how it effects the shape and length of the link.

Routing of Links in the Java Swing Diagram Library
Run Download

Scripting

This sample shows how to associate scripts with flowchart nodes to design and run actual algorithms represented by the flowcharts. The example also demonstrates how to integrate Swing components into a diagram using ControlNode class.

Java Swing Flowchart that Represents a Script Flow
Run Download

Site map

This sample demonstrates how you could let users create flowcharts faster by just drawing links from existing nodes to empty area on the canvas. The newly created nodes represent web pages and you can generate the HTML code for them.

A Java Swing Diagram that Represents Website Structure
Run Download

Software Designer

The sample allows users to create, edit and save simple UML-like class diagrams interactively.

A Java Swing Application for Designing Software
Run Download

TabbedView

Demonstrates how to build multi-page diagrams and how to use the DocumentView control.

Tabbed View with the Java Swing Diagram Library
Run Download

TreeMap

The sample shows the tree map layout algorithm. The sample renders the world population and area by country using nested rectangle diagram nodes.

The TreeMap Algorithm in JDiagram
Run Download

Tutorial #1

This tutorial shows how to build a graph from XML data.

Build a Graph from XML Data in Java Swing
Run Download

Tutorial #2

This tutorial shows you how to build a tree from XML data.

Build a Tree from XML Data in Java Swing
Run Download

Tutorial #3

This sample shows how to create custom node types - OrgChartNode-s.

Custom Node Type in Java Swing Diagram
Run Download

Tutorial #4

The sample shows how to enable undo/redo support and serialization for custom nodes.

Undo and Redo Support for Custom Node Types
Run Download

XmlTree

The sample demonstrates how to build a tree from arbitrary XML data.

A Tree from XML Data in Java Swing
Run Download

Contact Tracing Manager

A contact tracing manager built in Java. The application stores the data in MySQL Database and uses the Diagram and Calendar libraries for the UI.

Contact Tracing Manager Application in Java Swing
Run Download

Dynamic Dashboard

A dashboard that contains a spreadsheet, a treemap diagram and an overlay bar chart. The data is provided through XML. The diagram and chart are updated when the user changes the cell selection in the first spreadsheet.

Dynamic Dashboard in Java Swing
Run Download

MindFusion Diagramming Pack

  • ASP.NET
  • JavaScript
  • WinForms
  • WPF
  • Java
  • ActiveX
  • Silverlight
  • ASP.NET MVC
  • Xamarin
  • iOS
  • Android
  • UWP
  • .NET MAUI

    News

  • The new video tutorial from MindFusion explains how to build a neural network diagram step by step. The sample uses Diagramming for WPF.

    March 20th, 2023

  • Diagramming for Java Swing V4.7 is released with spatial index for faster hit-testing and viewport clipping queries; new pattern and composite routers and more.

    Feb 27th, 2023

  • You are welcome to test the beta version of the next Diagramming for Java Swing library. It now has a spatial index that allows faster hit-testing and viewport clipping; two new link routers: pattern and composite and more.

    Jan 25th, 2023

    Components

  • JavaScript
  • WinForms Pack
  • WPF Pack
  • ASP.NET Pack
  • Diagramming Pack
  • Scheduling Pack
  • Mobile

    Get Products

  • Direct Downloads
  • License Scheme
  • XML Viewer

    Get Support

  • Forum
  • E-mail
  • Online Documentation
  • FAQ
  • Help Desk

    Company

  • Clients
  • Testimonials
  • About Us
  • Services
  • Contacts
  • Online Store
  • Blog
  • News Feed
  • Newsletter
  • E-mail: info@mindfusion.eu
    Phone: +359 889 199 729
    Fax: +359 2 931 54 38

Terms of Use Site Map Contact Us
Copyright © 2001-2018 MindFusion LLC. All rights reserved.