Package infovis.table

Examples of infovis.table.DefaultTable


    public static void main(String args[]) {
        String fileName = "data/table/salivary.tqd";
        if (args.length > 0) {
            fileName = args[0];
        }
        DefaultTable t = new DefaultTable(); // Create a table
        AbstractReader reader = // Create a reader for the specified file
            TableReaderFactory.createTableReader(fileName, t);
        if (reader == null || !reader.load()) { // if it works, load the file
            System.err.println("cannot load " + fileName);
            System.exit(1);
        }
        TimeSeriesVisualization visualization = // Create a visualization
            new TimeSeriesVisualization(t); // for Time Series
        VisualizationPanel panel = // Create a Swing Component to hold it
            new VisualizationPanel(visualization);
        // Associate the color with the Name attribute
        visualization.setVisualColumn(
                TimeSeriesVisualization.VISUAL_COLOR,
                t.getColumn("Name"));
       
        // Display the visualization Panel in a simple JFrame
        JFrame frame = new JFrame(fileName);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(panel);
View Full Code Here


    public static void main(String[] args) {
        String fileName = "data/table/salivary.tqd";
        if (args.length != 0) {
            fileName = args[0];
        }
        DefaultTable table = new DefaultTable();
        AbstractReader reader =
            TableReaderFactory.createTableReader(fileName, table);
        if (reader == null || !reader.load()) {
            System.err.println("cannot load " + fileName);
            return;
View Full Code Here

TOP

Related Classes of infovis.table.DefaultTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.