private void setBackgroundPattern() {
			if (color1 == null || color2 == null)
				return;
			page.setFillMode(new FillMode.PatternFill(color1.getRGB(), color2.getRGB(), patternStyle, patternWidth,
					patternHeight));
			patternStyle = 0;
			patternWidth = 0;
			patternHeight = 0;
		}