gfx-builder
GfxBuilder Plugin
Toolkits
Swing
Platforms
Framework
License
Apache Software License 2.0
Documentation
No documentation link provided
Downloads
511
Rating
Authored by:
Andres Almiray
aalmiray@yahoo.com
aalmiray@yahoo.com
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.
Griffon