GraphicsBuilder: animations - No Fluff Just Stuff

GraphicsBuilder: animations

Posted by: Andres Almiray on December 27, 2007

TimingFramework based animations have found their way into GraphicsBuilder. As it is the case for bind(), animate() comes from Swing(X)Builder, thanks to the efforts of James and Danno, as a matter of fact you can read more about them here.

The following movie shows a rectangle with two properties being animated: x & opacity. Just for kicks I added a button to start the animation and a textfield whose text is bound to the rectangle's x property.



The animation is much smoother in case you are wondering, I'm still getting the hang on Wink. In case you are wondering opacity is available in groups, shapes and images, as it can be seen in the following example




You can see that I have made a little trick with images, I loaded the groovy logo once and reused it thrice. Opacity on groups is applied to all children and can ve overridden by any child, as the green-based gradient does.

Keep on Groovying!
Andres Almiray

About Andres Almiray

Andres is a Java/Groovy developer and a Java Champion with more than 20 years of experience in software design and development. He has been involved in web and desktop application development since the early days of Java. Andres is a true believer in open source and has participated on popular projects like Groovy, Griffon, and DbUnit, as well as starting his own projects (Json-lib, EZMorph, GraphicsBuilder, JideBuilder). Founding member of the Griffon framework and Hackergarten community event. https://ch.linkedin.com/in/aalmiray

Why Attend the NFJS Tour?

  • » Cutting-Edge Technologies
  • » Agile Practices
  • » Peer Exchange

Current Topics:

  • Languages on the JVM: Scala, Groovy, Clojure
  • Enterprise Java
  • Core Java, Java 8
  • Agility
  • Testing: Geb, Spock, Easyb
  • REST
  • NoSQL: MongoDB, Cassandra
  • Hadoop
  • Spring 4
  • Cloud
  • Automation Tools: Gradle, Git, Jenkins, Sonar
  • HTML5, CSS3, AngularJS, jQuery, Usability
  • Mobile Apps - iPhone and Android
  • More...
Learn More »