@Override
	public void apply(Graphics2D g)
	{
		g.setColor(new Color(color));
		g.setStroke(new BasicStroke(stroke, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER));

		switch (type)
		{
		case OVAL:
			if (fill)
			{
				g.fillOval(x, y, width, height);
			}
			else
			{
				g.drawOval(x, y, width, height);
			}
		case RECT:
			if (fill)
			{
				g.fillRect(x, y, width, height);
			}
			else
			{
				g.drawRect(x, y, width, height);
			}
		}
	}