Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Java2D drawings for Griffon
Groovy

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
griffon-app/conf
scripts
.classpath
.gitignore
.project
GfxBuilderGriffonPlugin.groovy
LICENSE.txt
README.md
application.properties

README.md

GfxBuilder Plugin

Plugin page: http://artifacts.griffon-framework.org/plugin/gfx-builder

Brings the GfxBuilder on your Griffon application.

Usage

Refer to the builder's page to known what nodes are available.

Node

The following nodes become available to Swing views

None Property Type Required Bindable
canvas node GfxNode false false

The following is an example of its usage (copy & paste it on SwingPad)

canvas(preferredSize: [200,200]) {
    group(borderColor: 'none') {
        antialias true
        background(color: color('white'))
        rect(x: 50, y: 50, w: 100, h: 100, fill: color('red'))
        rect(x: 100, y: 100, w: 100, h: 100, fill: color('green'))
        path {
            moveTo(x: 100, y: 100)
            lineTo(x: 150, y: 150)
            lineTo(x: 50, y: 200)
            close()
        }
    }
}

SwingPad can be found in the samples directory on your Griffon distribution.

Something went wrong with that request. Please try again.