System.err.println("cannot load " + fileName);
return;
}
// Create a visualization as Scatter Plot
ScatterPlotVisualization plot = new ScatterPlotVisualization(table);
// Install the default interactors on the visualization
InteractorFactory.installInteractor(plot);
// The controls will be added to this JTabbedPane
JTabbedPane tabs = new JTabbedPane();
// Create a filter to hide internal columns from the different panels
ColumnFilter filter = new InternalFilter();
FilteredTable filteredTable = new FilteredTable(table, filter);
// Create a Dynamic Query Panel to interactively filter on the attribute values
DynamicQueryPanel dq = new DynamicQueryPanel(plot, filteredTable);
// Create a control panel for changing the visual settings of the plot
ScatterPlotVisualPanel panel = new ScatterPlotVisualPanel(plot, filter, dq);
// Create a pane showing the detailed values of the selected items
JComponent details = DetailTable.createDetailJTable(
filteredTable,
plot.getSelection());
// Add the panels to the tab
tabs.add("Details", details);
tabs.add("Filters", dq);
tabs.add("Visual", panel);