Skip to end of metadata
Go to start of metadata

Description

Graph visualizations and diagrams via JGraph.

Installation

The current version of griffon-jgraph-plugin is 0.1
To install just issue the following command

Usage

The following nodes will become available on a View script upon installing this plugin

Node

Property

Type

Default

Required

Bindable

Notes

graphComponent
[mxGraphComponent]

 

 

 

 

 

 

graph
[mxGraph]

 

 

 

 

 

nest it inside graphComponent

You can call all of mxGraph's properties and methods inside it's nested child closure.

The following methods have been added to mxGraph

  • applyGraphStyle(String) - applies a graph styles that was defined using the addon's configuration script.

Configuration

Styles and shapes can be configured by placing a GraphConfig.groovy inside griffon-app/conf. This script accepts two top level nodes: shapes and styles. The following example shows how it can be used

Example

This trivial application displays two connected nodes. The first node is drawn using a Star shape from jSilhouette. This shape and its related style are configured in GraphConfig.groovy

griffon-app/conf/GraphConfig.groovy

The view setups the graph like this

History

Version

Date

Notes

0.1

07-22-10

first release

  • No labels

1 Comment

  1. griffon install-plugin jcalendar
    =>
    griffon install-plugin jgraph