private PageGauge createGauge() {
			PageGauge g = new PageGauge();
			g.setPage(page);
			g.setModelID(modelIndex);
			if (uid != null) {
				g.setUid(uid);
				uid = null;
			}
			g.setValue(value);
			g.setInitialValue(value);
			g.setMinimum(minimum);
			g.setMaximum(maximum);
			if (dataType != 0) {
				g.setAverageType((byte) dataType);
				dataType = 0;
				switch (g.getAverageType()) {
				case PageGauge.EXPONENTIAL_RUNNING_AVERAGE:
					if (smoothingFactor > 0) {
						g.setSmoothingFactor(smoothingFactor);
						smoothingFactor = -1;
					}
					break;
				case PageGauge.SIMPLE_RUNNING_AVERAGE:
					if (samplingPoints > 0) {
						g.setSamplingPoints(samplingPoints);
						samplingPoints = -1;
					}
					break;
				}
			}
			if ((argb1 | ARGB_NOT_SET) != ARGB_NOT_SET) {
				g.setBackground(new Color(argb1));
				argb1 = ARGB_NOT_SET;
			}
			if ((argb2 | ARGB_NOT_SET) != ARGB_NOT_SET) {
				g.setForeground(new Color(argb2));
				argb2 = ARGB_NOT_SET;
			}
			g.setPaintTicks(drawTicks);
			g.setPaintLabels(drawLabels);
			if (format != null) {
				g.setFormat(format);
				format = null;
			}
			if (maxFractionDigit != 3) {
				g.setMaximumFractionDigits(maxFractionDigit);
				maxFractionDigit = 3;
			}
			if (maxIntegerDigit != 3) {
				g.setMaximumIntegerDigits(maxIntegerDigit);
				maxIntegerDigit = 3;
			}
			if (titleText != null) {
				g.setPaintTitle(titleText.equalsIgnoreCase("true"));
				titleText = null;
			}
			if (nstep > 0) {
				g.setMinorTicks(nstep);
				nstep = 0;
			}
			if (majorTicks > 0) {
				g.setMajorTicks(majorTicks);
				majorTicks = 0;
			}
			if (description != null) {
				g.setDescription(description);
				description = null;
			}
			if (timeSeries != null) {
				g.setTimeSeriesName(timeSeries);
				timeSeries = null;
			}
			else {
				g.setTimeSeriesName(g.getDescription());
			}
			if (borderType != null) {
				g.setBorderType(borderType);
				borderType = null;
			}
			if (width > 0 && height > 0) {
				g.setPreferredSize(new Dimension((int) width, (int) height));
				width = height = 0;
			}
			g.setChangable(page.isEditable());
			connect(g);
			drawTicks = drawLabels = false;
			return g;
		}