/**********************************************************************
# Copyright (c) EWA Systems Inc. 1998 - 2005 All Rights Reserved
#               No part of this program may be photocopied, reproduced,
#               or translated to another programming language without
#               the prior written consent of EWA Systems.
**********************************************************************/

package com.ewasystems.chart.test;

import java.awt.Color;
import com.ewasystems.chart.AxesXY;
import com.ewasystems.chart.Chart;
import com.ewasystems.chart.ChartData;
import com.ewasystems.chart.JFrameChart;

/**
 * <p>Title: Sample Scatter Plot</p>
 * <p>Copyright: (c) 1998 - 2005</p>
 * <p>Company: EWA Systems, Inc.</p>
 * @author Lincoln Evans-Beauchamp
 * @version 1.0
 */

public class SampleSimpleScatter extends JFrameChart
{
  public SampleSimpleScatter()
  {
    Chart chart = getChart();
    AxesXY axis = new AxesXY(chart);

    double y[] = {8, 3, 5, 2, 9};
    ChartData data1 = new ChartData(axis, y);
    data1.setDataType(ChartData.DATA_TYPE_MARKER);
    data1.setMarkerType(ChartData.MARKER_TYPE_FILLED_SQUARE);
    data1.setMarkerColor(Color.blue);
  }

  public static void main(String argv[])
  {
    new SampleSimpleScatter().setVisible(true);
  }

  public String toString()
      {return "Sample Simple Scatter";}
}
