001    /*
002     * This file is part of the Echo Point Project.  This project is a
003     * collection of Components that have extended the Echo Web Application
004     * Framework Version 3.
005     *
006     * Version: MPL 1.1
007     *
008     * The contents of this file are subject to the Mozilla Public License Version
009     * 1.1 (the "License"); you may not use this file except in compliance with
010     * the License. You may obtain a copy of the License at
011     * http://www.mozilla.org/MPL/
012     *
013     * Software distributed under the License is distributed on an "AS IS" basis,
014     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
015     * for the specific language governing rights and limitations under the
016     * License.
017     */
018    
019    package echopoint.google.chart;
020    
021    import echopoint.google.chart.internal.AdvancedChart;
022    
023    /**
024     * Component wrapper for a
025     * <a href='http://code.google.com/apis/chart/#scatter_plot'>Scatter Plot</a>
026     * provided by <a href='http://code.google.com/apis/chart/'>Google Chart
027     * API</a>.
028     *
029     * <p>The following code shows sample use of this component:</p>
030     * <pre>
031     *   import echopoint.google.chart.ScatterPlot;
032     *   import echopoint.google.chart.model.ChartData;
033     *
034     *     ...
035     *     final ChartData&lt;Integer&gt; data = new ChartData&lt;Integer&gt;();
036     *     final Integer[] array = new Integer[] { 0, 30, 60, 70, 90, 95, 100 };
037     *     final List<Integer> xdata = Arrays.asList( array );
038     *     final int xmax = 120;
039     *
040     *     final Integer[] ydata = { 20, 30, 40, 50, 60, 70, 80 };
041     *     final Integer[] size = { 1, 2, 3, 4, 5, 6, 7 };
042     *
043     *     data.setXdata( xdata );
044     *     data.setXmax( xmax );
045     *     data.setYdata( Arrays.asList( ydata ) );
046     *     data.setSize( Arrays.asList( size ) );
047     *
048     *     final ScatterPlot&lt;Integer&gt; chart = new ScatterPlot&lt;Integer&gt;();
049     *     final ArrayList&lt;ChartData&lt;Integer&gt;&gt; collection = new ArrayList&lt;ChartData&lt;Integer&gt;&gt;();
050     *     collection.add( data );
051     *     chart.setData( collection );
052     * </pre>
053     *
054     * @author Rakesh Vidyadharan 2008-08-23
055     * @version $Id: ScatterPlot.java 64 2008-09-01 11:28:02Z sptrakesh $
056     */
057    public class ScatterPlot<N extends Number> extends AdvancedChart<N>
058    {
059      private static final long serialVersionUID = 1l;
060    }