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

package lt.monarch.charts;

import java.awt.*;

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

public class Dot extends InvisibleDot
{

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

    public Point draw(Graphics g, ChartPointSeries chartpointseries, Rectangle rectangle)
    {
        Point point = super.draw(g, chartpointseries, rectangle);
        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);
        return point;
    }

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

    Color fillColor;
    Color outlineColor;
    static int starSize = 4;

}
