private PagePhotonSpectrometer createPhotonSpectrometer() {
			PagePhotonSpectrometer s = new PagePhotonSpectrometer();
			s.setPage(page);
			s.setModelID(modelIndex);
			if (uid != null) {
				s.setUid(uid);
				uid = null;
			}
			if (type != -1) {
				s.setType(type);
				type = -1;
			}
			if (borderType != null) {
				s.setBorderType(borderType);
				borderType = null;
			}
			if (width > 0 && height > 0) {
				s.setPreferredSize(new Dimension((int) width, (int) height));
				width = height = 0;
			}
			if (nstep > 0) {
				s.setNumberOfTicks(nstep);
				nstep = 0;
			}
			if (maximum > 0) {
				s.setUpperBound((float) maximum);
				maximum = 0;
			}
			if (minimum > 0) {
				s.setLowerBound((float) minimum);
				minimum = 0;
			}
			s.setChangable(page.isEditable());
			mw2dConnector.linkModelListener(modelIndex, s);
			return s;
		}