@Override
	public void expand(int grabber, Point endMove, int canvasWidth, int canvasHeight)
	{
		if((endMove.getX() > 0)
		&& (endMove.getY() > 0)
		&& (endMove.getX() < canvasWidth)
		&& (endMove.getY() < canvasHeight))
		{
			switch (grabber)
			{
			case 0:
				x = endMove.getX();
				y = endMove.getY();
				break;
				
			case 1:
				punkt2X = endMove.getX();
				punkt2Y = endMove.getY();
				break;
			}
		}
	}