package Projects.Cible1;

import gpclasses.baseclasses.*;
import gpclasses.animations.*;
import gpclasses.graphics.*;
import gpclasses.util.misc.*;

public class D_Display02 extends CgpNumericDisplayDraw
{

	public D_Display02 (int _x1Offset, int _y1Offset, int _x2Offset, int _y2Offset)
	{
		super(_x1Offset, _y1Offset, _x2Offset, _y2Offset);
	}

	public void drawBackground(CgpCanvas c, int x1, int y1, int x2, int y2,  int frameClr, int foreClr)
	{
		// 3DRect
		c.drawBevelButton(
			(x1 + 0),
			(y1 + 0),
			(x2 - 0),
			(y2 - 0),
			frameClr,	// ForeColor
			0x00000000,	// BackColor
			1,	// Pattern
			frameClr,	// LineColor
			0x00000000,	// ShadowColor
			4	// line width
		);

		// Rectangle
		c.fillRectWithBorder(
			frameClr,	// LineColor
			1,	// line width
			CgpLinePattern.LINE_SOLID,
			(x1 + 2),
			(y1 + 2),
			(x2 - 2)-(x1 + 2)+1,
			(y2 - 2)-(y1 + 2)+1,
			frameClr,	// ForeColor
			0x00000000,	// BackColor
			3,	// Pattern
			CgpRectangle.SQUARE_CORNERS,	// Corner Type
			0,	// Width of round corner
			0	// Height of round corner
		);

		// 3DRect
		c.drawBevelButton(
			(x1 + 7),
			(y1 + 7),
			(x2 - 7),
			(y2 - 7),
			foreClr,	// ForeColor
			0x00000000,	// BackColor
			1,	// Pattern
			0x00000000,	// LineColor
			0x00ffffff,	// ShadowColor
			2	// line width
		);

	}
	public void draw(CgpCanvas c, int x1, int y1, int x2, int y2, int frameClr, int foreClr)
	{
	}
}
