public void endFilledRegion() {
		if (!regionOpen) {
			throw new ErrorException("You need to call startFilledRegion " +
			                         "before you call endFilledRegion.");
		}
		regionOpen = false;
		regionStarted = false;
		path.add(new EndRegionElement());
		repaint();
	}