public void setBlock(Blocks block) {

			switch (block) {
			case AND:
				blockView = new BlockView(new AND(3));
				break;
			case NAND:
				blockView = new BlockView(new NAND(3));
				break;
			case NOR:
				blockView = new BlockView(new NOR(3));
				break;
			case NOT:
				blockView = new BlockView(new NOT());
				break;
			case OR:
				blockView = new BlockView(new OR(3));
				break;
			case RS_FLIPFLOP:
				blockView = new BlockView(BlockFactory.getInstance()
						.getRSFlipFLop(false));
				break;
			default:
				assert false : block;
				break;
			}
			repaint();
		}