GraphicsBuilder: text alignment - No Fluff Just Stuff

GraphicsBuilder: text alignment

Posted by: Andres Almiray on February 29, 2008

Continuing with the recent batch of updates on GraphicsBuilder, it turns out that text node now accepts halign and valign attributes, which come in handy in many situations, like the following one




Needless to say ha and va are aliases for the new properties, which accept [left,center,right] and [top,middle,baseline,bottom] as respective values. Halign defaults to 'left' and Valign defaults to 'bottom', keeping backward compatibility. In the case of multiline text baseline has the same effect as middle, it only makes sense to use baseline in single line text.

Now on to other matters, perhaps the LaTeX support suggested by Demetrios and Toni.

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 »