Griffon: Transitions plugin released

Posted by: Andres Almiray on 2009-08-25 22:29:00.0
I'm pretty sure I'm not the only one that dropped his jaw in awe at JavaOne 2006 when Romain Guy demonstrated Aerith during the opening keynote. Aerith represents the holy grail of Swing applications. It looks and behaves like a native OSX application, the catch being that it is a Java Swing application filled with many tricks that only the dream team (at that moment) formed by Romain, Richard, Jasper and Scott (I'm sorry if I left someone out) were able to muster a few days before the show began. It truly was a remarkable feat, the code was even released into the wild a year later, however there are few to none publicly available applications that follow Aerith's steps.

Now, I don't promise that the newly released Griffon Transition Plugin will turn your application into an Aerith clone, it just makes the job of creating animated transitions a snap, one of the first features that you find when running Aerith. This plugin would not have been possible if it weren't for Jeremy's work on Transition2D and Kirill's Trident Animation Library. It also follows the spirit of Animating CardLayout.

The following video demonstrates the plugin in action. There is a basic start screen (which relies on GfxBuilder to draw the background and Griffon's logo by the way). When the logo is clicked a fade-to-black transition is triggered and we see the first pane of a rather boring enterprise form mock up. Click the edit button and another animated transition (Swivel) shows an editable view of said form.



The following code was used to setup the View
This small example was also inspired by Eitan's work on JMatter using Animating CardLayout. A similar animated transition is triggered whenever you'd like to edit a domain object using the framework's default show/edit views.

Feedback is always appreciated.

Keep on Groovying!
be the first to rate this blog


About Andres Almiray

Andres is a Java/Groovy developer with mode than 10 years of experience in software design and development. He has been involved in web and desktop application developments since the early days of Java. He has also been teacher of computer science courses in the most prestigious education institute in Mexico. His current interests include Groovy, Scala and Swing. He is a true believer of open source and has participated in popular projects like Groovy, Griffon, JMatter and DbUnit, as well as starting his own projects (Json-lib, EZMorph, GraphicsBuilder, JideBuilder). Founding member of the Griffon framework.

He likes to spend time with his beloved wife, Ixchel, when not hacking around.