public void setColor(Color color) {
		if (regionStarted) {
			throw new ErrorException("It is illegal to change the color while you are " +
			                         "defining a filled region.");
		}
		path.add(new SetColorElement(color));
		super.setColor(color);
	}