Skip to content

Commit

Permalink
Added readme mirroring plugin documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jun 17, 2013
1 parent 195e883 commit dd06ca5
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

GfxBuilder Plugin
-----------------

Plugin page: [http://artifacts.griffon-framework.org/plugin/gfx-builder](http://artifacts.griffon-framework.org/plugin/gfx-builder)


Brings the [GfxBuilder][1] on your Griffon application.

Usage
-----
Refer to the [builder's][1] 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.


[1]: http://griffon.codehaus.org/GfxBuilder

0 comments on commit dd06ca5

Please sign in to comment.