etablesaw

Eclipse integration for the tablesaw data frame library for java

Home
Data frame editor
Viewing and plotting table data
Linking table providers and consumers
Xaw Scripting DSL

Linking table providers and consumers

The table data registry allows table data providers and consumers to be linked, e.g. the data in the table editor to be plotted in the bar chart view. A workbench part registers to provide table data and later notifies its listeners when the table data or structure changes. Other parts may lookup table providers by their key and react to notifications.

Both the table editor and view provide the currently filtered and selected table data through this mechanism. Hence, a bar chart linked to an editor will update when the row selection changes or a filter is applied. The views that derive new table data also provide the resulting table. This allows e.g. a crosstab to be plotted.

The views that consume table data from the registry allow the user to select the table source by clicking the link button (double straight arrows):

The xaw editor supports executing xaw scripts inside the workbench and may take part in this action. The script may import tables from the registry or export to it, thus when a script has run, the tables exported during the execution may be picked up and shown in other views.

The snapshot below, shows the workbench with several (linked) parts: