code: private void movePoint(int mx, int my) {
  		if (!isEnabled()) {
  			return;
  		}
  		
  		if (selected == null) {
  			return;
  		}
  		if (list.indexOf(selected) == 0) {
  			return;
  		}
  		if (list.indexOf(selected) == list.size()-1) {
  			return;
  		}
  		
  		float newPos = (mx - 10) / (float) width;
  		newPos = Math.min(1, newPos);
  		newPos = Math.max(0, newPos);
  		
  		selected.pos = newPos;
  		sortPoints();
  		fireUpdate();
  	}
docs: Move the current point to the specified mouse location
  
  @param mx The x coordinate of the mouse
  @param my The y coordinate of teh mouse