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

package lt.monarch.chart.chart2D;

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

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

public class Dot extends InvisibleDot
{

	Color fillColor;
	Color outlineColor;
	int starSize;

	public Dot(Object obj, Object obj1)
	{
		super(obj, obj1);
		starSize = 4;
		outlineColor = Color.black;
		fillColor = Color.yellow;
	}

	public void draw(Graphics g, ChartPointSeries chartpointseries)
	{
		double d = chartpointseries.xMapper.map(super.xValue);
		double d1 = chartpointseries.yMapper.map(super.yValue);
		lt.monarch.chart.NormalizedPoint normalizedpoint = chartpointseries.mapper.map(d, d1);
		Point point = chartpointseries.chart().projector().project(normalizedpoint);
		super.tipRectangle = new Rectangle(point.x - starSize, point.y - starSize, starSize * 2, starSize * 2);
		g.setColor(fillColor);
		g.fillOval(super.tipRectangle.x, super.tipRectangle.y, super.tipRectangle.width, super.tipRectangle.height);
		g.setColor(outlineColor);
		g.drawOval(super.tipRectangle.x, super.tipRectangle.y, super.tipRectangle.width, super.tipRectangle.height);
	}

	public void setColor(Color color, Color color1)
	{
		outlineColor = color;
		fillColor = color1;
	}
}
