GraphicsBuilder: strokes - No Fluff Just Stuff

GraphicsBuilder: strokes

Posted by: Andres Almiray on January 2, 2008

Continuing on svg related news, something that svg provides is painting options for borders, so I thought it would be a good idea if GraphicsBuilder did too. Shapes now accept borderPaint, both as a property and as a nested operation. Taking advantage strokes being updated I also added support for Jerry Huxtable's strokes as can be seen in the following image



We have a base bezier path and draw it 6 times with different stroke options: normal, shaped, composite, wobble, compound and painted.

BasicStrokes are now created with basicStroke, stroke was upgraded to be a placeholder for other strokes, in the same way paint works for paints. Notice that shape, previously allowed only on area operations, is allowed in shapeStroke too.

Jerry is also responsible for a great number of filters, some of them available in SwingXBuilder, I'm hoping to add the full host to GraphicsBuilder.

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 »