// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) space 
// Source File Name:   DotSeries.java

package lt.monarch.chart.chart2D;

import java.awt.Graphics;
import lt.monarch.chart.*;

// Referenced classes of package lt.monarch.chart.chart2D:
//            ChartPointSeries, ChartPoint, ChartPointProvider, Axis2D

public class DotSeries extends ChartPointSeries
{

    public DotSeries(ChartPointProvider chartpointprovider, PlainMapper plainmapper, AxisMapper axismapper, AxisMapper axismapper1)
    {
        super(chartpointprovider, plainmapper, axismapper, axismapper1);
    }

    public DotSeries(ChartPointProvider chartpointprovider, Axis2D axis2d, Axis2D axis2d1)
    {
        super(chartpointprovider, axis2d, axis2d1);
    }

    public void draw(Graphics g)
    {
        drawPoints(g);
    }

    public void drawPoints(Graphics g)
    {
        for (int i = 0; i < super.provider.pointCount(); i++)
            super.provider.point(i).draw(g, this);

    }

    public void pointAdded(ChartPointProvider chartpointprovider, ChartPoint chartpoint)
    {
        if (chart().projector().getProjectionArea() != null)
        {
            Graphics g = chart().container().getGraphics();
            chartpoint.draw(g, this);
            g.finalize();
        }
    }
}
