private void initSliders() { int k = (int) (qDef.curveCoefficient*10); gamma = new JSlider(JSlider.HORIZONTAL, MIN, MAX, k); if (qDef.family == QuantumFactory.LINEAR || qDef.family == QuantumFactory.LOGARITHMIC) gamma.setEnabled(false); else gamma.setEnabled(true); Integer br = ((Integer) uiBR.get(new Integer(qDef.bitResolution))); int resolution = DEPTH_END; if (br != null) resolution = br.intValue(); bitResolution = new JSlider(JSlider.HORIZONTAL, DEPTH_START, DEPTH_END, resolution); }
private void initSliders(int family, double curveCoefficient) { int k = (int) (curveCoefficient*10); gamma = new JSlider(JSlider.HORIZONTAL, MIN, MAX, k); if (family == QuantumFactory.LINEAR || family == QuantumFactory.LOGARITHMIC) gamma.setEnabled(false); else gamma.setEnabled(true); Integer br = ((Integer) uiBR.get(new Integer(qDef.bitResolution))); int resolution = DEPTH_END; if (br != null) resolution = br.intValue(); bitResolution = new JSlider(JSlider.HORIZONTAL, DEPTH_START, DEPTH_END, resolution); }
	private void initSliders()	{		int k = (int) (qDef.curveCoefficient*10);		gamma = new JSlider(JSlider.HORIZONTAL, MIN, MAX, k);		if (qDef.family == QuantumFactory.LINEAR || 			qDef.family == QuantumFactory.LOGARITHMIC) 			gamma.setEnabled(false);		else gamma.setEnabled(true);		Integer br = ((Integer) uiBR.get(new Integer(qDef.bitResolution)));		int resolution = DEPTH_END;		if (br != null) resolution = br.intValue();		bitResolution = new JSlider(JSlider.HORIZONTAL, DEPTH_START, DEPTH_END,									resolution);	}