Example usage for weka.gui.arffviewer ArffPanel ArffPanel

List of usage examples for weka.gui.arffviewer ArffPanel ArffPanel

Introduction

In this page you can find the example usage for weka.gui.arffviewer ArffPanel ArffPanel.

Prototype

public ArffPanel(Instances data) 

Source Link

Document

initializes the panel with the given data

Usage

From source file:adams.gui.tools.previewbrowser.WekaDatasetHandler.java

License:Open Source License

/**
 * Creates the actual view.//from  ww w. ja  v a2s  .  com
 *
 * @param file   the file to create the view for
 * @return      the view
 */
@Override
protected PreviewPanel createPreview(File file) {
    ArffPanel panel;

    panel = new ArffPanel(file.getAbsolutePath());

    return new PreviewPanel(panel, panel.getTable());
}