mihosoft.eu
Programming, Art, Linux, Free Software…
mihosoft.eu
Navigation
  • Home
  • VRL-Studio
  • SonoAir
  • Monochrome Wars
  • About
  • Impressum
  • Datenschutz
You are here: Home › Featured › Workflow Visualization With VWorkflows & JavaFX [Part 3]

Workflow Visualization With VWorkflows & JavaFX [Part 3]

May 24, 2013 | Filed under: Featured, Java, JavaFX, Uncategorized, VRL and tagged with: graph, graph visualization, Java, JavaFX, JFXtras, visual programming, VRL, VWorkflows, workflows

In the first and second part of this tutorial we created nodes and complex flows and visualized them.

If workflows are complicated and consist of many layers it is necessary to use multiple views for the visualization and interaction.

Overview

In this tutorial we will cover an exciting feature: you will learn how to create multiple interactive views of a workflow.

Thanks For Your Feedback

Thanks for all your nice mails! As this project is related to VRL-Studio I encourage you to post ideas and comments on the VRL-Studio mailing list.

Demo

Here’s another video:

Creating Multiple Views

As in the last tutorial we use the createFlow(VFlow workflow, int depth, int width) method to create a flow:

createFlow(flow, 3, 6);
Workflow (Width 6, Depth 3)

Workflow (Width 6, Depth 3)

Now we create second visualization of the root flow, i.e., an exact copy of the first visualization. We accompish this by assigning two skin factories to the flow controller:

    // create first skin factory for flow visualization
    FXSkinFactory fXSkinFactory1 = new FXSkinFactory(canvas1.getContentPane());

    // create skin factory for flow visualization
    FXSkinFactory fXSkinFactory2 = new FXSkinFactory(canvas2.getContentPane());

    // generate the ui for the flow
    flow.setSkinFactories(fXSkinFactory1, fXSkinFactory2);

The result looks like this:

Multiple Views

Multiple Views

This video above demonstrates the views in action

This is not all. In addition to that it is possible to add visualizations to subflows! Just add a new skin factory to a subflow node:

// create another skin factory for flow visualization
FXSkinFactory subFlowSkinFactory = new FXSkinFactory(canvas3.getContentPane());

// choose the first subflow node
VFlow subflow = flow.getSubControllers().iterator().next();

// generate the ui for the flow
flow.setSkinFactories(subFlowSkinFactory);

The program now looks like this:

Multiple Views 2

Multiple Views 2

Demo Application

Download the tutorial code from GitHub.

Requirements:

  • Java 7 or a recent Java 8 preview build (>=b84)
  • Optional: Netbeans >=7.3 with Gradle Plugin

Building & Running:

To run the application from the command line just type ./gradlew run.

Stay tuned and follow me on Twitter

To be continued…

Update: here is part 4

Did you like this article? Share it with your friends!

Tweet

Written by admin

Visit my Website Follow me on Twitter

2 Responses to "Workflow Visualization With VWorkflows & JavaFX [Part 3]"

  1. Java desktop links of the week, May 27 | Jonathan Giles says:
    May 26, 2013 at 21:33

    […] mihosoft has part three in the series of blog posts on workflow visualisation with VWorkflows & JavaFX. […]

    Reply
  2. JavaFX links of the week, May 27 // JavaFX News, Demos and Insight // FX Experience says:
    May 27, 2013 at 08:07

    […] mihosoft has part three in the series of blog posts on workflow visualisation with VWorkflows & JavaFX. […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pages

  • About
  • Datenschutz
  • Impressum
  • Seminar 2019

Categories

  • 3D Printing
  • Any-Key
  • Art
  • C/C++
  • Devoxx
  • Digital Painting
  • Featured
  • IoT
  • Java
  • JavaFX
  • Javakurs 2015
  • JavaOne
  • Linux
  • Linux on Apple Hardware
  • Linux: Daily Usage Tips
  • Mobile Apps
  • Mobile Devices
  • Programming Languages
  • Repair Things
  • Science
  • Sonos
  • Teaching
  • Uncategorized
  • Virtual Reality
  • VRL

Tags

3D 3D Printing 3d visualization AirSonos Apple Music Devoxx Devoxx 2013 gradle graph iOS Java Java 8 JavaFX JavaFX 8 JavaOne JavaOne 2013 jdk9 JFXtras JInternalFrame Linux MacBook MDI mobile apps OpenDive OpenJDK OpenJFX Open Source Performance scientific visualization SonoAir Sonos Ultimaker Virtual Reality Virtual World visual programming VPlot VRL VRL-Studio VWorkflows window control Window Node Window System workflow workflows X11

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

JavaOne Rockstar

JavaOne Rockstar
Follow @mihosoft

Recent Posts

  • Native JDK9 Application Bundles
  • Running C code from Java via VTCC
  • SonoAir finally supports macOS High Sierra!
  • JavaOne 2017 Community Keynote Artwork
  • The JGrounds App: better teaching apps for Java 9 [BOF5047]

Recent Comments

  • ¿Ventanas completamente personalizadas de JavaFX? - Fallosweb.com on VFXWindows
  • JavaFX entirely customized windows? – w3toppers.com on VFXWindows
  • Volel Mondesir on Adding Custom Icons to JFXtras Window Control (VFXWindows)
  • Volel Mondesir on Adding Custom Icons to JFXtras Window Control (VFXWindows)
  • Switching between different JDK versions in Windows - ErrorsFixing on JSelect: switch between different JDK versions

Archives

  • February 2018
  • October 2017
  • September 2017
  • February 2017
  • June 2016
  • May 2016
  • November 2015
  • September 2015
  • July 2015
  • March 2015
  • September 2014
  • March 2014
  • February 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • November 2010
  • February 2010
  • November 2009
  • October 2009
  • February 2009
  • August 2008
  • May 2008
  • April 2008
  • March 2008
Privacy & Cookies: this site uses cookies. By continuing to use this website, you agree to their use.
To find out more, see here: Impressum & Datenschutz

© 2025 mihosoft.eu