3D charts and plots
Java Groovy
Pull request Compare This branch is even with griffon:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
griffon-app/conf
lib
scripts
src
.gitignore
Jzy3dGriffonAddon.groovy
Jzy3dGriffonPlugin.groovy
LICENSE-jzy3d.txt
LICENSE.txt
README.md
application.properties

README.md

3D charts and plots

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

Provides integration with Jzy3d, a java library for scientific 3D plotting.

Usage

This plugin does not add new nodes to builders, however it adds a new Artifact: Chart3D. This artifact may belong to an MVC group, thus sharing the same context variables as the group, or it can stand on its own. Once you have created a Chart3D class you can configure it on a group as follows:

griffon-app/conf/Application.groovy

    mvcGroups {
        // MVC Group for "sample"
        'sample' {
            model      = 'sample.SampleModel'
            chart3d    = 'sample.SampleChart3D'
            view       = 'sample.SampleView'
            controller = 'sample.SampleController'
        }
    }

It is a good idea to place the chart3d member before the View, this way the chart can be referenced from the View and be displayed correctly, which can be done in this way:

    package sample

    application(title: 'Sample',
            size: [600,600],
            locationByPlatform:true,
            iconImage: imageIcon('/griffon-icon-48x48.png').image,
            iconImages: [imageIcon('/griffon-icon-48x48.png').image,
            imageIcon('/griffon-icon-32x32.png').image,
            imageIcon('/griffon-icon-16x16.png').image]) {
        widget(chart3d.chart.canvas)
    }

Scripts

  • create-chart3d - creates a new Chart3D class that can participate in an MVC group if configured accordingly