/* ---------------------
 * IGVScatterPlotDemo.java
 * ---------------------
 * (C) Copyright 2002-2009, by Object Refinery Limited.
 *
 */

package org.broad.igv.scatterplot;

//import demo.SampleXYDataset2;


/**
 * A demo scatter plot.
 */
public class ScatterPlotDemo /*extends ApplicationFrame*/ {

    /**
     * A demonstration application showing a scatter plot.
     *
     * @param title  the frame title.
     */

    private static int igvSampleCount;              // count of IGV data points
    private static ScatterPlotData igvData;      // container class for IGV Data
    private static ScatterPlot igvPlotFrame;     // scatterplot frame

    public ScatterPlotDemo(int sampleCount) {

        // create test data
        igvData = new ScatterPlotTestData(sampleCount);

         // create scatteplot and plot test data
        igvPlotFrame = new ScatterPlot("IGV Data: chr7: 83,584,980 - 123,460,500", igvData);
    }

    /**
     * Starting point for the demonstration application.
     *
     * @param args  ignored.
     */
    public static void main(String[] args) {
        //int demoPoints = 100;

        int demoPoints = 100; //Integer.parseInt(args[0].trim());

        ScatterPlotDemo demo = new ScatterPlotDemo(demoPoints);

    }

}
