Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p><table class="wysiwyg-macro" data-macro-name="excerpt" data-macro-parameters="atlassian-macro-output-type=BLOCK" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2V4Y2VycHQ6YXRsYXNzaWFuLW1hY3JvLW91dHB1dC10eXBlPUJMT0NLfQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p>GraphicsBuilder is a Groovy builder for Java 2D</p></td></tr></table></p> <h2>Module Overview</h2> <p>GraphicsBuilder provides an easy way to create Java2D graphics in a similar manner as <a href="https://openjfx.dev.java.net/">JavaFX Script</a> but in a groovier way. Here is the Groovy logo (kind of) drawn with GraphicsBuilder using the built-in GraphicsPad application</p> <p><img class="confluence-embedded-image" src="/download/attachments/230400705/groovy-logo-gb.png?version=1&modificationDate=1368998898624" data-image-src="/download/attachments/230400705/groovy-logo-gb.png?version=1&modificationDate=1368998898624" data-linked-resource-id="230565206" data-linked-resource-type="attachment" data-linked-resource-default-alias="groovy-logo-gb.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400705" title="null > groovy-logo-gb.png"></p> <p>This is the code used to draw the logo</p> <table class="wysiwyg-macro" data-macro-name="code" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGV9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre> // turn on antialias antialias( 'on' ) // create the Groovy star star( ir: 40, or: 100, cx: 160, cy: 120, borderWidth: 4, fill: [118,167,183] as Color ){ transformations{ scale( y: 0.6 ) } } // load the swingtime font, get it? Swing def fontFile = new File("SWINM___.TTF") font( Font.createFont(Font.TRUETYPE_FONT,fontFile).deriveFont(50.0f) ) // draw the text text( text: 'Groovy', borderWidth: 4, fill: 'white' ){ transformations{ translate( x:80, y:30 ) scale( y: 1.2 ) } } </pre></td></tr></table> <h2>Download</h2> <h3>Distributions</h3> <p><a href="http://docs.codehaus.org/download/attachments/12190076/graphicsbuilder-0.6.1.zip">graphicsbuilder-0.6.1 (with dependencies)</a><br /> <a href="http://docs.codehaus.org/download/attachments/12190076/graphicsbuilder-0.6.zip">graphicsbuilder-0.6</a><br /> <a href="http://docs.codehaus.org/download/attachments/12190076/graphicsbuilder-0.6-dependencies.zip">graphicsbuilder-0.6-dependencies</a></p> <h3>Installing</h3> <p>Drop all jar files into $GROOVY_HOME/lib<br /> Drop the scripts into $GROOVY_HOME/bin</p> <p>Since Groovy 1.1-beta-3 the Windows NSIS Installer includes GraphicsBuilder as an additional module to install (<a href="http://groovy.codehaus.org/Windows+NSIS-Installer)">http://groovy.codehaus.org/Windows+NSIS-Installer)</a></p> <h3>Pre-requisites</h3> <p>GraphicsBuilder 0.6.0 requires Groovy 1.5.0+ and Java 1.6+<br /> Additional extensions have the following requisites</p> <table class="confluenceTable"><tbody> <tr> <th class="confluenceTh"><p> Extension </p></th> <th class="confluenceTh"><p> Java Version </p></th> <th class="confluenceTh"><p> Extra libraries </p></th> </tr> <tr> <td class="confluenceTd"><p> graphicsbuilder-ext-swingx </p></td> <td class="confluenceTd"><p> 1.5+ </p></td> <td class="confluenceTd"><p> swingx-0.9.2 </p></td> </tr> <tr> <td class="confluenceTd"><p> graphicsbuilder-ext-svg </p></td> <td class="confluenceTd"><p> 1.5+ </p></td> <td class="confluenceTd"><p> batik-1.7 (the whole package) </p></td> </tr> <tr> <td class="confluenceTd"><p> graphicsbuilder-ext-swf </p></td> <td class="confluenceTd"><p> 1.5+ </p></td> <td class="confluenceTd"><p> transformSWF </p></td> </tr> <tr> <td class="confluenceTd"><p> graphicsbuilder-ext-jhlabs </p></td> <td class="confluenceTd"><p> 1.5+ </p></td> <td class="confluenceTd"><p> Filters.jar </p></td> </tr> <tr> <td class="confluenceTd"><p> graphicsbuilder-ext-jdk6 </p></td> <td class="confluenceTd"><p> 1.6+ </p></td> <td class="confluenceTd"><p> </p></td> </tr> <tr> <td class="confluenceTd"><p> graphicsbuilder-ext-animation </p></td> <td class="confluenceTd"><p> 1.6+ </p></td> <td class="confluenceTd"><p> Timing Framework </p></td> </tr> <tr> <td class="confluenceTd"><p> graphicsbuilder-ext-substance </p></td> <td class="confluenceTd"><p> 1.6+ </p></td> <td class="confluenceTd"><p> Substance + Substance extras 5.0 </p></td> </tr> </tbody></table> <p><strong>GraphicsBuilder 0.6.1 requires Groovy 1.6-beta-2</strong></p> <h2>Documentation</h2> <p><a class="confluence-link" href="/display/GROOVY/GraphicsBuilder+-+Tutorials" data-linked-resource-id="87195657" data-linked-resource-type="page" data-linked-resource-default-alias="GraphicsBuilder - Tutorials" data-base-url="http://docs.codehaus.org">Tutorials</a></p> <img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e2NoaWxkcmVuOmFsbD10cnVlfQ&locale=en_GB&version=2" data-macro-name="children" data-macro-parameters="all=true"> <p><strong>Update:</strong> all graphics operation support binding in the same way as <a href="http://groovy.codehaus.org/SwingBuilder.bind">SwingBuilder</a> does.</p> <h2>Developers</h2> <p>Andres Almiray</p> <h3>Source Control</h3> <p><a href="http://svn.codehaus.org/groovy-contrib/graphicsbuilder">http://svn.codehaus.org/groovy-contrib/graphicsbuilder</a></p> <h3>Building</h3> <p>GraphicsBuilder uses Maven2 as its build tool, which means that if you want to<br /> build your own version from source you'll need to have it installed. Follow the<br /> instructions at <a href="http://maven.apache.org">http://maven.apache.org</a>.<br /> Make sure to use maven 2.0.7 or higher.</p> <p>Have fun!</p> <h3>Contributing</h3> <p>Please contact the team members by e-mail or use the mailing lists =)</p> <h2>Community</h2> <h3>Mailing List(s)</h3> <p><a href="http://groovy.codehaus.org/Mailing+Lists">http://groovy.codehaus.org/Mailing+Lists</a></p> <h3>Issue tracker</h3> <p><a href="http://jira.codehaus.org/secure/BrowseProject.jspa?id=10242">http://jira.codehaus.org/secure/BrowseProject.jspa?id=10242</a></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced