GraphicsBuilder: in & out - No Fluff Just Stuff

GraphicsBuilder: in & out

Posted by: Andres Almiray on December 25, 2007

One last entry for the day, 2 events were previously disabled on shapes: mouseEntered and mouseExited, now they work as they should. The following example shows 4 rectangles with a colored gradient paint, whenever the mouse enters a shape its gradient will change to black/white, when it exist the shape the gradient will revert to its previous colors



The example uses the same closure as event listener for the 4 rectangles, parameterized with each rectangle's current paint and color.

Well, that's a wrap for today :-D

Groovy Holidays!

Update: apologies if you can't see the flash animation on IE, JRoller doesn't allow .swf as extension on file uploads I had to change it to .png, besides IE sucks big time :-P the animation works perfectly on Firefox though. I'd look for an alternative.
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 »