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

package lt.monarch.charts;

import java.awt.*;

// Referenced classes of package lt.monarch.charts:
//			ChartPoint, Axis, AxisMapper, ChartPointSeries, 
//			XAxis, YAxis

public class InvisibleDot extends ChartPoint
{

	Object xValue;
	Object yValue;

	public InvisibleDot(Object obj, Object obj1)
	{
		xValue = obj;
		yValue = obj1;
	}

	public Point draw(Graphics g, ChartPointSeries chartpointseries, Rectangle rectangle)
	{
		int i = chartpointseries.xAxis.map(rectangle, xValue);
		int j = chartpointseries.yAxis.map(rectangle, yValue);
		return new Point(i, j);
	}

	public void registerOn(ChartPointSeries chartpointseries)
	{
		super.registerOn(chartpointseries);
		chartpointseries.xAxis.registerKey(xValue);
		chartpointseries.yAxis.registerKey(yValue);
	}

	public String tip(ChartPointSeries chartpointseries)
	{
		return ((Axis) (chartpointseries.yAxis)).mapper.formatKey(yValue);
	}
}
