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

package lt.monarch.chart.chart2D;

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

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

public class InvisibleDot extends ChartPoint
{

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

    public void draw(Graphics g, ChartPointSeries chartpointseries)
    {
    }

    public NormalizedPoint2D getCenter(Graphics g, ChartPointSeries chartpointseries)
    {
        double d = chartpointseries.xMapper.map(xValue);
        double d1 = chartpointseries.yMapper.map(yValue);
        return new NormalizedPoint2D(d, d1);
    }

    public boolean registerOn(ChartPointSeries chartpointseries)
    {
        boolean flag = super.registerOn(chartpointseries);
        flag |= chartpointseries.xMapper.registerKey(xValue);
        flag |= chartpointseries.yMapper.registerKey(yValue);
        return flag;
    }

    public String tip(ChartPointSeries chartpointseries)
    {
        return " " + chartpointseries.yMapper.formatKey(yValue) + " ";
    }

    public Object xValue()
    {
        return xValue;
    }

    public Object yValue()
    {
        return yValue;
    }

    Object xValue;
    Object yValue;
}
