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

package lt.monarch.chart.chart2D;

import java.awt.*;

// Referenced classes of package lt.monarch.chart.chart2D:
//			ChartPointSeries, NormalizedPoint2D

public abstract class ChartPoint
{

	Rectangle tipRectangle;

	public ChartPoint()
	{
		tipRectangle = null;
	}

	public abstract void draw(Graphics g, ChartPointSeries chartpointseries);

	public abstract NormalizedPoint2D getCenter(Graphics g, ChartPointSeries chartpointseries);

	public boolean registerOn(ChartPointSeries chartpointseries)
	{
		return false;
	}

	public String tip(ChartPointSeries chartpointseries)
	{
		return "<no tip>";
	}

	public String tipAt(ChartPointSeries chartpointseries, Point point)
	{
		return tipRectangle != null && tipRectangle.contains(point.x, point.y) ? tip(chartpointseries) : null;
	}
}
