range = lS;
range = square;
	void setControlsPoints(int t)	{		type = t;		double xStaticEnd, xStaticStart, xEnd, xStart;		xStaticEnd = 0;		xStaticStart = 0;		xEnd = 0;		xStart = 0;		if (type == QuantumFactory.EXPONENTIAL) {			xControl = lS2;			range = lS2;			binMin = (int) ((square-40)/(2*rangeMinExpo)); 			binMax = (int) ((square-40)/(2*rangeMaxExpo));			if (reverseIntensity) { 				xStaticStart = (double) lS2;				xStaticEnd = (double) leftBorder;				xEnd = (endPt.getX()+leftBorder)/2;				xStart = (startPt.getX()+leftBorder)/2;			} else {				xEnd = (endPt.getX()+leftBorder)/2;				xStart = (startPt.getX()+leftBorder)/2;				xStaticEnd = (double) lS2;				xStaticStart = (double) leftBorder;			}  		} else {			xControl = lS;			range = lS;			double a;			binMin = (int) (square/rangeMin);			binMax = (int) (square/rangeMax);			if (reverseIntensity) {				a = (double) square/(staticStartPt.getX()-leftBorder);				xStaticStart = (double) lS;				xStaticEnd = (double) leftBorder;				xEnd = a*(endPt.getX()-leftBorder)+leftBorder;				xStart = a*(startPt.getX()-leftBorder)+leftBorder;			} else { 				a = (double) square/(staticEndPt.getX()-leftBorder); 				xEnd = a*(endPt.getX()-leftBorder)+leftBorder;				xStart = a*(startPt.getX()-leftBorder)+leftBorder;				xStaticEnd = (double) lS;				xStaticStart = (double) leftBorder;			}  		}		manager.setType(type, xControl);		staticEndPt.setLocation(xStaticEnd, staticEndPt.getY());		staticStartPt.setLocation(xStaticStart, staticStartPt.getY());		endPt.setLocation(xEnd, endPt.getY());		startPt.setLocation(xStart, startPt.getY());				//Set Cursor location		if (reverseIntensity) {			setCursorStart((int) xEnd);			setCursorEnd((int) xStart);			manager.setInputRectangles((int) xEnd, (int) xStart);		} else {			setCursorStart((int) xStart);			setCursorEnd((int) xEnd);			manager.setInputRectangles((int) xStart, (int) xEnd);		}       	}