Zest is visualization toolkit for Eclipse. The primary goal of Zest is to make graph based programming easy. Using Zest, Graphs are considered SWT Components which have been wrapped using standard JFace viewers. This allows developers to use Zest the same way they use JFace Tables, Trees and Lists. Please visit our main page at http://www.eclipse.org/mylyn/zest.php.

+

Zest is visualization toolkit for Eclipse. The primary goal of Zest is to make graph based programming easy. Using Zest, Graphs are considered SWT Components which have been wrapped using standard JFace viewers. This allows developers to use Zest the same way they use JFace Tables, Trees and Lists. Please visit our main page at http://www.eclipse.org/gef/zest.

Revision as of 15:46, 12 November 2012

Zest is visualization toolkit for Eclipse. The primary goal of Zest is to make graph based programming easy. Using Zest, Graphs are considered SWT Components which have been wrapped using standard JFace viewers. This allows developers to use Zest the same way they use JFace Tables, Trees and Lists. Please visit our main page at http://www.eclipse.org/gef/zest.

Getting Started

The following code snippet shows how to get a simple graph up and running using an SWT style interface. In this example, a graph is created with 3 nodes and 3 edges. The nodes are labeled rock, paper scissors. To use this example you need to download zest core, zest layouts and draw2D.

Zest Viewers

A Viewer has also been designed for Zest. The Viewer allows developers to create graphs by specifying the datamodel through a content provider. Because graphs are often specified in different forms (edge lists, nodes with connections, or combinations of the two), we have designed 3 content providers. The three content provider interfaces are:

The IGraphContentProvider is useful if your data is naturally structured as a list of edges, each with a source and destination. getElements should return all the edges in the graph, and for each edge, getSource(rel) and getDestination(rel) should return a source and destination object. The following example shows how this content provider can be used to create a simple graph with 3 nodes and 3 edges: