GraphicsBuilder: update on SWFRenderer - No Fluff Just Stuff

GraphicsBuilder: update on SWFRenderer

Posted by: Andres Almiray on April 16, 2008

The initial announcement of SWF support in GraphicsBuilder was well received, I decided to follow João's advice and switch from Ming to Transform SWF, as Ming is quite behind in the feature department and Transform has been updated constantly and recently.

Here is a very basic example of SWFRenderer in action, as it only supports groups, shapes and outlines for the time being (basic fills, no fancy paints), the image on the right was produced by GraphicsRenderer, the one on the left by SWFRenderer (you can tell because it uses Flash's plugin ;-))


You may be wondering about the code, so here it is

No extra nodes required for SWF rendering so far, but I guess as the renderer gets fancier it may support SWF only nodes. SWFRenderer accepts optional settings like background color and frameRate, but I'll show how to use them in a later post. There is a "side-effect" from switching to TransformSWF, that library is able to read SWF files by creating an internal model, which although it is a bit tangled at first (the SWF model that is), may enable importing SWF drawings into GraphicsBuilder's drawings ... :-D

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 »