private PageXYGraph createXYGraph() {
			PageXYGraph b = new PageXYGraph();
			b.setPage(page);
			b.setModelID(modelIndex);
			if (uid != null) {
				b.setUid(uid);
				uid = null;
			}
			if ((argb1 | ARGB_NOT_SET) != ARGB_NOT_SET) {
				b.getGraph().setGraphBackground(new Color(argb1));
				argb1 = ARGB_NOT_SET;
			}
			if ((argb2 | ARGB_NOT_SET) != ARGB_NOT_SET) {
				b.getGraph().setDataBackground(new Color(argb2));
				argb2 = ARGB_NOT_SET;
			}
			if (legendX != -1 && legendY != -1) {
				b.setLegendLocation(legendX, legendY);
				legendX = legendY = -1;
			}
			if (showHLines) {
				b.setDrawGrid(true);
				showHLines = false;
			}
			b.setLabelForXAxis(xAxisTitle);
			b.setLabelForYAxis(yAxisTitle);
			if (timeSeries_x != null) {
				if (timeSeries_x.endsWith("(eV)")) {
					int iev = timeSeries_x.lastIndexOf(" (eV)");
					if (iev != -1)
						timeSeries_x = timeSeries_x.substring(0, iev);
				}
				b.setDescription(0, timeSeries_x);
				timeSeries_x = null;
				if (multiplier != 1.0f) {
					b.setXMultiplier(multiplier);
					multiplier = 1.0f;
				}
				if (addend != 0.0f) {
					b.setXAddend(addend);
					addend = 0.0f;
				}
			}
			if (timeSeries_y != null) {
				for (int i = 0; i < timeSeries_y.length; i++) {
					if (timeSeries_y[i] != null) {
						if (timeSeries_y[i].endsWith("(eV)")) {
							int iev = timeSeries_y[i].lastIndexOf(" (eV)");
							if (iev != -1)
								timeSeries_y[i] = timeSeries_y[i].substring(0, iev);
						}
						else if (timeSeries_y[i].equals("Concentration A2(%)")) {
							timeSeries_y[i] = "Mole Fraction A2(%)";
						}
						else if (timeSeries_y[i].equals("Concentration B2(%)")) {
							timeSeries_y[i] = "Mole Fraction B2(%)";
						}
						else if (timeSeries_y[i].equals("Concentration AB(%)")) {
							timeSeries_y[i] = "Mole Fraction AB(%)";
						}
						b.setDescription(i + 1, timeSeries_y[i]);
						timeSeries_y[i] = null;
					}
					if (lineColor != null && lineColor[i] != null) {
						b.setLineColor(i, lineColor[i]);
						lineColor[i] = null;
					}
					if (lineSymbol != null) {
						b.setLineSymbol(i, lineSymbol[i]);
						lineSymbol[i] = LineSymbols.SYMBOL_NUMBER_1;
					}
					if (lineStyle != null) {
						b.setLineStyle(i, lineStyle[i]);
						lineStyle[i] = LineStyle.STROKE_NUMBER_1;
					}
					if (lineWidth != null) {
						b.setLineWidth(i, lineWidth[i]);
						lineWidth[i] = LineWidth.STROKE_WIDTH_1;
					}
					if (symbolSize != null) {
						b.setSymbolSize(i, symbolSize[i]);
						symbolSize[i] = 4;
					}
					if (symbolSpacing != null) {
						b.setSymbolSpacing(i, symbolSpacing[i]);
						symbolSpacing[i] = 5;
					}
					if (multiplier_y != null) {
						b.setMultiplier(i, multiplier_y[i]);
						multiplier_y[i] = 1.0f;
					}
					if (addend_y != null) {
						b.setAddend(i, addend_y[i]);
						addend_y[i] = 0.0f;
					}
					if (smoothers != null) {
						b.setSmoothFilter(i, smoothers[i]);
						smoothers[i] = 0;
					}
				}
			}
			if (!autoFit) {
				b.setAutoScale(false);
				b.setDataWindowXmin(dataWindow_xmin);
				b.setDataWindowXmax(dataWindow_xmax);
				b.setDataWindowYmin(dataWindow_ymin);
				b.setDataWindowYmax(dataWindow_ymax);
				autoFit = true;
				dataWindow_xmin = dataWindow_xmax = dataWindow_ymin = dataWindow_ymax = 0.0;
			}
			if (!autoFitX) {
				b.setAutoScaleX(false);
				b.setDataWindowXmin(dataWindow_xmin);
				b.setDataWindowXmax(dataWindow_xmax);
				autoFitX = true;
				dataWindow_xmin = dataWindow_xmax = 0.0;
			}
			if (!autoFitY) {
				b.setAutoScaleY(false);
				b.setDataWindowYmin(dataWindow_ymin);
				b.setDataWindowYmax(dataWindow_ymax);
				autoFitY = true;
				dataWindow_ymin = dataWindow_ymax = 0.0;
			}
			if (!autoUpdate) {
				b.setAutoUpdate(false);
				autoUpdate = true;
			}
			if (width > 0 && height > 0) {
				b.setPreferredSize(new Dimension((int) width, (int) height));
				width = height = 0;
			}
			if (showMenuBar) {
				b.addMenuBar();
			}
			else {
				b.removeMenuBar();
				showMenuBar = true;
			}
			if (showToolBar) {
				b.addToolBar();
			}
			else {
				b.removeToolBar();
				showToolBar = true;
			}
			if (borderType != null) {
				b.setBorderType(borderType);
				borderType = null;
			}
			b.setChangable(page.isEditable());
			connect(b);
			return b;
		}