// 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:   ChartPointSeries.java

package lt.monarch.charts;

import java.awt.*;

// Referenced classes of package lt.monarch.charts:
//            ChartPoint, ChartPointProvider, ChartSeries, XAxis, 
//            YAxis

public abstract class ChartPointSeries
    implements ChartSeries
{

    public ChartPointSeries(ChartPointProvider chartpointprovider, XAxis xaxis, YAxis yaxis)
    {
        provider = chartpointprovider;
        xAxis = xaxis;
        yAxis = yaxis;
    }

    public abstract void draw(Graphics g, Rectangle rectangle);

    public void drawPoint(Graphics g, Rectangle rectangle, ChartPoint chartpoint)
    {
        chartpoint.draw(g, this, rectangle);
    }

    public String tipAt(Point point)
    {
        String s = null;
        for (int i = 0; i < provider.pointCount() && s == null; i++)
            s = provider.point(i).tipAt(this, point);

        return s;
    }

    protected ChartPointProvider provider;
    public XAxis xAxis;
    public YAxis yAxis;
}
