Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Java2D drawings for Griffon

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 griffon-app
Octocat-spinner-32 scripts
Octocat-spinner-32 .classpath
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .project
Octocat-spinner-32 GfxBuilderGriffonPlugin.groovy
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 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.