/*
* 12:17:57
* vjanssen
*/
package a0902d_f_Philosophen_VORLAGE;

import java.awt.Color;
import java.awt.Graphics;

public class AF_Teller extends AbsForm
{
	public AF_Teller ()
	{
		this(50, 50, 10, Color.BLACK);
	}
	
	public AF_Teller (int x, int y, int laenge, Color farbe)
	{
		super(x, y, laenge, farbe);
	}
	
	public double flaeche()
	{
		return 0.0d;
	}
		
	public void drawObjekt(Graphics g, int xVer, int yVer)
	{
		int x = this.getX() + xVer;
		int y = this.getY() + yVer;
		
		int l = this.getLaenge();		
		int r = this.getLaenge() - (int) (this.getLaenge() / 4); //rand
		
		g.setColor(Color.GRAY);
		g.fillOval(x-l, y-l, l*2+1, l*2+1);
		
		g.setColor(Color.LIGHT_GRAY);
		g.fillOval(x-r, y-r, r*2+1,	r*2+1);		

		g.setColor(this.getFarbe());		
		g.drawOval(x-l, y-l, l*2, l*2);
		g.drawOval(x-r,	y-r, r*2, r*2);		
	}
}
